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

Issue 230613004: Block keyboard and mouse input when maximize mode is activated by accelerometer. (Closed)

Created:
6 years, 8 months ago by flackr
Modified:
6 years, 8 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Block keyboard and mouse input when maximize mode is activated by accelerometer. BUG=353409 TEST=MaximizeModeControllerTest.BlocksKeyboardAndMouse Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263481

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use event targeter to block keyboard and mouse events. #

Total comments: 2

Patch Set 3 : Merge with master and address nit. #

Patch Set 4 : Merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -34 lines) Patch
M ash/ash.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.h View 1 2 4 chunks +7 lines, -5 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.cc View 1 2 3 3 chunks +19 lines, -17 lines 0 comments Download
M ash/high_contrast/high_contrast_controller.h View 1 1 chunk +5 lines, -6 lines 0 comments Download
M ash/high_contrast/high_contrast_controller.cc View 1 2 chunks +9 lines, -4 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M ash/shell.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M ash/shell_observer.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 chunks +81 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/maximize_mode_event_blocker.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/maximize_mode_event_blocker.cc View 1 1 chunk +100 lines, -0 lines 0 comments Download
M ui/aura/scoped_window_targeter.h View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
flackr
Hi, This is a simple approach to blocking keyboard and touchpad events when we enter ...
6 years, 8 months ago (2014-04-09 13:55:09 UTC) #1
sadrul
https://codereview.chromium.org/230613004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/230613004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode92 ash/wm/maximize_mode/maximize_mode_controller.cc:92: Shell::GetInstance()->PrependPreTargetHandler(this); Can you install a WindowTargeter on the root-window ...
6 years, 8 months ago (2014-04-09 16:54:18 UTC) #2
flackr
https://codereview.chromium.org/230613004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/230613004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode92 ash/wm/maximize_mode/maximize_mode_controller.cc:92: Shell::GetInstance()->PrependPreTargetHandler(this); On 2014/04/09 16:54:18, sadrul wrote: > Can you ...
6 years, 8 months ago (2014-04-09 17:11:49 UTC) #3
sadrul
https://codereview.chromium.org/230613004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/230613004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode92 ash/wm/maximize_mode/maximize_mode_controller.cc:92: Shell::GetInstance()->PrependPreTargetHandler(this); On 2014/04/09 17:11:49, flackr wrote: > On 2014/04/09 ...
6 years, 8 months ago (2014-04-09 17:33:30 UTC) #4
oshima
i'll wait until sadrul's comment is resolved.
6 years, 8 months ago (2014-04-09 23:02:58 UTC) #5
flackr
https://codereview.chromium.org/230613004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/230613004/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode92 ash/wm/maximize_mode/maximize_mode_controller.cc:92: Shell::GetInstance()->PrependPreTargetHandler(this); On 2014/04/09 17:33:30, sadrul wrote: > On 2014/04/09 ...
6 years, 8 months ago (2014-04-10 02:30:02 UTC) #6
sadrul
ui/aura/ and MaximizeModeEventBlocker lgtm. Thanks!
6 years, 8 months ago (2014-04-10 16:23:43 UTC) #7
oshima
lgtm https://codereview.chromium.org/230613004/diff/40001/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc File ash/wm/maximize_mode/maximize_mode_controller_unittest.cc (right): https://codereview.chromium.org/230613004/diff/40001/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc#newcode35 ash/wm/maximize_mode/maximize_mode_controller_unittest.cc:35: size_t event_count() { return event_count_; } const
6 years, 8 months ago (2014-04-10 20:52:57 UTC) #8
flackr
https://codereview.chromium.org/230613004/diff/40001/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc File ash/wm/maximize_mode/maximize_mode_controller_unittest.cc (right): https://codereview.chromium.org/230613004/diff/40001/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc#newcode35 ash/wm/maximize_mode/maximize_mode_controller_unittest.cc:35: size_t event_count() { return event_count_; } On 2014/04/10 20:52:57, ...
6 years, 8 months ago (2014-04-10 21:24:55 UTC) #9
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 8 months ago (2014-04-10 21:25:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/230613004/50001
6 years, 8 months ago (2014-04-10 21:26:09 UTC) #11
ghost stip (do not use)
The CQ bit was unchecked by stip@chromium.org
6 years, 8 months ago (2014-04-11 21:30:27 UTC) #12
ghost stip (do not use)
The CQ bit was checked by stip@chromium.org
6 years, 8 months ago (2014-04-11 21:30:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/230613004/50001
6 years, 8 months ago (2014-04-11 23:48:42 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 23:48:51 UTC) #15
commit-bot: I haz the power
Failed to apply patch for ash/root_window_controller.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-11 23:48:52 UTC) #16
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 8 months ago (2014-04-12 00:23:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/230613004/70001
6 years, 8 months ago (2014-04-12 00:25:35 UTC) #18
commit-bot: I haz the power
6 years, 8 months ago (2014-04-12 05:18:31 UTC) #19
Message was sent while issue was closed.
Change committed as 263481

Powered by Google App Engine
This is Rietveld 408576698