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

Issue 143023003: Fully support the autohide shelf option for touch UI on Windows. (Closed)

Created:
6 years, 10 months ago by zturner
Modified:
6 years, 10 months ago
CC:
chromium-reviews, sadrul, jar (doing other things), ben+aura_chromium.org, asvitkine+watch_chromium.org, kalyank, Ilya Sherman, ben+ash_chromium.org
Visibility:
Public.

Description

Fully support the autohide shelf option for touch UI on Windows. This change does the following: 1) Adds a new gesture referred to as an EdgeSwipe gesture. This is Win8 / Metro specific, and refers to a swipe up from the bottom edge, or swipe down from the top edge. The semantics of this gesture are slightly different than those of a bezel gesture, which can occur on any edge, and for which you can determine specifically which edge it was (not possible with Win8 edge swipe). 2) edge swipe no longer enters / exits full screen mode. Instead it makes the shelf visible (if it was hidden, and auto-hide was checked), disables auto-hide, and exits full screen. BUG=340772 R=asvitkine@chromium.org, cpu@chromium.org, harrym@chromium.org, jschuh@chromium.org, sadrul@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250738

Patch Set 1 #

Patch Set 2 : Rebase to ToT. #

Total comments: 3

Patch Set 3 : Rename gesture event constant to make it clear that it's Win8 specific. #

Patch Set 4 : Compile out edge swipe code on non-Windows, and add tests. #

Total comments: 1

Patch Set 5 : Remove OS_WIN ifdefs. #

Total comments: 5

Patch Set 6 : Simplify the fullscreen toggling logic. #

