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

Side by Side Diff: win8/delegate_execute/command_execute_impl.h

Issue 498573003: Add relaunch into ASH and desktop support for Chrome on Windows 7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed newline from chrome_command_ids.h Created 6 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 | Annotate | Revision Log
« no previous file with comments | « tools/metrics/actions/actions.xml ('k') | win8/delegate_execute/delegate_execute.cc » ('j') | 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 <atlbase.h> 5 #include <atlbase.h>
6 #include <atlcom.h> 6 #include <atlcom.h>
7 #include <atlctl.h> 7 #include <atlctl.h>
8 #include <ShObjIdl.h> 8 #include <ShObjIdl.h>
9 #include <WinInet.h> 9 #include <WinInet.h>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // IObjectWithSelection 74 // IObjectWithSelection
75 STDMETHOD(SetSelection)(IShellItemArray* item_array); 75 STDMETHOD(SetSelection)(IShellItemArray* item_array);
76 STDMETHOD(GetSelection)(REFIID riid, void** selection); 76 STDMETHOD(GetSelection)(REFIID riid, void** selection);
77 77
78 // IExecuteCommandApplicationHostEnvironment 78 // IExecuteCommandApplicationHostEnvironment
79 STDMETHOD(GetValue)(enum AHE_TYPE* pahe); 79 STDMETHOD(GetValue)(enum AHE_TYPE* pahe);
80 80
81 // IForegroundTransfer 81 // IForegroundTransfer
82 STDMETHOD(AllowForegroundTransfer)(void* reserved); 82 STDMETHOD(AllowForegroundTransfer)(void* reserved);
83 83
84 static bool FindChromeExe(base::FilePath* chrome_exe);
85
84 private: 86 private:
85 static bool FindChromeExe(base::FilePath* chrome_exe);
86 87
87 static bool path_provider_initialized_; 88 static bool path_provider_initialized_;
88 89
89 bool GetLaunchScheme(base::string16* display_name, INTERNET_SCHEME* scheme); 90 bool GetLaunchScheme(base::string16* display_name, INTERNET_SCHEME* scheme);
90 HRESULT LaunchDesktopChrome(); 91 HRESULT LaunchDesktopChrome();
91 // Returns the launch mode, i.e. desktop launch/metro launch, etc. 92 // Returns the launch mode, i.e. desktop launch/metro launch, etc.
92 EC_HOST_UI_MODE GetLaunchMode(); 93 EC_HOST_UI_MODE GetLaunchMode();
93 94
94 CComPtr<IShellItemArray> item_array_; 95 CComPtr<IShellItemArray> item_array_;
95 base::CommandLine parameters_; 96 base::CommandLine parameters_;
96 base::FilePath chrome_exe_; 97 base::FilePath chrome_exe_;
97 STARTUPINFO start_info_; 98 STARTUPINFO start_info_;
98 base::string16 verb_; 99 base::string16 verb_;
99 base::string16 display_name_; 100 base::string16 display_name_;
100 INTERNET_SCHEME launch_scheme_; 101 INTERNET_SCHEME launch_scheme_;
101 102
102 base::IntegrityLevel integrity_level_; 103 base::IntegrityLevel integrity_level_;
103 }; 104 };
104 105
105 OBJECT_ENTRY_AUTO(__uuidof(CommandExecuteImpl), CommandExecuteImpl) 106 OBJECT_ENTRY_AUTO(__uuidof(CommandExecuteImpl), CommandExecuteImpl)
OLDNEW
« no previous file with comments | « tools/metrics/actions/actions.xml ('k') | win8/delegate_execute/delegate_execute.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698