| OLD | NEW |
| (Empty) |
| 1 // Copyright 2009 Google Inc. | |
| 2 // | |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 // you may not use this file except in compliance with the License. | |
| 5 // You may obtain a copy of the License at | |
| 6 // | |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 // | |
| 9 // Unless required by applicable law or agreed to in writing, software | |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 // See the License for the specific language governing permissions and | |
| 13 // limitations under the License. | |
| 14 // ======================================================================== | |
| 15 | |
| 16 import "oaidl.idl"; | |
| 17 | |
| 18 [ | |
| 19 object, | |
| 20 uuid(c40a1df0-d2d8-4f01-9b1d-3c0d4f226dd9), | |
| 21 dual, | |
| 22 helpstring("GoogleUpdate3Web Control"), | |
| 23 pointer_default(unique) | |
| 24 ] | |
| 25 interface IGoogleUpdate3WebControl : IDispatch { | |
| 26 [id(1)] HRESULT createOmahaMachineServerAsync( | |
| 27 [in] VARIANT_BOOL create_elevated, | |
| 28 [out, retval] IDispatch** async_status); | |
| 29 | |
| 30 [id(2)] HRESULT createOmahaUserServer([out, retval] IDispatch** server); | |
| 31 | |
| 32 [id(3)] HRESULT getInstalledVersion([in] BSTR guid_string, | |
| 33 [in] VARIANT_BOOL is_machine, | |
| 34 [out, retval] BSTR* version_string); | |
| 35 | |
| 36 [id(4)] HRESULT crossInstall([in] BSTR extra_args); | |
| 37 | |
| 38 [id(5)] HRESULT launchAppCommand([in] BSTR guid_string, | |
| 39 [in] VARIANT_BOOL is_machine, | |
| 40 [in] BSTR cmd_id); | |
| 41 }; | |
| 42 | |
| 43 [ | |
| 44 object, | |
| 45 uuid(b8b0a927-6c2a-4de2-b6d7-a98fe4e42465), | |
| 46 dual, | |
| 47 helpstring("Google Update OneClick Control"), | |
| 48 pointer_default(unique) | |
| 49 ] | |
| 50 interface IGoogleUpdateOneClick : IDispatch | |
| 51 { | |
| 52 // Deprecated. Will be removed in the next release of OneClick. | |
| 53 [id(1), helpstring("Install")] HRESULT Install( | |
| 54 [in] BSTR cmd_line_args, | |
| 55 [in] VARIANT* success_callback, | |
| 56 [in] VARIANT* failure_callback); | |
| 57 | |
| 58 // New, easier way of calling Install. Use this for newer web pages. | |
| 59 [id(2), helpstring("Install2")] HRESULT Install2([in] BSTR extra_args); | |
| 60 | |
| 61 [id(3), helpstring("GetInstalledVersion")] HRESULT GetInstalledVersion( | |
| 62 [in] BSTR guid_string, | |
| 63 [in] VARIANT_BOOL is_machine, | |
| 64 [out, retval] BSTR* version_string); | |
| 65 | |
| 66 [id(4), helpstring("GetOneClickVersion")] HRESULT GetOneClickVersion( | |
| 67 [out, retval] long* version); | |
| 68 | |
| 69 // TODO(omaha): Remove this if LaunchAppCommand only ships in Omaha3 | |
| 70 [id(5), helpstring("LaunchAppCommand")] HRESULT LaunchAppCommand( | |
| 71 [in] BSTR app_guid, | |
| 72 [in] VARIANT_BOOL is_machine, | |
| 73 [in] BSTR cmd_id); | |
| 74 }; | |
| 75 | |
| 76 [ | |
| 77 uuid(8c1a5505-5837-47e1-963e-dbc5c3f0f52a), | |
| 78 version(1.0), | |
| 79 helpstring("Omaha Browser Plugins 3.0 Type Library") | |
| 80 ] | |
| 81 library GoogleUpdateControlLib { | |
| 82 importlib("stdole2.tlb"); | |
| 83 | |
| 84 interface IGoogleUpdateOneClick; | |
| 85 interface IGoogleUpdate3WebControl; | |
| 86 | |
| 87 [ | |
| 88 uuid(77e6be0b-059d-4ff6-a534-4aa0970a746c), | |
| 89 helpstring("Google Update OneClick Control Class") | |
| 90 ] | |
| 91 coclass GoogleUpdateOneClickControlCoClass | |
| 92 { | |
| 93 [default] interface IGoogleUpdateOneClick; | |
| 94 }; | |
| 95 | |
| 96 [ | |
| 97 uuid(2f7cf8e2-27d9-4641-845d-3bfedece0326), | |
| 98 helpstring("GoogleUpdate3Web Control Class") | |
| 99 ] | |
| 100 coclass GoogleUpdate3WebControlCoClass { | |
| 101 [default] interface IDispatch; | |
| 102 }; | |
| 103 }; | |
| OLD | NEW |