Chromium Code Reviews| Index: chrome/installer/gcapi/gcapi.h |
| diff --git a/chrome/installer/gcapi/gcapi.h b/chrome/installer/gcapi/gcapi.h |
| index 30a5226b8c4696ef5ce5165354a9bd57c24042e3..5da1d5ef690bbeb5e272bbca5942cc1db6bd4622 100644 |
| --- a/chrome/installer/gcapi/gcapi.h |
| +++ b/chrome/installer/gcapi/gcapi.h |
| @@ -24,6 +24,10 @@ extern "C" { |
| #define REACTIVATE_ERROR_INVALID_INPUT 0x08 |
| #define REACTIVATE_ERROR_REACTIVATION_FAILED 0x10 |
| +// Flags to indicate whether GCAPI is invoked |
|
Roger Tawa OOO till Jul 10th
2012/02/24 21:46:59
whether -> how ?
robertshield
2012/02/24 22:21:40
Done.
|
| +#define GCAPI_INVOKED_STANDARD_SHELL 0x01 |
| +#define GCAPI_INVOKED_UAC_ELEVATION 0x02 |
| + |
| // The minimum number of days an installation can be dormant before reactivation |
| // may be offered. |
| const int kReactivationMinDaysDormant = 50; |
| @@ -35,7 +39,9 @@ const int kReactivationMinDaysDormant = 50; |
| // offered within the last six months; if passed FALSE, this method will not |
| // set the flag even if Chrome can be offered. If passed TRUE, this method |
| // will set the flag only if Chrome can be offered. |
|
Roger Tawa OOO till Jul 10th
2012/02/24 21:46:59
add a description for new arg. same below.
robertshield
2012/02/24 22:21:40
Done.
|
| -BOOL __stdcall GoogleChromeCompatibilityCheck(BOOL set_flag, DWORD* reasons); |
| +BOOL __stdcall GoogleChromeCompatibilityCheck(BOOL set_flag, |
| + int shell_mode, |
| + DWORD* reasons); |
| // This function launches Google Chrome after a successful install. Make |
| // sure COM library is NOT initialized before you call this function (so if |
| @@ -74,6 +80,7 @@ int __stdcall GoogleChromeDaysSinceLastRun(); |
| BOOL __stdcall CanOfferReactivation(const wchar_t* brand_code, |
| int previous_brand_codes_length, |
| const wchar_t** previous_brand_codes, |
| + int shell_mode, |
| DWORD* error_code); |
| // Attempts to reactivate Chrome for the specified |brand_code|. If the vendor |
| @@ -84,20 +91,23 @@ BOOL __stdcall CanOfferReactivation(const wchar_t* brand_code, |
| BOOL __stdcall ReactivateChrome(wchar_t* brand_code, |
| int previous_brand_codes_length, |
| const wchar_t** previous_brand_codes, |
| + int shell_mode, |
| DWORD* error_code); |
| // Function pointer type declarations to use with GetProcAddress. |
| -typedef BOOL (__stdcall *GCCC_CompatibilityCheck)(BOOL, DWORD *); |
| +typedef BOOL (__stdcall *GCCC_CompatibilityCheck)(BOOL, int, DWORD *); |
| typedef BOOL (__stdcall *GCCC_LaunchGC)(HANDLE *); |
| typedef BOOL (__stdcall *GCCC_LaunchGCWithDimensions)(int, int, int, int); |
| typedef int (__stdcall *GCCC_GoogleChromeDaysSinceLastRun)(); |
| typedef BOOL (__stdcall *GCCC_CanOfferReactivation)(const wchar_t*, |
| int, |
| const wchar_t**, |
| + int, |
| DWORD*); |
| typedef BOOL (__stdcall *GCCC_ReactivateChrome)(const wchar_t*, |
| int, |
| const wchar_t**, |
| + int, |
| DWORD*); |
| } // extern "C" |