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

Issue 1268293002: [MacViews] Fix AccessiblePaneViewTest.SetPaneFocusAndRestore. (Closed)

Created:
5 years, 4 months ago by jackhou1
Modified:
5 years, 4 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MacViews] Fix AccessiblePaneViewTest.SetPaneFocusAndRestore. Fake out key status to make Widget::Activate/IsActive work in the unit test. If-def out the part that requires Widget::Deactivate as it's not supported on Mac. The test was also failing because Mac checks WidgetDelegate::CanActivate() when activating whereas NativeWidgetAura defers this to `ShouldActivate` which is only checked by wm::BaseFocusRules. Also improve c/b/ui/test/scoped_fake_nswindow_main_status to handle key status as well and move it to ui/base/test/. BUG=378134 Committed: https://crrev.com/24869918ffc61b2a29e7a8b23d9120e13c3404fd Cr-Commit-Position: refs/heads/master@{#342289}

Patch Set 1 #

Patch Set 2 : Similarity=10 #

Patch Set 3 : Remove dependent patch. #

Total comments: 22

Patch Set 4 : Address comments. #

Total comments: 4

Patch Set 5 : Address comments. #

Patch Set 6 : Address comments. #

Patch Set 7 : Remove blank line. #

Total comments: 6

Patch Set 8 : Address comments. #

Total comments: 2

Patch Set 9 : Remove roque delta. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -134 lines) Patch
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm View 1 2 3 5 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
D chrome/browser/ui/test/scoped_fake_nswindow_main_status.h View 1 chunk +0 lines, -32 lines 0 comments Download
D chrome/browser/ui/test/scoped_fake_nswindow_main_status.mm View 1 chunk +0 lines, -47 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/base/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A + ui/base/test/scoped_fake_nswindow_focus.h View 1 2 3 2 chunks +19 lines, -12 lines 0 comments Download
A + ui/base/test/scoped_fake_nswindow_focus.mm View 1 2 3 4 5 1 chunk +76 lines, -23 lines 0 comments Download
M ui/base/ui_base.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/accessible_pane_view_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
jackhou1
tapted, PTAL
5 years, 4 months ago (2015-08-05 06:38:04 UTC) #2
tapted
https://codereview.chromium.org/1268293002/diff/30001/ui/base/test/scoped_fake_nswindow_focus.h File ui/base/test/scoped_fake_nswindow_focus.h (right): https://codereview.chromium.org/1268293002/diff/30001/ui/base/test/scoped_fake_nswindow_focus.h#newcode5 ui/base/test/scoped_fake_nswindow_focus.h:5: #ifndef CHROME_BROWSER_UI_TEST_SCOPED_FAKE_NSWINDOW_FOCUS_H_ UI_BASE_TEST_SCOPED_FAKE_NSWINDOW_FOCUS_H_ https://codereview.chromium.org/1268293002/diff/30001/ui/base/test/scoped_fake_nswindow_focus.h#newcode41 ui/base/test/scoped_fake_nswindow_focus.h:41: class ScopedFakeNSWindowKeyStatus { Do ...
5 years, 4 months ago (2015-08-05 07:07:18 UTC) #3
jackhou1
https://codereview.chromium.org/1268293002/diff/30001/ui/base/test/scoped_fake_nswindow_focus.h File ui/base/test/scoped_fake_nswindow_focus.h (right): https://codereview.chromium.org/1268293002/diff/30001/ui/base/test/scoped_fake_nswindow_focus.h#newcode5 ui/base/test/scoped_fake_nswindow_focus.h:5: #ifndef CHROME_BROWSER_UI_TEST_SCOPED_FAKE_NSWINDOW_FOCUS_H_ On 2015/08/05 07:07:17, tapted wrote: > UI_BASE_TEST_SCOPED_FAKE_NSWINDOW_FOCUS_H_ ...
5 years, 4 months ago (2015-08-06 00:22:30 UTC) #4
tapted
https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc File ui/views/accessible_pane_view_unittest.cc (right): https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc#newcode123 ui/views/accessible_pane_view_unittest.cc:123: widget_main->Activate(); On 2015/08/06 00:22:30, jackhou1 wrote: > On 2015/08/05 ...
5 years, 4 months ago (2015-08-06 01:21:17 UTC) #5
jackhou1
https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc File ui/views/accessible_pane_view_unittest.cc (right): https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc#newcode123 ui/views/accessible_pane_view_unittest.cc:123: widget_main->Activate(); On 2015/08/06 01:21:17, tapted wrote: > On 2015/08/06 ...
5 years, 4 months ago (2015-08-06 01:51:36 UTC) #6
tapted
https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc File ui/views/accessible_pane_view_unittest.cc (right): https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc#newcode123 ui/views/accessible_pane_view_unittest.cc:123: widget_main->Activate(); On 2015/08/06 01:51:35, jackhou1 wrote: > On 2015/08/06 ...
5 years, 4 months ago (2015-08-06 03:01:00 UTC) #7
jackhou1
https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc File ui/views/accessible_pane_view_unittest.cc (right): https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc#newcode123 ui/views/accessible_pane_view_unittest.cc:123: widget_main->Activate(); On 2015/08/06 03:01:00, tapted wrote: > On 2015/08/06 ...
5 years, 4 months ago (2015-08-06 06:10:58 UTC) #8
tapted
lgtm https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc File ui/views/accessible_pane_view_unittest.cc (right): https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc#newcode123 ui/views/accessible_pane_view_unittest.cc:123: widget_main->Activate(); On 2015/08/06 06:10:57, jackhou1 wrote: > On ...
5 years, 4 months ago (2015-08-06 06:49:12 UTC) #9
jackhou1
https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc File ui/views/accessible_pane_view_unittest.cc (right): https://codereview.chromium.org/1268293002/diff/30001/ui/views/accessible_pane_view_unittest.cc#newcode123 ui/views/accessible_pane_view_unittest.cc:123: widget_main->Activate(); On 2015/08/06 06:49:12, tapted wrote: > On 2015/08/06 ...
5 years, 4 months ago (2015-08-06 07:35:03 UTC) #10
jackhou1
sky, please review for OWNERS
5 years, 4 months ago (2015-08-06 07:35:40 UTC) #12
tapted
still lgtm but a rogue symbol appeared (also yay! this is the last views_unittest \o/) ...
5 years, 4 months ago (2015-08-06 09:07:33 UTC) #13
sky
LGTM
5 years, 4 months ago (2015-08-06 17:10:41 UTC) #14
jackhou1
https://codereview.chromium.org/1268293002/diff/120001/ui/views/accessible_pane_view_unittest.cc File ui/views/accessible_pane_view_unittest.cc (right): https://codereview.chromium.org/1268293002/diff/120001/ui/views/accessible_pane_view_unittest.cc#newcode149 ui/views/accessible_pane_view_unittest.cc:149: // to simply activate∆ another window, and which one ...
5 years, 4 months ago (2015-08-06 23:40:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1268293002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1268293002/140001
5 years, 4 months ago (2015-08-06 23:40:53 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/90147)
5 years, 4 months ago (2015-08-07 00:44:36 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1268293002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1268293002/140001
5 years, 4 months ago (2015-08-07 03:20:41 UTC) #22
commit-bot: I haz the power
Committed patchset #9 (id:140001)
5 years, 4 months ago (2015-08-07 05:17:31 UTC) #23
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 05:18:19 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/24869918ffc61b2a29e7a8b23d9120e13c3404fd
Cr-Commit-Position: refs/heads/master@{#342289}

Powered by Google App Engine
This is Rietveld 408576698