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

Issue 198413003: Enable immersive fullscreen on Windows Ash. (Closed)

Created:
6 years, 9 months ago by zturner
Modified:
6 years, 9 months ago
Reviewers:
pkotwicz, benwells, sky
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tfarina
Visibility:
Public.

Description

Enable immersive fullscreen on Windows Ash. On ChromeOS a reveal occurs on a swipe down from the top edge, and hides on a swipe up from the top edge. On Windows we can only detect one piece of information: A swipe up occurred from the bottom edge, or a swipe down occured from the top edge. These two events are indistinguishable on Windows, and they do not come with any location information. As a result, the CrOS behavior of these two distinct operations are merged into one operation here. On Windows an "edge swipe" displays the shelf AND does the immersive reveal, whereas on CrOS these are separate operations triggered by a swipe on the respective edges. Hiding should still behave the same as CrOS. BUG=227247 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257909

Patch Set 1 #

Total comments: 20

Patch Set 2 : Fix some linux compile errors, and check USE_ASH instead of OS define. #

Total comments: 9

Patch Set 3 : Fix codereview issues. #

Patch Set 4 : Fix some issues with shelf visibility and desktop fullscreen. #

Total comments: 2

Patch Set 5 : Rebase to ToT. #

Patch Set 6 : Fix comment about the top pixel. #

Total comments: 12

Patch Set 7 : Add some TODO comments. #

Total comments: 4

Patch Set 8 : Fix latest set of review issues. #

Total comments: 4

