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

Issue 2617733002: Hide docked windows behind a flag (Closed)

Created:
3 years, 11 months ago by afakhry
Modified:
3 years, 11 months ago
CC:
chromium-reviews, kalyank, sadrul, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hide docked windows behind a flag As a first step before removing this feature we will hide it behind a flag in this milestone, and remove it completely in the next one. BUG=668355 TEST=manually, with flag disabled, press Alt+] or Alt+[ or dragging windows to either edges of the screen, windows only snap, no docked windows. TEST=manually, with flag enabled, windows are dockable and snappable. TEST=ash_unittests --gtest_filter=AcceleratorControllerTest.WindowSnapWithoutDocking Review-Url: https://codereview.chromium.org/2617733002 Cr-Commit-Position: refs/heads/master@{#442620} Committed: https://chromium.googlesource.com/chromium/src/+/b9147616bf449986d216f2a67f1bd48924c793a7

Patch Set 1 : [WIP] Adding flag #

Patch Set 2 : [WIP] Windows can no longer dock without the flag. Lots of test failures expected. #

Patch Set 3 : [WIP] Fixed tests. Others might fail. #

Patch Set 4 : [WIP] Fixed more tests, seeing if all pass. #

Patch Set 5 : [WIP] Rebase .... #

Patch Set 6 : [WIP] Fix mash_unittests #

Patch Set 7 : No longer WIP + added a new test. #

Total comments: 2

Patch Set 8 : DCHECK #

Patch Set 9 : Fix tests failed because of DCHECK #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -28 lines) Patch
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +69 lines, -6 lines 0 comments Download
M ash/common/ash_switches.h View 1 2 3 4 2 chunks +4 lines, -0 lines 1 comment Download
M ash/common/ash_switches.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M ash/common/wm/default_state.cc View 1 2 3 4 5 6 7 4 chunks +35 lines, -1 line 0 comments Download
M ash/common/wm/workspace/workspace_window_resizer.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M ash/mus/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +67 lines, -6 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager_unittest.cc View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M ash/wm/dock/docked_window_resizer_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -0 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -4 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -6 lines 1 comment Download
M chrome/browser/ui/views/frame/browser_view_interactive_uitest.cc View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 57 (48 generated)
afakhry
Oshima-san, please review this CL and let me know if there's anything else I skipped ...
3 years, 11 months ago (2017-01-09 20:41:24 UTC) #35
oshima
lgtm https://codereview.chromium.org/2617733002/diff/140001/ash/common/wm/default_state.cc File ash/common/wm/default_state.cc (right): https://codereview.chromium.org/2617733002/diff/140001/ash/common/wm/default_state.cc#newcode692 ash/common/wm/default_state.cc:692: // TODO(afakhry): Remove in M58. can you add ...
3 years, 11 months ago (2017-01-09 21:57:10 UTC) #36
afakhry
+pkasting for tab_drag_controller_interactive_uitest.cc +holte for histograms.xml https://codereview.chromium.org/2617733002/diff/140001/ash/common/wm/default_state.cc File ash/common/wm/default_state.cc (right): https://codereview.chromium.org/2617733002/diff/140001/ash/common/wm/default_state.cc#newcode692 ash/common/wm/default_state.cc:692: // TODO(afakhry): Remove ...
3 years, 11 months ago (2017-01-09 22:13:48 UTC) #40
Peter Kasting
LGTM
3 years, 11 months ago (2017-01-09 22:31:48 UTC) #41
Steven Holte
histograms lgtm
3 years, 11 months ago (2017-01-10 00:15:31 UTC) #44
afakhry
A few more docked windows tests needed to explicitly enable the flag after the added ...
3 years, 11 months ago (2017-01-10 17:07:19 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2617733002/180001
3 years, 11 months ago (2017-01-10 17:23:14 UTC) #52
commit-bot: I haz the power
Committed patchset #9 (id:180001) as https://chromium.googlesource.com/chromium/src/+/b9147616bf449986d216f2a67f1bd48924c793a7
3 years, 11 months ago (2017-01-10 17:29:01 UTC) #55
varkha
3 years, 11 months ago (2017-01-18 20:58:32 UTC) #57
Message was sent while issue was closed.
I see that the user events that trigger docking is now blocked. However
currently if a user has docked windows belonging to specific apps before (using
a version before this CL), those windows will still be docked even when running
without --ash-enable-docked-windows. Persistent behavior was added in CLs linked
from http://crbug.com/271582 - it should be possible to roll those changes back.
Sorry for a late comment here - you can always cc me on this work.

https://codereview.chromium.org/2617733002/diff/180001/ash/common/ash_switches.h
File ash/common/ash_switches.h (right):

https://codereview.chromium.org/2617733002/diff/180001/ash/common/ash_switche...
ash/common/ash_switches.h:30: ASH_EXPORT extern const char
kAshEnableDockedWindows[];
nit: add new flags in alphabetical order.

https://codereview.chromium.org/2617733002/diff/180001/chrome/browser/about_f...
File chrome/browser/about_flags.cc (right):

https://codereview.chromium.org/2617733002/diff/180001/chrome/browser/about_f...
chrome/browser/about_flags.cc:1026:
IDS_FLAGS_ASH_ENABLE_DOCKED_WINDOWS_DESCRIPTION, kOsAll,
Should this be a Chrome OS only flag?

Powered by Google App Engine
This is Rietveld 408576698