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

Issue 610430 link

Starred by 6 users

Issue metadata

Status: Duplicate
Merged: issue 654137
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-11-10
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug
Launch-M-Target: 64-Beta

Blocking:
issue 630357
issue 603386


Show other hotlists

Hotlists containing this issue:
MacViews-Task-Queue


Sign in to add a comment

MacViews: device permissions dialog ready to go

Project Member Reported by ellyjo...@chromium.org, May 9 2016

Issue description

This dialog appears to be summoned when granting access from an extension to a USB or HID device. Need to figure out how to summon it on demand, and see what parts of it, if any, need to be fixed up.
 
To summon this dialog:

1) Install https://chrome.google.com/webstore/detail/usb-device-info/igkmggljimacfdfalpeelenjeicmfnll
2) Click "Add Device"
Status: Started (was: Available)
Here's what this dialog looks like on my Macbook with Cocoa.
Screen Shot 2016-05-17 at 12.24.34 PM.png
94.1 KB View Download
Here's the Views one.
Screen Shot 2016-05-17 at 12.51.22 PM.png
88.9 KB View Download
A simple conversion CL is up: https://codereview.chromium.org/1989543002/
Project Member

Comment 5 by bugdroid1@chromium.org, May 17 2016

Attaching current state at r409749 (probably not much different vs #c3)
Screen Shot 2016-08-04 at 22.28.38.png
185 KB View Download
As of r417913 - looking very similar, since we've done no work on tableview.
Screen Shot 2016-09-12 at 8.40.28 AM.png
40.9 KB View Download

Comment 8 by bettes@chromium.org, Sep 21 2016

Cc: bettes@chromium.org
Labels: Proj-MaterialDesign-NativeUI
As of current stable (53.0.2785.116).
Screen Shot 2016-09-27 at 7.22.30 AM.png
42.0 KB View Download
Screen Shot 2016-10-11 at 1.01.49 PM.png
39.2 KB View Download
Initial comments:

Buttons should be 16pt from bottom of dialog
Rightmost button, and scrollview above, should be 16pt from right edge of dialog
Not the required space between the dialog title and the sub title
Distance between left edge of dialog and controls should be 16pt
Distance between buttons should be 8pt
Distance between top of buttons and scrollview should be 16pt
Distance between subtitle and top of scrollview should be 16pt

Cc: shrike@chromium.org
* Dialog should be 450pt x 284pt
* Dialog should be 448pt x ~284pt

Blocking: 603386
Labels: Phase3
After https://codereview.chromium.org/2654323002/ all the things in #13 should be fixed. The title ("Select a USB device") appears to have been removed so that point about spacing is no longer relevant, and the others are included in this CL.
Can you attach a screenshot?
screenshot attached :)
Screen Shot 2017-01-30 at 3.19.36 PM.png
31.5 KB View Download
Looking better. Some more changes (from the spec):

* Dialog height should be around 556pt
* The dialog width should be increased by 34pt so that the scrollview is 416pt wide
* Dialog title should be "Select a USB device" (with title case on Mac, other case elsewhere)
* The dialog message should be (without a trailing colon)

The application "USB Device Info" is requesting access to one of your devices

Lastly, in the next screenshot you take can you select one of the items so that I see what that looks like? Should the dialog appear with one of the items (like the first one) already selected?

Cc: reillyg@chromium.org juncai@chromium.org
Hi, I think the above CL broke the device chooser on Chrome browser. I attached the screenshot. To reproduce the chooser, open Chrome with flag:
--enable-experimental-web-platform-features
go to: More tools -> Developer tools, select the Console tab, and run the following Javascript code:
device = navigator.usb.requestDevice({filters: [{}]})

The above CL removed the GetPreferredSize() function from //chrome/browser/ui/views/device_chooser_content_view.h
which is used by chooser to setup its size on both Chrome browser and Chrome apps/extension.

The CL added code related to the chooser size to:
//chrome/browser/ui/views/extensions/chooser_dialog_view.cc
and this is only for chooser on Chrome apps/extension, so I think similar code needs to be added to:
https://cs.chromium.org/chromium/src/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc?q=ChooserBubbleUiViewDelegate&l=38
which is for chooser on Chrome browser.
chooser.png
9.3 KB View Download
That dialog is missing a minimum size. I'll add one.
Thanks!
Cc: fbeaufort@chromium.org
 Issue 695858  has been merged into this issue.
Project Member

Comment 27 by bugdroid1@chromium.org, Feb 28 2017

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

commit b7312b4e50b6e10b9382e6adeddf9441112db608
Author: ellyjones <ellyjones@chromium.org>
Date: Tue Feb 28 19:10:01 2017

harmony: fix sizing on webusb chooser dialog

The change in https://codereview.chromium.org/2654323002 removed the
minimum size of the content view used in this dialog, but did not
replace it with a dialog-level minimum size. This change:

1) Has BubbleDialogDelegateView honor its own GetMinimumSize();
2) Implements GetMinimumSize on ChooserBubbleUiViewDelegate

BUG= 610430 

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

[modify] https://crrev.com/b7312b4e50b6e10b9382e6adeddf9441112db608/chrome/browser/ui/views/device_chooser_content_view.cc
[modify] https://crrev.com/b7312b4e50b6e10b9382e6adeddf9441112db608/chrome/browser/ui/views/device_chooser_content_view.h

Comment 28 Deleted

Edit: make sure you use https, or the USB button on permission.site does nothing.

(from  Issue 711178 ) Note there's an alternate codepath for showing this bubble which doesn't appear to be behind --secondary-ui-md yet (as at 60.0.3086.0).

Steps:

1) Enable chrome://flags/#enable-experimental-web-platform-features
2) Navigate to https://permission.site/
3) Click "USB" (or "Bluetooth")

This should be an easy one. The code is mostly shared with the dialog that appears for the apps API. So probably already compiled in, just missing a bit of plumbing.
#29, a draft CL to plumb through the device chooser bubble -
 https://codereview.chromium.org/2853143003/ .
A few samples from Mac:
Screen Shot 2017-05-02 at 6.58.49 PM.png
171 KB View Download
Screen Shot 2017-05-02 at 6.59.37 PM.png
144 KB View Download
Screen Shot 2017-05-02 at 6.59.15 PM.png
154 KB View Download
Can you also post some screenshots from ChromeOS?

I noticed the chooser from the above screenshots doesn't have the arrow points to the omnibox. I uploaded some screenshots from Mac and ChromeOS which have the arrow, and they are built from the current master repo.
chooser_ChromeOS.png
54.4 KB View Download
chooser_Mac.png
78.4 KB View Download
https://codereview.chromium.org/2853143003/ isn't changing ChromeOS. To see how the chooser looks there, just flip chrome://flags/#secondary-ui-md to Enabled.
I see. Thanks.
#32, yes, the arrow is gone with chrome://flags/#secondary-ui-md and alignment is changed to line with the location bar.
Labels: -M-56
Labels: Launch-M-Target-64-Beta
NextAction: 2017-11-10

Comment 39 by bsep@chromium.org, Oct 6 2017

Elly: can this bug be closed or duplicated with  bug 654137 ?
Mergedinto: 654137
Status: Duplicate (was: Started)
I think it can be duped into  bug 654137 .
The NextAction date has arrived: 2017-11-10

Sign in to add a comment