Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 1313843003: Enable keyboard navigation for Desktopcapture window selection dialog (Closed)

Created:
5 years, 3 months ago by GeorgeZ
Modified:
5 years, 2 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Keyboard navigation on desktop capture screen selection dialog didn't work. This issue was shown up in multi-platform include Windows. The focus of the dialog was missed. I added the code for enable and request focus for the list view under the dialog. When Desktop video capture is launching. A Desktop Media Picker Dialog is popped up to let user select source. After fixed, user should be able to use keyboard to select source. No item will be selected right after dialog launch. Click up, down, left and right keys first time will allow the first item to be selected. BUG=527950 Committed: https://crrev.com/1998bee9f96031dec220b9b7b9e50c68de5d995d Cr-Commit-Position: refs/heads/master@{#352701}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a period #

Patch Set 3 : move focus from dialogview to listview #

Total comments: 4

Patch Set 4 : update based on review feedback #

Patch Set 5 : q #

Total comments: 8

Patch Set 6 : review update 3 #

Patch Set 7 : reiew update 4 #

Total comments: 4

Patch Set 8 : review feedback 5 #

Total comments: 2

Patch Set 9 : review set 5 #

Patch Set 10 : Added a unit test function #

Total comments: 4

Patch Set 11 : Unit test review1 #

Total comments: 5

Patch Set 12 : Two more unit tests #

Total comments: 2

