OLD | NEW |
| (Empty) |
1 // Copyright 2008, Google Inc. | |
2 // All rights reserved. | |
3 // | |
4 // Redistribution and use in source and binary forms, with or without | |
5 // modification, are permitted provided that the following conditions are | |
6 // met: | |
7 // | |
8 // * Redistributions of source code must retain the above copyright | |
9 // notice, this list of conditions and the following disclaimer. | |
10 // * Redistributions in binary form must reproduce the above | |
11 // copyright notice, this list of conditions and the following disclaimer | |
12 // in the documentation and/or other materials provided with the | |
13 // distribution. | |
14 // * Neither the name of Google Inc. nor the names of its | |
15 // contributors may be used to endorse or promote products derived from | |
16 // this software without specific prior written permission. | |
17 // | |
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
29 | |
30 // This file will be processed by the MIDL tool to | |
31 // produce the type library (activex_test_control.tlb) and marshalling code. | |
32 | |
33 #include "olectl.h" | |
34 import "oaidl.idl"; | |
35 import "ocidl.idl"; | |
36 | |
37 [ | |
38 object, | |
39 uuid(9AC37249-E247-4B82-AC1E-0917737528E9), | |
40 dual, | |
41 nonextensible, | |
42 helpstring("IChromeTestControl Interface"), | |
43 pointer_default(unique) | |
44 ] | |
45 interface IChromeTestControl : IDispatch{ | |
46 [propput, bindable, requestedit, id(DISPID_BACKCOLOR)] | |
47 HRESULT BackColor([in]OLE_COLOR clr); | |
48 [propget, bindable, requestedit, id(DISPID_BACKCOLOR)] | |
49 HRESULT BackColor([out,retval]OLE_COLOR* pclr); | |
50 [propput, bindable, requestedit, id(DISPID_BORDERCOLOR)] | |
51 HRESULT BorderColor([in]OLE_COLOR clr); | |
52 [propget, bindable, requestedit, id(DISPID_BORDERCOLOR)] | |
53 HRESULT BorderColor([out, retval]OLE_COLOR* pclr); | |
54 [propput, bindable, requestedit, id(DISPID_FORECOLOR)] | |
55 HRESULT ForeColor([in]OLE_COLOR clr); | |
56 [propget, bindable, requestedit, id(DISPID_FORECOLOR)] | |
57 HRESULT ForeColor([out,retval]OLE_COLOR* pclr); | |
58 [propput, bindable, requestedit, id(DISPID_CAPTION)] | |
59 HRESULT Caption([in]BSTR strCaption); | |
60 [propget, bindable, requestedit, id(DISPID_CAPTION)] | |
61 HRESULT Caption([out,retval]BSTR* pstrCaption); | |
62 [propget, id(1), helpstring("property StringProp")] HRESULT StringProp([out, r
etval] BSTR* pVal); | |
63 [propput, id(1), helpstring("property StringProp")] HRESULT StringProp([in] BS
TR newVal); | |
64 [propget, id(2), helpstring("property LongProp")] HRESULT LongProp([out, retva
l] LONG* pVal); | |
65 [propput, id(2), helpstring("property LongProp")] HRESULT LongProp([in] LONG n
ewVal); | |
66 [propget, id(3), helpstring("property DoubleProp")] HRESULT DoubleProp([out, r
etval] DOUBLE* pVal); | |
67 [propput, id(3), helpstring("property DoubleProp")] HRESULT DoubleProp([in] DO
UBLE newVal); | |
68 [propget, id(4), helpstring("property BoolProp")] HRESULT BoolProp([out, retva
l] VARIANT_BOOL* pVal); | |
69 [propput, id(4), helpstring("property BoolProp")] HRESULT BoolProp([in] VARIAN
T_BOOL newVal); | |
70 [propget, id(5), helpstring("property ByteProp")] HRESULT ByteProp([out, retva
l] BYTE* pVal); | |
71 [propput, id(5), helpstring("property ByteProp")] HRESULT ByteProp([in] BYTE n
ewVal); | |
72 [propget, id(6), helpstring("property FloatProp")] HRESULT FloatProp([out, ret
val] FLOAT* pVal); | |
73 [propput, id(6), helpstring("property FloatProp")] HRESULT FloatProp([in] FLOA
T newVal); | |
74 [id(7), helpstring("method BigSetMethod")] HRESULT BigSetMethodRet([in] BSTR s
tring_param, [in] BYTE byte_param, [in] FLOAT float_param, [in] VARIANT_BOOL boo
l_param, [out,retval] BSTR* ret); | |
75 [id(8), helpstring("method SetByte")] HRESULT SetByte([in] BYTE val); | |
76 [id(9), helpstring("method SetByteRet")] HRESULT SetByteRet([in] BYTE byte_par
am, [out,retval] BYTE* ret); | |
77 [id(10), helpstring("method SetStringRet")] HRESULT SetStringRet([in] BSTR val
, [out,retval] BSTR* ret); | |
78 [id(11), helpstring("method GetCookie")] HRESULT GetCookie([out,retval] BSTR*
cookie); | |
79 }; | |
80 | |
81 [ | |
82 uuid(83D767F4-5C4F-4ACA-B0E8-928C54845C33), | |
83 version(1.0), | |
84 helpstring("activex_test_control 1.0 Type Library") | |
85 ] | |
86 library activex_test_controlLib | |
87 { | |
88 importlib("stdole2.tlb"); | |
89 [ | |
90 uuid(EF88DE01-35AF-463F-9802-1BF908F48696), | |
91 helpstring("_IChromeTestControlEvents Interface") | |
92 ] | |
93 dispinterface _IChromeTestControlEvents | |
94 { | |
95 properties: | |
96 methods: | |
97 }; | |
98 [ | |
99 uuid(4E174456-5EE6-494D-B6F2-2B52898A620E), | |
100 control, | |
101 helpstring("ChromeTestControl Class") | |
102 ] | |
103 coclass ChromeTestControl | |
104 { | |
105 [default] interface IChromeTestControl; | |
106 [default, source] dispinterface _IChromeTestControlEvents; | |
107 }; | |
108 }; | |
OLD | NEW |