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

Issue 144193002: Only drag or maximize / restore when event has not yet been handled. (Closed)

Created:
6 years, 11 months ago by flackr
Modified:
6 years, 10 months ago
Reviewers:
pkotwicz, oshima
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Only drag or maximize / restore when event has not yet been handled. BUG=332295 TEST=ToplevelWindowEventHandlerTest.DontDragIfModalChild, WorkspaceEventHandlerTest.DoubleClickOrTapWithModalChildDoesntMaximize TEST=Press Ctrl+O and then try to double click or drag the browser window. It should not move or maximize. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248022

Patch Set 1 #

Patch Set 2 : Panels too, no test for these yet. #

Total comments: 2

Patch Set 3 : Always ignore handled events. #

Total comments: 2

Patch Set 4 : Indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -5 lines) Patch
M ash/wm/panels/panel_window_event_handler.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ash/wm/toplevel_window_event_handler.cc View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M ash/wm/toplevel_window_event_handler_unittest.cc View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_event_handler.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_event_handler_unittest.cc View 1 2 3 4 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
flackr
PTAL, thanks. This CL prevents dragging / resizing / maximizing / restoring parents of modal ...
6 years, 11 months ago (2014-01-21 18:22:31 UTC) #1
oshima
On 2014/01/21 18:22:31, flackr wrote: > PTAL, thanks. This CL prevents dragging / resizing / ...
6 years, 11 months ago (2014-01-21 22:14:53 UTC) #2
pkotwicz
https://codereview.chromium.org/144193002/diff/60001/ash/wm/toplevel_window_event_handler.cc File ash/wm/toplevel_window_event_handler.cc (right): https://codereview.chromium.org/144193002/diff/60001/ash/wm/toplevel_window_event_handler.cc#newcode391 ash/wm/toplevel_window_event_handler.cc:391: event->StopPropagation(); Can you do me a favor and only ...
6 years, 11 months ago (2014-01-21 22:22:39 UTC) #3
flackr
It's perfectly safe to always ignore handled events, which should be less fragile. This will ...
6 years, 10 months ago (2014-01-29 15:27:31 UTC) #4
oshima
thanks, this looks better, lgtm. https://codereview.chromium.org/144193002/diff/120001/ash/wm/workspace/workspace_event_handler_unittest.cc File ash/wm/workspace/workspace_event_handler_unittest.cc (right): https://codereview.chromium.org/144193002/diff/120001/ash/wm/workspace/workspace_event_handler_unittest.cc#newcode253 ash/wm/workspace/workspace_event_handler_unittest.cc:253: DoubleClickOrTapWithModalChildDoesntMaximize) { nit: indent
6 years, 10 months ago (2014-01-29 20:02:22 UTC) #5
flackr
https://codereview.chromium.org/144193002/diff/120001/ash/wm/workspace/workspace_event_handler_unittest.cc File ash/wm/workspace/workspace_event_handler_unittest.cc (right): https://codereview.chromium.org/144193002/diff/120001/ash/wm/workspace/workspace_event_handler_unittest.cc#newcode253 ash/wm/workspace/workspace_event_handler_unittest.cc:253: DoubleClickOrTapWithModalChildDoesntMaximize) { On 2014/01/29 20:02:22, oshima wrote: > nit: ...
6 years, 10 months ago (2014-01-30 15:16:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/144193002/160001
6 years, 10 months ago (2014-01-30 15:18:06 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=254240
6 years, 10 months ago (2014-01-30 16:38:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/144193002/160001
6 years, 10 months ago (2014-01-30 16:52:25 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=254455
6 years, 10 months ago (2014-01-30 20:06:37 UTC) #10
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 20:06:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/144193002/160001
6 years, 10 months ago (2014-01-30 20:16:06 UTC) #12
commit-bot: I haz the power
Change committed as 248022
6 years, 10 months ago (2014-01-30 20:46:57 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 20:47:03 UTC) #14
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698