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

Side by Side Diff: chrome/installer/gcapi/gcapi.h

Issue 101008: Adds a new API for launching Chrome at a given size and location. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « no previous file | chrome/installer/gcapi/gcapi.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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/gcapi/gcapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698