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

Side by Side Diff: win8/metro_driver/chrome_app_view_ash.cc

Issue 143023003: Fully support the autohide shelf option for touch UI on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/metro_viewer/metro_viewer_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "win8/metro_driver/stdafx.h" 5 #include "win8/metro_driver/stdafx.h"
6 #include "win8/metro_driver/chrome_app_view_ash.h" 6 #include "win8/metro_driver/chrome_app_view_ash.h"
7 7
8 #include <corewindow.h> 8 #include <corewindow.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #include <windows.foundation.h> 10 #include <windows.foundation.h>
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 ui_loop_.PostTask(FROM_HERE, 1281 ui_loop_.PostTask(FROM_HERE,
1282 base::Bind(&ChromeAppViewAsh::OnNavigateToUrl, 1282 base::Bind(&ChromeAppViewAsh::OnNavigateToUrl,
1283 base::Unretained(this), 1283 base::Unretained(this),
1284 actual_url)); 1284 actual_url));
1285 return S_OK; 1285 return S_OK;
1286 } 1286 }
1287 1287
1288 HRESULT ChromeAppViewAsh::OnEdgeGestureCompleted( 1288 HRESULT ChromeAppViewAsh::OnEdgeGestureCompleted(
1289 winui::Input::IEdgeGesture* gesture, 1289 winui::Input::IEdgeGesture* gesture,
1290 winui::Input::IEdgeGestureEventArgs* args) { 1290 winui::Input::IEdgeGestureEventArgs* args) {
1291 // Swipe from edge gesture (and win+z) is equivalent to pressing F11. 1291 ui_channel_->Send(new MetroViewerHostMsg_EdgeGesture());
1292 // TODO(cpu): Make this cleaner for m33.
1293 ui_channel_->Send(new MetroViewerHostMsg_KeyDown(VK_F11, 1, 0, 0));
1294 ::Sleep(15);
1295 ui_channel_->Send(new MetroViewerHostMsg_KeyUp(VK_F11, 1, 0, 0));
1296 return S_OK; 1292 return S_OK;
1297 } 1293 }
1298 1294
1299 void ChromeAppViewAsh::OnSearchRequest(const base::string16& search_string) { 1295 void ChromeAppViewAsh::OnSearchRequest(const base::string16& search_string) {
1300 DCHECK(ui_channel_); 1296 DCHECK(ui_channel_);
1301 ui_channel_->Send(new MetroViewerHostMsg_SearchRequest(search_string)); 1297 ui_channel_->Send(new MetroViewerHostMsg_SearchRequest(search_string));
1302 } 1298 }
1303 1299
1304 void ChromeAppViewAsh::OnNavigateToUrl(const base::string16& url) { 1300 void ChromeAppViewAsh::OnNavigateToUrl(const base::string16& url) {
1305 DCHECK(ui_channel_); 1301 DCHECK(ui_channel_);
(...skipping 29 matching lines...) Expand all
1335 mswr::ComPtr<winapp::Core::ICoreApplicationExit> app_exit; 1331 mswr::ComPtr<winapp::Core::ICoreApplicationExit> app_exit;
1336 CheckHR(core_app.As(&app_exit)); 1332 CheckHR(core_app.As(&app_exit));
1337 globals.app_exit = app_exit.Detach(); 1333 globals.app_exit = app_exit.Detach();
1338 } 1334 }
1339 1335
1340 IFACEMETHODIMP 1336 IFACEMETHODIMP
1341 ChromeAppViewFactory::CreateView(winapp::Core::IFrameworkView** view) { 1337 ChromeAppViewFactory::CreateView(winapp::Core::IFrameworkView** view) {
1342 *view = mswr::Make<ChromeAppViewAsh>().Detach(); 1338 *view = mswr::Make<ChromeAppViewAsh>().Detach();
1343 return (*view) ? S_OK : E_OUTOFMEMORY; 1339 return (*view) ? S_OK : E_OUTOFMEMORY;
1344 } 1340 }
OLDNEW
« no previous file with comments | « ui/metro_viewer/metro_viewer_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698