OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_INSTALLER_GCAPI_GCAPI_H_ | 5 #ifndef CHROME_INSTALLER_GCAPI_GCAPI_H_ |
6 #define CHROME_INSTALLER_GCAPI_GCAPI_H_ | 6 #define CHROME_INSTALLER_GCAPI_GCAPI_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 extern "C" { | 10 extern "C" { |
(...skipping 15 matching lines...) Expand all Loading... |
26 // set the flag even if Chrome can be offered. If passed TRUE, this method | 26 // set the flag even if Chrome can be offered. If passed TRUE, this method |
27 // will set the flag only if Chrome can be offered. | 27 // will set the flag only if Chrome can be offered. |
28 DLLEXPORT BOOL __stdcall GoogleChromeCompatibilityCheck(BOOL set_flag, | 28 DLLEXPORT BOOL __stdcall GoogleChromeCompatibilityCheck(BOOL set_flag, |
29 DWORD *reasons); | 29 DWORD *reasons); |
30 | 30 |
31 // This function launches Google Chrome after a successful install. Make | 31 // This function launches Google Chrome after a successful install. Make |
32 // sure COM library is NOT initalized before you call this function (so if | 32 // sure COM library is NOT initalized before you call this function (so if |
33 // you called CoInitialize, call CoUninitialize before calling this function). | 33 // you called CoInitialize, call CoUninitialize before calling this function). |
34 DLLEXPORT BOOL __stdcall LaunchGoogleChrome(); | 34 DLLEXPORT BOOL __stdcall LaunchGoogleChrome(); |
35 | 35 |
| 36 // This function launches Google Chrome after a successful install at the |
| 37 // given x,y coordinates with size height,length. Make |
| 38 // sure COM library is NOT initalized before you call this function (so if |
| 39 // you called CoInitialize, call CoUninitialize before calling this function). |
| 40 // This call is synchronous, meaning it waits for Chrome to launch and appear |
| 41 // to resize it before returning. |
| 42 DLLEXPORT BOOL __stdcall LaunchGoogleChromeWithDimensions(int x, |
| 43 int y, |
| 44 int width, |
| 45 int height); |
| 46 |
36 // Funtion pointer type declarations to use with GetProcAddress. | 47 // Funtion pointer type declarations to use with GetProcAddress. |
37 typedef BOOL (__stdcall * GCCC_CompatibilityCheck)(BOOL, DWORD *); | 48 typedef BOOL (__stdcall * GCCC_CompatibilityCheck)(BOOL, DWORD *); |
38 typedef BOOL (__stdcall * GCCC_LaunchGC)(HANDLE *); | 49 typedef BOOL (__stdcall * GCCC_LaunchGC)(HANDLE *); |
| 50 typedef BOOL (__stdcall * GCCC_LaunchGCWithDimensions)(int, int, int, int); |
39 } // extern "C" | 51 } // extern "C" |
40 | 52 |
41 #endif // # CHROME_INSTALLER_GCAPI_GCAPI_H_ | 53 #endif // # CHROME_INSTALLER_GCAPI_GCAPI_H_ |
OLD | NEW |