|
| 1 | +/* |
| 2 | + * DO NOT EDIT. THIS FILE IS GENERATED FROM cpp/webdriver-firefox/nsINativeKeyboard.idl |
| 3 | + */ |
| 4 | + |
| 5 | +#ifndef __gen_nsINativeKeyboard_h__ |
| 6 | +#define __gen_nsINativeKeyboard_h__ |
| 7 | + |
| 8 | + |
| 9 | +#ifndef __gen_nsISupports_h__ |
| 10 | +#include "nsISupports.h" |
| 11 | +#endif |
| 12 | + |
| 13 | +#ifndef __gen_nsISupportsPrimitives_h__ |
| 14 | +#include "nsISupportsPrimitives.h" |
| 15 | +#endif |
| 16 | + |
| 17 | +/* For IDL files that don't want to include root IDL files. */ |
| 18 | +#ifndef NS_NO_VTABLE |
| 19 | +#define NS_NO_VTABLE |
| 20 | +#endif |
| 21 | + |
| 22 | +/* starting interface: nsINativeKeyboard */ |
| 23 | +#define NS_INATIVEKEYBOARD_IID_STR "50380a2d-ab4f-4b3f-9a27-cc7dbba07ee7" |
| 24 | + |
| 25 | +#define NS_INATIVEKEYBOARD_IID \ |
| 26 | + {0x50380a2d, 0xab4f, 0x4b3f, \ |
| 27 | + { 0x9a, 0x27, 0xcc, 0x7d, 0xbb, 0xa0, 0x7e, 0xe7 }} |
| 28 | + |
| 29 | +class NS_NO_VTABLE nsINativeKeyboard : public nsISupports { |
| 30 | + public: |
| 31 | + |
| 32 | + NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEKEYBOARD_IID) |
| 33 | + |
| 34 | + /* void sendKeys (in nsISupports aNode, in wstring value, in boolean releaseModifiers); */ |
| 35 | + NS_IMETHOD SendKeys(nsISupports *aNode, const char16_t * value, bool releaseModifiers) = 0; |
| 36 | + |
| 37 | +}; |
| 38 | + |
| 39 | + NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeKeyboard, NS_INATIVEKEYBOARD_IID) |
| 40 | + |
| 41 | +/* Use this macro when declaring classes that implement this interface. */ |
| 42 | +#define NS_DECL_NSINATIVEKEYBOARD \ |
| 43 | + NS_IMETHOD SendKeys(nsISupports *aNode, const char16_t * value, bool releaseModifiers); |
| 44 | + |
| 45 | +/* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
| 46 | +#define NS_FORWARD_NSINATIVEKEYBOARD(_to) \ |
| 47 | + NS_IMETHOD SendKeys(nsISupports *aNode, const char16_t * value, bool releaseModifiers) { return _to SendKeys(aNode, value, releaseModifiers); } |
| 48 | + |
| 49 | +/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
| 50 | +#define NS_FORWARD_SAFE_NSINATIVEKEYBOARD(_to) \ |
| 51 | + NS_IMETHOD SendKeys(nsISupports *aNode, const char16_t * value, bool releaseModifiers) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendKeys(aNode, value, releaseModifiers); } |
| 52 | + |
| 53 | +#if 0 |
| 54 | +/* Use the code below as a template for the implementation class for this interface. */ |
| 55 | + |
| 56 | +/* Header file */ |
| 57 | +class nsNativeKeyboard : public nsINativeKeyboard |
| 58 | +{ |
| 59 | +public: |
| 60 | + NS_DECL_ISUPPORTS |
| 61 | + NS_DECL_NSINATIVEKEYBOARD |
| 62 | + |
| 63 | + nsNativeKeyboard(); |
| 64 | + |
| 65 | +private: |
| 66 | + ~nsNativeKeyboard(); |
| 67 | + |
| 68 | +protected: |
| 69 | + /* additional members */ |
| 70 | +}; |
| 71 | + |
| 72 | +/* Implementation file */ |
| 73 | +NS_IMPL_ISUPPORTS1(nsNativeKeyboard, nsINativeKeyboard) |
| 74 | + |
| 75 | +nsNativeKeyboard::nsNativeKeyboard() |
| 76 | +{ |
| 77 | + /* member initializers and constructor code */ |
| 78 | +} |
| 79 | + |
| 80 | +nsNativeKeyboard::~nsNativeKeyboard() |
| 81 | +{ |
| 82 | + /* destructor code */ |
| 83 | +} |
| 84 | + |
| 85 | +/* void sendKeys (in nsISupports aNode, in wstring value, in boolean releaseModifiers); */ |
| 86 | +NS_IMETHODIMP nsNativeKeyboard::SendKeys(nsISupports *aNode, const char16_t * value, bool releaseModifiers) |
| 87 | +{ |
| 88 | + return NS_ERROR_NOT_IMPLEMENTED; |
| 89 | +} |
| 90 | + |
| 91 | +/* End of implementation class template. */ |
| 92 | +#endif |
| 93 | + |
| 94 | + |
| 95 | +#endif /* __gen_nsINativeKeyboard_h__ */ |
0 commit comments