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

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

Issue 23592024: Make the metro viewer responsible for relaunching browser in desktop mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 unified diff | Download patch
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 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 5 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
7 7
8 #include <windows.applicationmodel.core.h> 8 #include <windows.applicationmodel.core.h>
9 #include <windows.ui.core.h> 9 #include <windows.ui.core.h>
10 #include <windows.ui.input.h> 10 #include <windows.ui.input.h>
(...skipping 28 matching lines...) Expand all
39 IFACEMETHOD(Initialize)(winapp::Core::ICoreApplicationView* view); 39 IFACEMETHOD(Initialize)(winapp::Core::ICoreApplicationView* view);
40 IFACEMETHOD(SetWindow)(winui::Core::ICoreWindow* window); 40 IFACEMETHOD(SetWindow)(winui::Core::ICoreWindow* window);
41 IFACEMETHOD(Load)(HSTRING entryPoint); 41 IFACEMETHOD(Load)(HSTRING entryPoint);
42 IFACEMETHOD(Run)(); 42 IFACEMETHOD(Run)();
43 IFACEMETHOD(Uninitialize)(); 43 IFACEMETHOD(Uninitialize)();
44 44
45 // Helper function to unsnap the chrome metro app if it is snapped. 45 // Helper function to unsnap the chrome metro app if it is snapped.
46 // Returns S_OK on success. 46 // Returns S_OK on success.
47 static HRESULT Unsnap(); 47 static HRESULT Unsnap();
48 48
49 void OnOpenURLOnDesktop(const string16& shortcut, const string16& url);
49 void OnSetCursor(HCURSOR cursor); 50 void OnSetCursor(HCURSOR cursor);
50 void OnDisplayFileOpenDialog(const string16& title, 51 void OnDisplayFileOpenDialog(const string16& title,
51 const string16& filter, 52 const string16& filter,
52 const base::FilePath& default_path, 53 const base::FilePath& default_path,
53 bool allow_multiple_files); 54 bool allow_multiple_files);
54 void OnDisplayFileSaveAsDialog( 55 void OnDisplayFileSaveAsDialog(
55 const MetroViewerHostMsg_SaveAsDialogParams& params); 56 const MetroViewerHostMsg_SaveAsDialogParams& params);
56 void OnDisplayFolderPicker(const string16& title); 57 void OnDisplayFolderPicker(const string16& title);
57 void OnSetCursorPos(int x, int y); 58 void OnSetCursorPos(int x, int y);
58 59
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 IPC::ChannelProxy* ui_channel_; 153 IPC::ChannelProxy* ui_channel_;
153 154
154 // The actual window behind the view surface. 155 // The actual window behind the view surface.
155 HWND core_window_hwnd_; 156 HWND core_window_hwnd_;
156 157
157 // UI message loop to allow message passing into this thread. 158 // UI message loop to allow message passing into this thread.
158 base::MessageLoop ui_loop_; 159 base::MessageLoop ui_loop_;
159 }; 160 };
160 161
161 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 162 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698