| 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 import "ocidl.idl"; | |
| 18 | |
| 19 [ | |
| 20 object, | |
| 21 uuid(d5c74868-1734-44e1-bab2-187a0ad2bd37), | |
| 22 dual, | |
| 23 pointer_default(unique) | |
| 24 ] | |
| 25 interface IDispatchHostTestInterface : IDispatch { | |
| 26 [id(1)] HRESULT Random([out, retval] INT* x); | |
| 27 | |
| 28 [propget] HRESULT Property([out, retval] INT* x); | |
| 29 [propput] HRESULT Property([in] INT x); | |
| 30 | |
| 31 [propget] HRESULT ReadOnlyProperty([out, retval] INT* x); | |
| 32 [propput] HRESULT WriteOnlyProperty([in] INT x); | |
| 33 | |
| 34 [id(2)] HRESULT AddAsMethod([in] INT a, [in] INT b, [out, retval] INT* c); | |
| 35 [id(3), propget] HRESULT AddAsProperty([in] INT a, [in] INT b, | |
| 36 [out, retval] INT* c); | |
| 37 | |
| 38 // TODO(omaha): do we need to test multi-argument property putters? | |
| 39 | |
| 40 [id(DISPID_VALUE)] HRESULT DidYouMeanRecursion([out, retval] IDispatch** me); | |
| 41 }; | |
| 42 | |
| 43 [ | |
| 44 object, | |
| 45 uuid(0abeb84d-6a9c-4c5c-9394-6123c933baec), | |
| 46 dual, | |
| 47 pointer_default(unique) | |
| 48 ] | |
| 49 interface IDispatchHostTestInterface2 : IDispatch { | |
| 50 [id(DISPID_VALUE), propget] HRESULT Get([in] INT index, [out, retval] INT* x); | |
| 51 }; | |
| 52 | |
| 53 [ | |
| 54 uuid(65530e7f-4922-49e2-a5ee-c3e172da974a), | |
| 55 ] | |
| 56 library DispatchHostTestingLib { | |
| 57 importlib("stdole2.tlb"); | |
| 58 | |
| 59 interface IDispatchHostTestInterface; | |
| 60 interface IDispatchHostTestInterface2; | |
| 61 }; | |
| OLD | NEW |