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

Unified Diff: win8/delegate_execute/command_execute_impl.cc

Issue 10984007: in-chrome viewer for metro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only do viewer mode when shift-F11 is pressed, for now Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: win8/delegate_execute/command_execute_impl.cc
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc
index eeeae9b8936721cd33b94402648cbd7e576993c8..99dcfe1132b88fac5133a68e987fb2f5e8a1338d 100644
--- a/win8/delegate_execute/command_execute_impl.cc
+++ b/win8/delegate_execute/command_execute_impl.cc
@@ -143,6 +143,12 @@ STDMETHODIMP CommandExecuteImpl::GetValue(enum AHE_TYPE* pahe) {
return E_FAIL;
}
+ if (GetAsyncKeyState(VK_SHIFT) && GetAsyncKeyState(VK_F11)) {
+ AtlTrace("Using Shift-F11 debug hook, returning AHE_IMMERSIVE");
cpu_(ooo_6.6-7.5) 2012/09/28 21:37:37 move block ahead of line 140
cpu_(ooo_6.6-7.5) 2012/09/28 21:37:37 \n at end of atltrace
scottmg 2012/09/28 22:14:28 Done.
scottmg 2012/09/28 22:14:28 Done.
+ *pahe = AHE_IMMERSIVE;
+ return S_OK;
+ }
+
HWND chrome_window = ::FindWindowEx(HWND_MESSAGE, NULL,
chrome::kMessageWindowClass,
user_data_dir.value().c_str());

Powered by Google App Engine
This is Rietveld 408576698