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

Issue 11047030: Decouple EventClientImpl and root window. Check containers on the same root window as focused windo… (Closed)

Created:
8 years, 2 months ago by oshima
Modified:
8 years, 2 months ago
Reviewers:
Daniel Erat, sky
CC:
chromium-reviews, mazda+watch_chromium.org, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

Decouple EventClientImpl and root window. Check containers on the same root window as focused window when testing if the focused window can receive events. This was causing lock screen to lose focus when mouse is clicked on another root window. This Cl also adds a debug build/linux desktop only shortcut (F11) to lock/shutdown. BUG=152982 TEST=covered by test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160696 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=160804 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161058

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : lock button #

Patch Set 5 : lock button #

Total comments: 12

Patch Set 6 : addressed comments #

Patch Set 7 : fix duplicated actions #

Patch Set 8 : #

Patch Set 9 : generate correct key events on windows #

Patch Set 10 : generate correct key events on windows #

Patch Set 11 : fix type in event_filter_unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -39 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 3 chunks +31 lines, -4 lines 0 comments Download
M ash/accelerators/accelerator_table.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 0 comments Download
M ash/extended_desktop_unittest.cc View 1 4 chunks +70 lines, -0 lines 0 comments Download
M ash/root_window_controller.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M ash/root_window_controller.cc View 3 chunks +0 lines, -4 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 4 chunks +10 lines, -0 lines 0 comments Download
M ash/wm/event_client_impl.h View 2 chunks +1 line, -3 lines 0 comments Download
M ash/wm/event_client_impl.cc View 1 2 1 chunk +10 lines, -12 lines 0 comments Download
M ash/wm/power_button_controller.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M ui/aura/event_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +14 lines, -7 lines 0 comments Download
M ui/aura/test/event_generator.cc View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
oshima
http://codereview.chromium.org/11047030/diff/2001/ash/wm/event_client_impl.cc File ash/wm/event_client_impl.cc (right): http://codereview.chromium.org/11047030/diff/2001/ash/wm/event_client_impl.cc#newcode23 ash/wm/event_client_impl.cc:23: const_cast<aura::RootWindow*>(window->GetRootWindow()) : NULL; GetContainer doesn't change the state of ...
8 years, 2 months ago (2012-10-06 06:57:36 UTC) #1
Daniel Erat
http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc#newcode770 ash/accelerators/accelerator_controller.cc:770: // -- see http://crbug.com/146609. this comment needs to be ...
8 years, 2 months ago (2012-10-06 14:00:18 UTC) #2
Daniel Erat
http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc#newcode766 ash/accelerators/accelerator_controller.cc:766: case POWER_PRESSED: i think that i'd rather that you ...
8 years, 2 months ago (2012-10-06 14:01:20 UTC) #3
oshima
http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc#newcode766 ash/accelerators/accelerator_controller.cc:766: case POWER_PRESSED: On 2012/10/06 14:01:20, Daniel Erat wrote: > ...
8 years, 2 months ago (2012-10-06 17:20:58 UTC) #4
Daniel Erat
http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc#newcode766 ash/accelerators/accelerator_controller.cc:766: case POWER_PRESSED: On 2012/10/06 17:20:58, oshima wrote: > On ...
8 years, 2 months ago (2012-10-07 13:40:02 UTC) #5
oshima
On Sun, Oct 7, 2012 at 6:40 AM, <derat@chromium.org> wrote: > > http://codereview.chromium.**org/11047030/diff/2001/ash/** > accelerators/accelerator_**controller.cc<http://codereview.chromium.org/11047030/diff/2001/ash/accelerators/accelerator_controller.cc> ...
8 years, 2 months ago (2012-10-07 16:54:09 UTC) #6
Daniel Erat
On Sun, Oct 7, 2012 at 9:53 AM, oshima <oshima@chromium.org> wrote: > > > On ...
8 years, 2 months ago (2012-10-07 21:28:50 UTC) #7
oshima
On 2012/10/07 21:28:50, Daniel Erat wrote: > On Sun, Oct 7, 2012 at 9:53 AM, ...
8 years, 2 months ago (2012-10-07 22:39:31 UTC) #8
oshima
uploaded new patch. PTAL.
8 years, 2 months ago (2012-10-08 07:05:58 UTC) #9
Daniel Erat
lgtm http://codereview.chromium.org/11047030/diff/9015/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): http://codereview.chromium.org/11047030/diff/9015/ash/accelerators/accelerator_controller.cc#newcode776 ash/accelerators/accelerator_controller.cc:776: // We don't do anything with these at ...
8 years, 2 months ago (2012-10-08 14:41:51 UTC) #10
oshima
http://codereview.chromium.org/11047030/diff/9015/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): http://codereview.chromium.org/11047030/diff/9015/ash/accelerators/accelerator_controller.cc#newcode776 ash/accelerators/accelerator_controller.cc:776: // We don't do anything with these at present ...
8 years, 2 months ago (2012-10-08 17:52:59 UTC) #11
Daniel Erat
lgtm http://codereview.chromium.org/11047030/diff/9015/ash/shell.cc File ash/shell.cc (right): http://codereview.chromium.org/11047030/diff/9015/ash/shell.cc#newcode352 ash/shell.cc:352: const aura::Window* Shell::GetContainer(const aura::RootWindow* root_window, On 2012/10/08 17:52:59, ...
8 years, 2 months ago (2012-10-08 18:24:25 UTC) #12
oshima
On 2012/10/08 18:24:25, Daniel Erat wrote: > lgtm > > http://codereview.chromium.org/11047030/diff/9015/ash/shell.cc > File ash/shell.cc (right): ...
8 years, 2 months ago (2012-10-08 18:31:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11047030/18001
8 years, 2 months ago (2012-10-08 18:31:41 UTC) #14
commit-bot: I haz the power
Change committed as 160696
8 years, 2 months ago (2012-10-08 20:41:54 UTC) #15
oshima
On 2012/10/08 20:41:54, I haz the power (commit-bot) wrote: > Change committed as 160696 Looks ...
8 years, 2 months ago (2012-10-08 23:54:32 UTC) #16
oshima
8 years, 2 months ago (2012-10-08 23:54:38 UTC) #17
oshima
Scott, can you review ui/aura changes? This is necessary to get EventGenerator::KeyPress/Release working on Windows. ...
8 years, 2 months ago (2012-10-09 23:35:24 UTC) #18
sky
LGTM
8 years, 2 months ago (2012-10-10 03:28:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11047030/18003
8 years, 2 months ago (2012-10-10 03:34:41 UTC) #20
commit-bot: I haz the power
8 years, 2 months ago (2012-10-10 05:52:39 UTC) #21
Change committed as 161058

Powered by Google App Engine
This is Rietveld 408576698