New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 659271 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , Chrome , Mac
Pri: 1
Type: Bug

Blocking:
issue 604105
issue 436283



Sign in to add a comment

Make WebBluetooth chooser consistent on Android and desktops

Project Member Reported by juncai@chromium.org, Oct 25 2016

Issue description

On Android and desktops:
1. Remove "Not seeing your device?" string.
2. Remove the period at "No Bluetooth devices found.", "No devices found."
3. Show get help link and status text below the chooser:
(a) When the Bluetooth is turned off, show "Get help" link text.
(b) When scanning, show "Get help Scanning for devices...", the "Get help" is link text, "Scanning for devices..." is plain text.
(c) When scanning and found some device, or scanning is complete, show "Get help or re-scan", both "Get help" and "re-scan" are link text.

 

Comment 1 by juncai@chromium.org, Oct 26 2016

Summary: Make WebBluetooth chooser consistent on Android and desktops (was: Reposition the "Re-scan" button and add "Scanning for devices..." on Android chooser)

Comment 2 by juncai@chromium.org, Oct 26 2016

Description: Show this description

Comment 3 by juncai@chromium.org, Oct 26 2016

Cc: -juncai@chromium.org rolfe@chromium.org
Labels: OS-Chrome OS-Mac
Owner: juncai@chromium.org

Comment 4 by ortuno@chromium.org, Oct 26 2016

Blocking: 604105

Comment 5 by rolfe@chromium.org, Oct 26 2016

Thanks for logging the bug. I would say 3b needs something between the "get help" and the "scanning" bit, otherwise they run together as a sentence.

Two options:
I) <a>Get help</> - Scanning for devices...
II) <a>Get help</> while scanning for devices...
III) <a>Get help</> | Scanning for devices...

I think I like (II), even though it's longer because it sort of matches the "or" sentence structure in the re-scan. How about you?

Also - do you need mocks for anything or can you work off this OK?

Comment 6 by juncai@chromium.org, Oct 27 2016

I also think (II) is good. No mocks are needed. Thanks!

Comment 7 by juncai@chromium.org, Oct 31 2016

Labels: -Pri-3 Pri-1
Status: Started (was: Available)
Blocking: 436283
some screenshots on ChromeOS.
chooser_on_ChromeOS_1.png
50.2 KB View Download
chooser_on_ChromeOS_2.png
56.9 KB View Download
chooser_on_ChromeOS_3.png
61.6 KB View Download
Look great! I can add these to the deck if you think they are ready too?
Cc: animohan@chromium.org
Yes, I think they are ready on ChromeOS. I will also implement it on Mac too and will upload the screenshots once it is done.
some screenshots from Mac.
chooser_on_Mac_1.png
95.4 KB View Download
chooser_on_Mac_2.png
111 KB View Download
chooser_on_Mac_3.png
119 KB View Download
Fixed the spacing below the "Get help" on Mac. Uploaded some screenshots.
Mac_chooser_1.png
94.7 KB View Download
Mac_chooser_2.png
103 KB View Download
Mac_chooser_3.png
113 KB View Download
Some screenshots from Android.
Screenshot_2016-11-03-18-02-50.png
139 KB View Download
Screenshot_2016-11-03-18-04-26.png
138 KB View Download
Screenshot_2016-11-03-18-05-04.png
137 KB View Download
Screenshot_2016-11-03-18-05-29.png
143 KB View Download
Screenshot_2016-11-03-18-06-01.png
137 KB View Download
Project Member

Comment 16 by bugdroid1@chromium.org, Nov 4 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe

commit 2e52a5a282f509f48e397626f5fcd30f5ab8b1fe
Author: juncai <juncai@chromium.org>
Date: Fri Nov 04 16:44:09 2016

Make WebBluetooth chooser consistent on Android and desktops (desktop part)

This CL makes the following changes:
1. Remove "Not seeing your device?" string.
2. Remove the period at "No Bluetooth devices found.", "No devices found."
3. Show get help link and scanning status text below the chooser:
(a) When the Bluetooth is turned off, show "Get help" link text.
(b) When scanning, show "Get help while scanning for devices...",
the "Get help" is link text, "while scanning for devices..." is plain text.
(c) When scanning and found some device, or scanning is complete, show
"Get help or re-scan", both "Get help" and "re-scan" are link text.

I uploaded some screenshots from ChromeOS and Mac on the issue page.

BUG= 659271 

Review-Url: https://codereview.chromium.org/2468403002
Cr-Commit-Position: refs/heads/master@{#429914}

[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/app/generated_resources.grd
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/cocoa/chooser_content_view_cocoa.h
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa_controller_unittest.mm
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/views/chooser_content_view.cc
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/views/chooser_content_view.h
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/views/chooser_content_view_unittest.cc
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/views/extensions/chooser_dialog_view.cc
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/views/extensions/chooser_dialog_view.h
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/views/extensions/chooser_dialog_view_unittest.cc
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc
[modify] https://crrev.com/2e52a5a282f509f48e397626f5fcd30f5ab8b1fe/ui/views/controls/styled_label.h

Project Member

Comment 17 by bugdroid1@chromium.org, Nov 4 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5f17a6151a8d9d63087df4e0631e3e29b1414b7a

commit 5f17a6151a8d9d63087df4e0631e3e29b1414b7a
Author: juncai <juncai@chromium.org>
Date: Fri Nov 04 23:04:50 2016

Make WebBluetooth chooser consistent on Android and desktops (Android part)

This CL makes the following changes:
1. Remove "Not seeing your device?" string.
2. Remove the period at "No Bluetooth devices found.", "No devices found."
3. Show get help link and scanning status text below the chooser:
(a) When the Bluetooth is turned off, show "Get help" link text.
(b) When scanning, show "Get help while scanning for devices...",
the "Get help" is link text, "while scanning for devices..." is plain text.
(c) When scanning and found some device, or scanning is complete, show
"Get help or re-scan", both "Get help" and "re-scan" are link text.

I uploaded some screenshots on the issue page.

BUG= 659271 

Review-Url: https://codereview.chromium.org/2472723005
Cr-Commit-Position: refs/heads/master@{#430055}

[modify] https://crrev.com/5f17a6151a8d9d63087df4e0631e3e29b1414b7a/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
[modify] https://crrev.com/5f17a6151a8d9d63087df4e0631e3e29b1414b7a/chrome/android/java/strings/android_chrome_strings.grd

Status: Fixed (was: Started)
"Chrome for Android" -Verified in 56.0.2913.4 build 

Sign in to add a comment