| OLD | NEW |
| 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 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/command_line.h" |
| 13 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 14 #include "base/process_util.h" | 15 #include "base/process_util.h" |
| 15 #include "win8/delegate_execute/resource.h" // main symbols | 16 #include "win8/delegate_execute/resource.h" // main symbols |
| 16 | 17 |
| 17 using namespace ATL; | 18 using namespace ATL; |
| 18 | 19 |
| 19 EXTERN_C const GUID CLSID_CommandExecuteImpl; | 20 EXTERN_C const GUID CLSID_CommandExecuteImpl; |
| 20 | 21 |
| 21 // CommandExecuteImpl | 22 // CommandExecuteImpl |
| 22 // This class implements the IExecuteCommand and related interfaces for | 23 // This class implements the IExecuteCommand and related interfaces for |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 STDMETHOD(AllowForegroundTransfer)(void* reserved); | 85 STDMETHOD(AllowForegroundTransfer)(void* reserved); |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 static bool FindChromeExe(FilePath* chrome_exe); | 88 static bool FindChromeExe(FilePath* chrome_exe); |
| 88 bool GetLaunchScheme(string16* display_name, INTERNET_SCHEME* scheme); | 89 bool GetLaunchScheme(string16* display_name, INTERNET_SCHEME* scheme); |
| 89 HRESULT LaunchDesktopChrome(); | 90 HRESULT LaunchDesktopChrome(); |
| 90 // Returns the launch mode, i.e. desktop launch/metro launch, etc. | 91 // Returns the launch mode, i.e. desktop launch/metro launch, etc. |
| 91 EC_HOST_UI_MODE GetLaunchMode(); | 92 EC_HOST_UI_MODE GetLaunchMode(); |
| 92 | 93 |
| 93 CComPtr<IShellItemArray> item_array_; | 94 CComPtr<IShellItemArray> item_array_; |
| 94 string16 parameters_; | 95 CommandLine parameters_; |
| 95 FilePath chrome_exe_; | 96 FilePath chrome_exe_; |
| 96 STARTUPINFO start_info_; | 97 STARTUPINFO start_info_; |
| 97 string16 verb_; | 98 string16 verb_; |
| 98 string16 display_name_; | 99 string16 display_name_; |
| 99 INTERNET_SCHEME launch_scheme_; | 100 INTERNET_SCHEME launch_scheme_; |
| 100 | 101 |
| 101 base::IntegrityLevel integrity_level_; | 102 base::IntegrityLevel integrity_level_; |
| 102 EC_HOST_UI_MODE chrome_mode_; | 103 EC_HOST_UI_MODE chrome_mode_; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 OBJECT_ENTRY_AUTO(__uuidof(CommandExecuteImpl), CommandExecuteImpl) | 106 OBJECT_ENTRY_AUTO(__uuidof(CommandExecuteImpl), CommandExecuteImpl) |
| OLD | NEW |