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

Issue 14222019: Trying to activate a window in a workspace other than the current is ignored while a system modal d… (Closed)

Created:
7 years, 8 months ago by sschmitz
Modified:
7 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Trying to activate a window in a workspace other than the current is ignored while a system modal dialog is up Added function "OnAttemptToReactivateWindow" to ActivationChangeObserver. WorkspaceController will activate the requested window's workspace, if the window did not become active because of a system modal window. BUG=196697 R=sky@chromium.org TEST= ash_unittests --gtest_filter='WorkspaceManagerTest.SwitchFromModal' views_unittests --gtest_filter='FocusControllerApiTest.ReactivationEvents' Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196243

Patch Set 1 #

Total comments: 2

Patch Set 2 : reduced #

Total comments: 14

Patch Set 3 : focus controller unittest #

Total comments: 6

Patch Set 4 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -10 lines) Patch
M ash/wm/workspace/workspace_manager_unittest.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M ash/wm/workspace_controller.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/workspace_controller.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M ui/aura/client/activation_change_observer.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/corewm/focus_controller.h View 1 2 3 1 chunk +11 lines, -4 lines 0 comments Download
M ui/views/corewm/focus_controller.cc View 1 2 3 chunks +15 lines, -4 lines 0 comments Download
M ui/views/corewm/focus_controller_unittest.cc View 1 2 3 7 chunks +43 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sschmitz
7 years, 8 months ago (2013-04-23 17:01:34 UTC) #1
sky
https://codereview.chromium.org/14222019/diff/1/ui/views/corewm/focus_controller.cc File ui/views/corewm/focus_controller.cc (right): https://codereview.chromium.org/14222019/diff/1/ui/views/corewm/focus_controller.cc#newcode288 ui/views/corewm/focus_controller.cc:288: if (updating_activation_ || window == active_window_) Looking at this ...
7 years, 8 months ago (2013-04-23 17:45:39 UTC) #2
sschmitz
Not sure I follow... In this case we're not in an updating_focus scenario nor in ...
7 years, 8 months ago (2013-04-23 18:22:55 UTC) #3
sschmitz
Now, I think I get it. Do you propose to restrict (this new logic) to ...
7 years, 8 months ago (2013-04-23 18:41:31 UTC) #4
sschmitz
Done. https://codereview.chromium.org/14222019/diff/1/ui/views/corewm/focus_controller.cc File ui/views/corewm/focus_controller.cc (right): https://codereview.chromium.org/14222019/diff/1/ui/views/corewm/focus_controller.cc#newcode288 ui/views/corewm/focus_controller.cc:288: if (updating_activation_ || window == active_window_) On 2013/04/23 ...
7 years, 8 months ago (2013-04-23 19:04:38 UTC) #5
sky
Also add test coverage in FocusControllerUnittest. By that I mean make sure your new method ...
7 years, 8 months ago (2013-04-23 21:36:42 UTC) #6
sschmitz
done https://codereview.chromium.org/14222019/diff/8001/ash/wm/workspace_controller.cc File ash/wm/workspace_controller.cc (right): https://codereview.chromium.org/14222019/diff/8001/ash/wm/workspace_controller.cc#newcode63 ash/wm/workspace_controller.cc:63: aura::Window* request_active, aura::Window* actual_active) { On 2013/04/23 21:36:42, ...
7 years, 8 months ago (2013-04-24 01:23:42 UTC) #7
sky
Just nits, LGTM https://codereview.chromium.org/14222019/diff/16001/ash/wm/workspace_controller.cc File ash/wm/workspace_controller.cc (right): https://codereview.chromium.org/14222019/diff/16001/ash/wm/workspace_controller.cc#newcode65 ash/wm/workspace_controller.cc:65: if (request_active == actual_active) Why do ...
7 years, 8 months ago (2013-04-24 14:14:52 UTC) #8
sschmitz
all done. https://codereview.chromium.org/14222019/diff/16001/ash/wm/workspace_controller.cc File ash/wm/workspace_controller.cc (right): https://codereview.chromium.org/14222019/diff/16001/ash/wm/workspace_controller.cc#newcode65 ash/wm/workspace_controller.cc:65: if (request_active == actual_active) On 2013/04/24 14:14:53, ...
7 years, 8 months ago (2013-04-24 15:42:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/14222019/25001
7 years, 8 months ago (2013-04-24 15:57:31 UTC) #10
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=32777
7 years, 8 months ago (2013-04-24 18:49:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/14222019/25001
7 years, 8 months ago (2013-04-24 20:41:46 UTC) #12
commit-bot: I haz the power
7 years, 8 months ago (2013-04-24 21:56:34 UTC) #13
Message was sent while issue was closed.
Change committed as 196243

Powered by Google App Engine
This is Rietveld 408576698