Patch Set 9 : Fix issues from previous review comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -109 lines) Patch
M ash/frame/custom_frame_view_ash.cc View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -12 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 1 chunk +16 lines, -10 lines 0 comments Download
M ash/wm/immersive_fullscreen_controller.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/immersive_fullscreen_controller.cc View 1 2 3 4 5 4 chunks +24 lines, -7 lines 0 comments Download
M ash/wm/immersive_fullscreen_controller_unittest.cc View 5 chunks +12 lines, -13 lines 0 comments Download
M ash/wm/system_gesture_event_filter.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/accelerator_commands_browsertest.cc View 1 2 3 4 5 6 7 8 9 chunks +7 lines, -28 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 7 chunks +17 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ui/wm/core/compound_event_filter.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
zturner
benwells: chrome/browser/ui/views/apps/* sky: chrome/browser/ui/views/frame/* ui/wm/core/* ash/shelf/* pkotwicz: ash/wm/*
6 years, 9 months ago (2014-03-13 01:41:34 UTC) #1
pkotwicz
I will take a look at the CL on Thursday morning
6 years, 9 months ago (2014-03-13 01:59:19 UTC) #2
sky
https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode2248 chrome/browser/ui/views/frame/browser_view.cc:2248: bool is_browser_fullscreen = url.is_empty(); Shouldn't this depend upon the ...
6 years, 9 months ago (2014-03-13 15:55:05 UTC) #3
zturner
https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode2248 chrome/browser/ui/views/frame/browser_view.cc:2248: bool is_browser_fullscreen = url.is_empty(); On 2014/03/13 15:55:09, sky wrote: ...
6 years, 9 months ago (2014-03-13 16:15:59 UTC) #4
pkotwicz
Some initial comments I also just published https://codereview.chromium.org/199283002/ Feel free to merge with the CL ...
6 years, 9 months ago (2014-03-13 16:48:19 UTC) #5
zturner
https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc File chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc (left): https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc#oldcode16 chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc:16: #if defined(OS_CHROMEOS) On 2014/03/13 16:48:19, pkotwicz wrote: > The ...
6 years, 9 months ago (2014-03-13 16:54:06 UTC) #6
zturner
https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc File chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc (left): https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc#oldcode21 chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc:21: } On 2014/03/13 16:48:19, pkotwicz wrote: > Can you ...
6 years, 9 months ago (2014-03-13 17:56:39 UTC) #7
pkotwicz
On 2014/03/13 17:56:39, zturner wrote: > https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc > File chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc (left): > > https://codereview.chromium.org/198413003/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_factory.cc#oldcode21 > ...
6 years, 9 months ago (2014-03-13 18:08:23 UTC) #8
pkotwicz
Some more review comments. I will look at your new Patch Set :) https://codereview.chromium.org/198413003/diff/1/ash/shelf/shelf_layout_manager.cc File ...
6 years, 9 months ago (2014-03-13 18:08:45 UTC) #9
pkotwicz
https://codereview.chromium.org/198413003/diff/20001/ash/wm/immersive_fullscreen_controller.cc File ash/wm/immersive_fullscreen_controller.cc (right): https://codereview.chromium.org/198413003/diff/20001/ash/wm/immersive_fullscreen_controller.cc#newcode805 ash/wm/immersive_fullscreen_controller.cc:805: Nuke this change https://codereview.chromium.org/198413003/diff/20001/ash/wm/system_gesture_event_filter.cc File ash/wm/system_gesture_event_filter.cc (right): https://codereview.chromium.org/198413003/diff/20001/ash/wm/system_gesture_event_filter.cc#newcode70 ash/wm/system_gesture_event_filter.cc:70: ...
6 years, 9 months ago (2014-03-13 18:34:32 UTC) #10
zturner
https://codereview.chromium.org/198413003/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (left): https://codereview.chromium.org/198413003/diff/1/ash/shelf/shelf_layout_manager.cc#oldcode399 ash/shelf/shelf_layout_manager.cc:399: WORKSPACE_WINDOW_STATE_FULL_SCREEN) { On 2014/03/13 18:08:45, pkotwicz wrote: > Do ...
6 years, 9 months ago (2014-03-13 19:28:08 UTC) #11
pkotwicz
https://codereview.chromium.org/198413003/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/198413003/diff/1/ash/shelf/shelf_layout_manager.cc#newcode398 ash/shelf/shelf_layout_manager.cc:398: gesture_drag_status_ = GESTURE_DRAG_COMPLETE_IN_PROGRESS; Is it possible for a user ...
6 years, 9 months ago (2014-03-13 19:52:48 UTC) #12
zturner
I think this should take care of everything so far. Still waiting on https://codereview.chromium.org/199283002/ to ...
6 years, 9 months ago (2014-03-13 20:46:30 UTC) #13
sky
LGTM https://codereview.chromium.org/198413003/diff/60001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/198413003/diff/60001/chrome/browser/ui/views/frame/browser_view.cc#newcode2256 chrome/browser/ui/views/frame/browser_view.cc:2256: else nit: style says no else after a ...
6 years, 9 months ago (2014-03-13 22:08:25 UTC) #14
benwells
lgtm
6 years, 9 months ago (2014-03-14 02:22:12 UTC) #15
pkotwicz
Ping me for another review once you have rebased to ToT :) https://codereview.chromium.org/198413003/diff/1/ash/wm/immersive_fullscreen_controller.cc File ash/wm/immersive_fullscreen_controller.cc ...
6 years, 9 months ago (2014-03-14 05:08:26 UTC) #16
zturner
Rebased to ToT and addressed last remaining issue. https://codereview.chromium.org/198413003/diff/1/ash/wm/immersive_fullscreen_controller.cc File ash/wm/immersive_fullscreen_controller.cc (right): https://codereview.chromium.org/198413003/diff/1/ash/wm/immersive_fullscreen_controller.cc#newcode108 ash/wm/immersive_fullscreen_controller.cc:108: // ...
6 years, 9 months ago (2014-03-17 21:15:58 UTC) #17
pkotwicz
Looks really good The state of Win8 Ash browser tests seems to be dismal, however ...
6 years, 9 months ago (2014-03-18 14:56:38 UTC) #18
pkotwicz
https://codereview.chromium.org/198413003/diff/100001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/198413003/diff/100001/ash/shelf/shelf_layout_manager.cc#newcode395 ash/shelf/shelf_layout_manager.cc:395: void ShelfLayoutManager::OnGestureEdgeSwipe(const ui::GestureEvent& gesture) { Would you be able ...
6 years, 9 months ago (2014-03-18 14:56:46 UTC) #19
zturner
On 2014/03/18 14:56:38, pkotwicz wrote: > Looks really good > > The state of Win8 ...
6 years, 9 months ago (2014-03-18 18:12:59 UTC) #20
pkotwicz
Did you forget to upload an updated CL?
6 years, 9 months ago (2014-03-18 18:17:10 UTC) #21
zturner
https://codereview.chromium.org/198413003/diff/100001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/198413003/diff/100001/ash/shelf/shelf_layout_manager.cc#newcode404 ash/shelf/shelf_layout_manager.cc:404: return; On 2014/03/18 14:56:47, pkotwicz wrote: > With the ...
6 years, 9 months ago (2014-03-18 18:26:36 UTC) #22
zturner
On 2014/03/18 18:17:10, pkotwicz wrote: > Did you forget to upload an updated CL? Sorry, ...
6 years, 9 months ago (2014-03-18 18:28:19 UTC) #23
pkotwicz
Still looking good The AcceleratorCommandsBrowserTest.* and AcceleratorCommandsPlatformAppFullscreenBrowserTest.* tests used to pass locally on Windows Ash. ...
6 years, 9 months ago (2014-03-18 19:35:26 UTC) #24
zturner
https://codereview.chromium.org/198413003/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/198413003/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode2229 chrome/browser/ui/views/frame/browser_view.cc:2229: #if defined(OS_CHROMEOS) On 2014/03/18 19:35:28, pkotwicz wrote: > You ...
6 years, 9 months ago (2014-03-18 20:54:54 UTC) #25
zturner
On 2014/03/18 20:54:54, zturner wrote: > https://codereview.chromium.org/198413003/diff/100001/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (right): > > https://codereview.chromium.org/198413003/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode2229 > ...
6 years, 9 months ago (2014-03-18 20:55:41 UTC) #26
pkotwicz
LGTM with a few comments. https://codereview.chromium.org/198413003/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/198413003/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode2235 chrome/browser/ui/views/frame/browser_view.cc:2235: #if defined(USE_ASH) Linux Aura ...
6 years, 9 months ago (2014-03-18 21:54:31 UTC) #27
zturner
https://codereview.chromium.org/198413003/diff/130001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/198413003/diff/130001/chrome/chrome_tests.gypi#newcode1885 chrome/chrome_tests.gypi:1885: 'browser/ui/ash/accelerator_commands_browsertest.cc', On 2014/03/18 21:54:32, pkotwicz wrote: > Can you ...
6 years, 9 months ago (2014-03-18 21:58:11 UTC) #28
pkotwicz
Shouldn't |AcceleratorCommandsFullscreenBrowserTest::put_window_in_immersive_| be true on Windows Ash? I am fine if you keep the checks ...
6 years, 9 months ago (2014-03-18 22:33:43 UTC) #29
zturner
On 2014/03/18 22:33:43, pkotwicz wrote: > Shouldn't |AcceleratorCommandsFullscreenBrowserTest::put_window_in_immersive_| > be true on Windows Ash? > ...
6 years, 9 months ago (2014-03-18 22:35:26 UTC) #30
zturner
https://codereview.chromium.org/198413003/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/198413003/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode2235 chrome/browser/ui/views/frame/browser_view.cc:2235: #if defined(USE_ASH) On 2014/03/18 21:54:32, pkotwicz wrote: > Linux ...
6 years, 9 months ago (2014-03-18 22:35:44 UTC) #31
pkotwicz
Still LGTM. Thank you very much for bearing with me
6 years, 9 months ago (2014-03-18 22:52:09 UTC) #32
zturner
The CQ bit was checked by zturner@chromium.org
6 years, 9 months ago (2014-03-18 22:57:51 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/198413003/150001
6 years, 9 months ago (2014-03-18 23:00:00 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 23:08:30 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-18 23:08:32 UTC) #36
zturner
The CQ bit was checked by zturner@chromium.org
6 years, 9 months ago (2014-03-19 00:54:03 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/198413003/150001
6 years, 9 months ago (2014-03-19 00:54:38 UTC) #38
commit-bot: I haz the power
6 years, 9 months ago (2014-03-19 10:53:29 UTC) #39
Message was sent while issue was closed.
Change committed as 257909

Powered by Google App Engine
This is Rietveld 408576698