| 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 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) |
| OLD | NEW |