Patch Set 13 : remove a unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
M chrome/browser/ui/views/desktop_media_picker_views.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (19 generated)
gyzhou
5 years, 3 months ago (2015-09-03 22:42:28 UTC) #3
Peter Kasting
(1) I'm the wrong primary reviewer for this. Find the person who wrote this code ...
5 years, 3 months ago (2015-09-03 23:03:43 UTC) #4
gyzhou
Could you have a code review for me. Thanks, George
5 years, 3 months ago (2015-09-03 23:57:05 UTC) #7
Sergey Ulanov
lgtm https://codereview.chromium.org/1313843003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/1313843003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode424 chrome/browser/ui/views/desktop_media_picker_views.cc:424: // Enable and request keyboard focus Please add ...
5 years, 3 months ago (2015-09-14 20:59:24 UTC) #8
gyzhou
Please Rubber stamp for me. The code had been reviewed by the author. Thanks. https://codereview.chromium.org/1313843003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc ...
5 years, 3 months ago (2015-09-14 22:51:29 UTC) #10
gyzhou
Please Rubber stamp for me. The code had been reviewed by the author. Thanks,
5 years, 3 months ago (2015-09-14 22:55:06 UTC) #11
Peter Kasting
On 2015/09/14 22:51:29, gyzhou wrote: > Please Rubber stamp for me. The code had been ...
5 years, 3 months ago (2015-09-14 23:14:49 UTC) #12
gyzhou
On 2015/09/14 23:14:49, Peter Kasting wrote: > On 2015/09/14 22:51:29, gyzhou wrote: > > Please ...
5 years, 3 months ago (2015-09-14 23:19:56 UTC) #13
gyzhou
On 2015/09/14 23:19:56, gyzhou wrote: > On 2015/09/14 23:14:49, Peter Kasting wrote: > > On ...
5 years, 3 months ago (2015-09-22 21:05:20 UTC) #15
Peter Kasting
On 2015/09/22 21:05:20, gyzhou wrote: > On 2015/09/14 23:19:56, gyzhou wrote: > > On 2015/09/14 ...
5 years, 3 months ago (2015-09-22 21:07:56 UTC) #16
chromium-reviews
pkasting, In desktop_media_picker_views.h <https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/views/desktop_media_picker_views.h&cl=GROK&l=111> class DesktopMediaPickerDialogView <https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/views/desktop_media_picker_views.h&cl=GROK&l=111&gs=cpp:class-DesktopMediaPickerDialogView@chromium/../../chrome/browser/ui/views/desktop_media_picker_views.h%257Cdef&gsn=DesktopMediaPickerDialogView&ct=xref_usages> : public views <https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/views/desktop_media_picker_views.h&cl=GROK&l=12&ct=xref_jump_to_def&gsn=views>::DialogDelegateView <https://code.google.com/p/chromium/codesearch#chromium/src/ui/views/window/dialog_delegate.h&cl=GROK&l=132&ct=xref_jump_to_def&gsn=DialogDelegateView> { in dialog_delegate.h ...
5 years, 3 months ago (2015-09-22 21:47:55 UTC) #17
gyzhou
On 2015/09/22 21:07:56, Peter Kasting wrote: > On 2015/09/22 21:05:20, gyzhou wrote: > > On ...
5 years, 3 months ago (2015-09-22 21:56:23 UTC) #18
Peter Kasting
Can you give a screenshot of the dialog you're modifying? It's not obvious to me ...
5 years, 3 months ago (2015-09-22 22:04:32 UTC) #19
chromium-reviews
pkasting, Thanks for your timely reply. The screen shot is attached. Inside DesktopMediaPickerDaiogview, there is ...
5 years, 3 months ago (2015-09-22 22:33:08 UTC) #20
Peter Kasting
On 2015/09/22 22:33:08, chromium-reviews wrote: > pkasting, > > Thanks for your timely reply. The ...
5 years, 3 months ago (2015-09-22 22:45:29 UTC) #21
msw
As per the general question; views::View and views::DialogDelegateView are intentionally not focusable by default. The ...
5 years, 3 months ago (2015-09-23 00:10:16 UTC) #23
msw
Also, posting screenshots and detailed steps to reproduce this defect on the associated bug would ...
5 years, 3 months ago (2015-09-23 00:11:58 UTC) #24
gyzhou
Peter and Sergey, Desktop media source picker is implemented in DesktopMediaPickerDialogView class. Inside DesktopMediaPickerDialogView, there ...
5 years, 2 months ago (2015-09-23 20:30:52 UTC) #26
Peter Kasting
Also consider what should happen when the user opens the dialog and then simply hits ...
5 years, 2 months ago (2015-09-23 20:54:20 UTC) #28
chromium-reviews
Peter, Right after dialog launches, no item/sourceview is added to listview. Therefore, no item is ...
5 years, 2 months ago (2015-09-23 21:13:51 UTC) #29
Peter Kasting
On 2015/09/23 21:13:51, chromium-reviews wrote: > Peter, > > Right after dialog launches, no item/sourceview ...
5 years, 2 months ago (2015-09-23 21:33:08 UTC) #30
chromium-reviews
Peter, Last line of code in constructor of DesktopMediaPickerDialogView used to be list_view_->StartUpdating(dialog_window_id); Then a ...
5 years, 2 months ago (2015-09-23 21:54:39 UTC) #31
Peter Kasting
On 2015/09/23 21:54:39, chromium-reviews wrote: > Peter, > > Last line of code in constructor ...
5 years, 2 months ago (2015-09-23 21:56:09 UTC) #32
chromium-reviews
By design, if user didn't do anything, then no item will be selected automatically even ...
5 years, 2 months ago (2015-09-23 22:02:31 UTC) #33
Peter Kasting
On 2015/09/23 22:02:31, chromium-reviews wrote: > By design, if user didn't do anything, then no ...
5 years, 2 months ago (2015-09-23 22:12:44 UTC) #34
chromium-reviews
Peter, The issue that I was asked to fix is that after DesktopMediaPicker dialog is ...
5 years, 2 months ago (2015-09-23 22:33:15 UTC) #35
gyzhou
Peter, I just updated the code based on your review comments. Thanks, George https://codereview.chromium.org/1313843003/diff/40001/chrome/browser/ui/views/desktop_media_picker_views.cc File ...
5 years, 2 months ago (2015-09-23 22:37:26 UTC) #37
Peter Kasting
On 2015/09/23 22:33:15, chromium-reviews wrote: > For the dialog, when nothing is selected. Enter key ...
5 years, 2 months ago (2015-09-23 22:43:57 UTC) #39
gyzhou
Peter, Codes were updated based on your comments. Thanks for your help. George https://codereview.chromium.org/1313843003/diff/80001/chrome/browser/ui/views/desktop_media_picker_views.cc File ...
5 years, 2 months ago (2015-09-23 23:43:40 UTC) #41
Peter Kasting
https://codereview.chromium.org/1313843003/diff/120001/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/1313843003/diff/120001/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode448 chrome/browser/ui/views/desktop_media_picker_views.cc:448: views::View* initView = GetInitiallyFocusedView(); This block is still here. ...
5 years, 2 months ago (2015-09-24 04:10:25 UTC) #43
gyzhou
On 2015/09/24 04:10:25, Peter Kasting wrote: > https://codereview.chromium.org/1313843003/diff/120001/chrome/browser/ui/views/desktop_media_picker_views.cc > File chrome/browser/ui/views/desktop_media_picker_views.cc (right): > > https://codereview.chromium.org/1313843003/diff/120001/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode448 ...
5 years, 2 months ago (2015-09-24 15:51:25 UTC) #44
Peter Kasting
I'm feeling frustrated about the communication and the quality of implementation here. I realize that ...
5 years, 2 months ago (2015-09-24 20:46:56 UTC) #45
gyzhou
On 2015/09/24 20:46:56, Peter Kasting wrote: > I'm feeling frustrated about the communication and the ...
5 years, 2 months ago (2015-09-24 21:22:41 UTC) #47
Peter Kasting
On 2015/09/24 21:22:41, gyzhou wrote: > I guess I eventually got your point. When a ...
5 years, 2 months ago (2015-09-24 21:34:37 UTC) #48
chromium-reviews
Peter Javascript Test code is in /src/chrome/common/extensions/docs/examples/api/desktopCapture I did several test and it looks fine. ...
5 years, 2 months ago (2015-09-24 21:42:28 UTC) #49
Peter Kasting
On 2015/09/24 21:42:28, chromium-reviews wrote: > Peter > > Javascript Test code is in > ...
5 years, 2 months ago (2015-09-24 22:45:50 UTC) #50
gyzhou
Sergey, I just added a unit test function as required to check the medial list ...
5 years, 2 months ago (2015-09-28 16:19:32 UTC) #51
Sergey Ulanov
lgtm https://codereview.chromium.org/1313843003/diff/180001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc File chrome/browser/ui/views/desktop_media_picker_views_unittest.cc (right): https://codereview.chromium.org/1313843003/diff/180001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc#newcode188 chrome/browser/ui/views/desktop_media_picker_views_unittest.cc:188: // Verifies that the MediaListView get the initial ...
5 years, 2 months ago (2015-10-01 18:23:11 UTC) #52
gyzhou
On 2015/10/01 18:23:11, Sergey Ulanov wrote: > lgtm > > https://codereview.chromium.org/1313843003/diff/180001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc > File chrome/browser/ui/views/desktop_media_picker_views_unittest.cc (right): ...
5 years, 2 months ago (2015-10-01 20:44:41 UTC) #53
gyzhou
https://codereview.chromium.org/1313843003/diff/120001/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/1313843003/diff/120001/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode448 chrome/browser/ui/views/desktop_media_picker_views.cc:448: views::View* initView = GetInitiallyFocusedView(); On 2015/09/24 04:10:25, Peter Kasting ...
5 years, 2 months ago (2015-10-02 18:51:26 UTC) #55
Peter Kasting
https://codereview.chromium.org/1313843003/diff/200001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc File chrome/browser/ui/views/desktop_media_picker_views_unittest.cc (right): https://codereview.chromium.org/1313843003/diff/200001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc#newcode190 chrome/browser/ui/views/desktop_media_picker_views_unittest.cc:190: EXPECT_TRUE(GetPickerDialogView()->GetMediaListViewForTesting()->HasFocus()); I was thinking more along the lines of ...
5 years, 2 months ago (2015-10-02 18:52:56 UTC) #57
chromium-reviews
Peter, We verified that bool DesktopMediaListView::OnKeyPressed() will not be executed when arrow keys are pressed. ...
5 years, 2 months ago (2015-10-02 19:48:30 UTC) #58
Peter Kasting
On 2015/10/02 19:48:30, chromium-reviews wrote: > Peter, > > We verified that bool DesktopMediaListView::OnKeyPressed() will ...
5 years, 2 months ago (2015-10-02 19:49:55 UTC) #59
gyzhou
Sergey, Based on peter's comments, I added two more unit tests for better unit test ...
5 years, 2 months ago (2015-10-05 20:50:17 UTC) #61
Peter Kasting
https://codereview.chromium.org/1313843003/diff/200001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc File chrome/browser/ui/views/desktop_media_picker_views_unittest.cc (right): https://codereview.chromium.org/1313843003/diff/200001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc#newcode190 chrome/browser/ui/views/desktop_media_picker_views_unittest.cc:190: EXPECT_TRUE(GetPickerDialogView()->GetMediaListViewForTesting()->HasFocus()); On 2015/10/05 20:50:16, gyzhou wrote: > On 2015/10/02 ...
5 years, 2 months ago (2015-10-05 20:59:46 UTC) #62
gyzhou
https://codereview.chromium.org/1313843003/diff/200001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc File chrome/browser/ui/views/desktop_media_picker_views_unittest.cc (right): https://codereview.chromium.org/1313843003/diff/200001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc#newcode190 chrome/browser/ui/views/desktop_media_picker_views_unittest.cc:190: EXPECT_TRUE(GetPickerDialogView()->GetMediaListViewForTesting()->HasFocus()); On 2015/10/05 20:59:45, Peter Kasting wrote: > On ...
5 years, 2 months ago (2015-10-05 21:12:27 UTC) #63
Peter Kasting
https://codereview.chromium.org/1313843003/diff/200001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc File chrome/browser/ui/views/desktop_media_picker_views_unittest.cc (right): https://codereview.chromium.org/1313843003/diff/200001/chrome/browser/ui/views/desktop_media_picker_views_unittest.cc#newcode190 chrome/browser/ui/views/desktop_media_picker_views_unittest.cc:190: EXPECT_TRUE(GetPickerDialogView()->GetMediaListViewForTesting()->HasFocus()); On 2015/10/05 21:12:27, gyzhou wrote: > On 2015/10/05 ...
5 years, 2 months ago (2015-10-05 21:59:26 UTC) #64
Niklas Enbom
There's no UI test for the window picker, and it makes sense to have one. ...
5 years, 2 months ago (2015-10-05 22:10:23 UTC) #65
Peter Kasting
On 2015/10/05 22:10:23, Niklas Enbom wrote: > There's no UI test for the window picker, ...
5 years, 2 months ago (2015-10-05 22:36:08 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313843003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313843003/240001
5 years, 2 months ago (2015-10-06 22:09:41 UTC) #69
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 2 months ago (2015-10-06 22:18:18 UTC) #70
commit-bot: I haz the power
5 years, 2 months ago (2015-10-06 22:19:15 UTC) #71
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/1998bee9f96031dec220b9b7b9e50c68de5d995d
Cr-Commit-Position: refs/heads/master@{#352701}

Powered by Google App Engine
This is Rietveld 408576698