Patch Set 7 : Rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -9 lines) Patch
M ash/shelf/shelf_layout_manager.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 2 chunks +18 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M ash/touch/touch_uma.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M ash/wm/gestures/shelf_gesture_handler.cc View 1 2 4 1 chunk +5 lines, -0 lines 0 comments Download
M ash/wm/system_gesture_event_filter.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ash/wm/system_gesture_event_filter.cc View 1 2 4 3 chunks +10 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/remote_root_window_host_win.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/remote_root_window_host_win.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M ui/aura/test/event_generator.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/test/event_generator.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M ui/events/event.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/event.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/event_constants.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/metro_viewer/metro_viewer_messages.h View 1 chunk +3 lines, -0 lines 0 comments Download
M win8/metro_driver/chrome_app_view_ash.cc View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
zturner
asvitkine: tools\metrics\histograms\histograms.xml harrym: ash\shelf\shelf_layout_manager.cc ash\shelf\shelf_layout_manager.h ananta: win8\metro_driver\chrome_app_view_ash.cc jschuh: ui\metro_viewer\metro_viewer_messages.h sky: ash\shelf\shelf_layout_manager.cc ash\shelf\shelf_layout_manager.h ash\touch\touch_uma.cc ash\wm\gestures\shelf_gesture_handler.cc ash\wm\system_gesture_event_filter.cc ...
6 years, 10 months ago (2014-02-08 01:34:47 UTC) #1
jschuh
ipc security lgtm. unsandboxed -> unsandboxed
6 years, 10 months ago (2014-02-08 03:48:50 UTC) #2
Harry McCleave
On 2014/02/08 03:48:50, Justin Schuh wrote: > ipc security lgtm. unsandboxed -> unsandboxed lgtm for ...
6 years, 10 months ago (2014-02-08 03:50:52 UTC) #3
Alexei Svitkine (slow)
histograms lgtm
6 years, 10 months ago (2014-02-08 04:03:54 UTC) #4
sadrul
https://codereview.chromium.org/143023003/diff/20001/ui/events/event_constants.h File ui/events/event_constants.h (right): https://codereview.chromium.org/143023003/diff/20001/ui/events/event_constants.h#newcode53 ui/events/event_constants.h:53: ET_GESTURE_EDGE_SWIPE, Hm. All ET_GESTURE events are currently constructed by ...
6 years, 10 months ago (2014-02-08 17:14:20 UTC) #5
sky
https://codereview.chromium.org/143023003/diff/20001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/143023003/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode394 ash/shelf/shelf_layout_manager.cc:394: void ShelfLayoutManager::OnGestureEdgeSwipe(const ui::GestureEvent& gesture) { Don't we want to ...
6 years, 10 months ago (2014-02-10 15:28:38 UTC) #6
zturner
On 2014/02/10 15:28:38, sky wrote: > https://codereview.chromium.org/143023003/diff/20001/ash/shelf/shelf_layout_manager.cc > File ash/shelf/shelf_layout_manager.cc (right): > > https://codereview.chromium.org/143023003/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode394 > ...
6 years, 10 months ago (2014-02-10 18:09:16 UTC) #7
zturner
Updated enum constant name based on suggestion from sadrul@
6 years, 10 months ago (2014-02-10 19:01:13 UTC) #8
sky
Also, how about some test coverage? https://codereview.chromium.org/143023003/diff/20001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/143023003/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode400 ash/shelf/shelf_layout_manager.cc:400: // Process the ...
6 years, 10 months ago (2014-02-10 21:31:08 UTC) #9
zturner
On 2014/02/10 21:31:08, sky wrote: > Also, how about some test coverage? > > https://codereview.chromium.org/143023003/diff/20001/ash/shelf/shelf_layout_manager.cc ...
6 years, 10 months ago (2014-02-10 21:35:49 UTC) #10
sky
Ok, makes sense. On Mon, Feb 10, 2014 at 1:35 PM, <zturner@chromium.org> wrote: > On ...
6 years, 10 months ago (2014-02-11 00:32:00 UTC) #11
zturner
6 years, 10 months ago (2014-02-11 18:42:30 UTC) #12
sky
https://codereview.chromium.org/143023003/diff/350001/ash/wm/gestures/shelf_gesture_handler.cc File ash/wm/gestures/shelf_gesture_handler.cc (right): https://codereview.chromium.org/143023003/diff/350001/ash/wm/gestures/shelf_gesture_handler.cc#newcode46 ash/wm/gestures/shelf_gesture_handler.cc:46: #if defined(OS_WIN) Is there a reason we need the ...
6 years, 10 months ago (2014-02-11 18:55:21 UTC) #13
zturner
On 2014/02/11 18:55:21, sky wrote: > https://codereview.chromium.org/143023003/diff/350001/ash/wm/gestures/shelf_gesture_handler.cc > File ash/wm/gestures/shelf_gesture_handler.cc (right): > > https://codereview.chromium.org/143023003/diff/350001/ash/wm/gestures/shelf_gesture_handler.cc#newcode46 > ...
6 years, 10 months ago (2014-02-11 19:17:49 UTC) #14
zturner
6 years, 10 months ago (2014-02-11 20:23:19 UTC) #15
sadrul
https://codereview.chromium.org/143023003/diff/410001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/143023003/diff/410001/ash/shelf/shelf_layout_manager.cc#newcode410 ash/shelf/shelf_layout_manager.cc:410: } Can you use accelerators::ToggleFullscreen() (or something similar) here ...
6 years, 10 months ago (2014-02-11 21:20:47 UTC) #16
zturner
https://codereview.chromium.org/143023003/diff/410001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/143023003/diff/410001/ash/shelf/shelf_layout_manager.cc#newcode410 ash/shelf/shelf_layout_manager.cc:410: } On 2014/02/11 21:20:48, sadrul wrote: > Can you ...
6 years, 10 months ago (2014-02-11 21:30:56 UTC) #17
sadrul
LGTM (with the ToggleFullscreen() change from the previous review comment) https://codereview.chromium.org/143023003/diff/410001/ash/wm/system_gesture_event_filter.cc File ash/wm/system_gesture_event_filter.cc (right): https://codereview.chromium.org/143023003/diff/410001/ash/wm/system_gesture_event_filter.cc#newcode92 ...
6 years, 10 months ago (2014-02-11 21:37:30 UTC) #18
zturner
6 years, 10 months ago (2014-02-11 21:51:54 UTC) #19
sky
LGTM
6 years, 10 months ago (2014-02-11 22:19:53 UTC) #20
cpu_(ooo_6.6-7.5)
lgtm
6 years, 10 months ago (2014-02-12 00:48:39 UTC) #21
zturner
The CQ bit was checked by zturner@chromium.org
6 years, 10 months ago (2014-02-12 00:49:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/143023003/490001
6 years, 10 months ago (2014-02-12 00:50:36 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 05:35:25 UTC) #24
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=262269
6 years, 10 months ago (2014-02-12 05:35:26 UTC) #25
zturner
6 years, 10 months ago (2014-02-12 17:29:59 UTC) #26
Message was sent while issue was closed.
Committed patchset #7 manually as r250738 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698