summaryrefslogtreecommitdiffstats
path: root/win8
diff options
context:
space:
mode:
authorzturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-12 17:29:45 +0000
committerzturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-12 17:29:45 +0000
commitf734b224073190d8a32986c6550b7e5492e92735 (patch)
tree383ff65ea786cddcdf5ba789510a20cab91fb2e7 /win8
parent394152188117b2ee453ef2de44b078e3a3557ca1 (diff)
downloadchromium_src-f734b224073190d8a32986c6550b7e5492e92735.zip
chromium_src-f734b224073190d8a32986c6550b7e5492e92735.tar.gz
chromium_src-f734b224073190d8a32986c6550b7e5492e92735.tar.bz2
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 Review URL: https://codereview.chromium.org/143023003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8')
-rw-r--r--win8/metro_driver/chrome_app_view_ash.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/win8/metro_driver/chrome_app_view_ash.cc b/win8/metro_driver/chrome_app_view_ash.cc
index b8f2241..9b7e6b6 100644
--- a/win8/metro_driver/chrome_app_view_ash.cc
+++ b/win8/metro_driver/chrome_app_view_ash.cc
@@ -1288,11 +1288,7 @@ HRESULT ChromeAppViewAsh::HandleProtocolRequest(
HRESULT ChromeAppViewAsh::OnEdgeGestureCompleted(
winui::Input::IEdgeGesture* gesture,
winui::Input::IEdgeGestureEventArgs* args) {
- // Swipe from edge gesture (and win+z) is equivalent to pressing F11.
- // TODO(cpu): Make this cleaner for m33.
- ui_channel_->Send(new MetroViewerHostMsg_KeyDown(VK_F11, 1, 0, 0));
- ::Sleep(15);
- ui_channel_->Send(new MetroViewerHostMsg_KeyUp(VK_F11, 1, 0, 0));
+ ui_channel_->Send(new MetroViewerHostMsg_EdgeGesture());
return S_OK;
}