Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.h" |
michael@0 | 7 | |
michael@0 | 8 | #define NS_IPLUGINWIDGET_IID \ |
michael@0 | 9 | { 0xEB9207E0, 0xD8F1, 0x44B9, \ |
michael@0 | 10 | { 0xB7, 0x52, 0xAF, 0x8E, 0x9F, 0x8E, 0xBD, 0xF7 } } |
michael@0 | 11 | |
michael@0 | 12 | struct nsIntPoint; |
michael@0 | 13 | class nsIPluginInstanceOwner; |
michael@0 | 14 | |
michael@0 | 15 | /** |
michael@0 | 16 | * This is used by Mac only. |
michael@0 | 17 | */ |
michael@0 | 18 | class NS_NO_VTABLE nsIPluginWidget : public nsISupports |
michael@0 | 19 | { |
michael@0 | 20 | public: |
michael@0 | 21 | |
michael@0 | 22 | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLUGINWIDGET_IID) |
michael@0 | 23 | |
michael@0 | 24 | NS_IMETHOD GetPluginClipRect(nsIntRect& outClipRect, nsIntPoint& outOrigin, bool& outWidgetVisible) = 0; |
michael@0 | 25 | |
michael@0 | 26 | NS_IMETHOD StartDrawPlugin(void) = 0; |
michael@0 | 27 | |
michael@0 | 28 | NS_IMETHOD EndDrawPlugin(void) = 0; |
michael@0 | 29 | |
michael@0 | 30 | NS_IMETHOD SetPluginInstanceOwner(nsIPluginInstanceOwner* pluginInstanceOwner) = 0; |
michael@0 | 31 | |
michael@0 | 32 | NS_IMETHOD SetPluginEventModel(int inEventModel) = 0; |
michael@0 | 33 | |
michael@0 | 34 | NS_IMETHOD GetPluginEventModel(int* outEventModel) = 0; |
michael@0 | 35 | |
michael@0 | 36 | NS_IMETHOD SetPluginDrawingModel(int inDrawingModel) = 0; |
michael@0 | 37 | |
michael@0 | 38 | NS_IMETHOD StartComplexTextInputForCurrentEvent() = 0; |
michael@0 | 39 | }; |
michael@0 | 40 | |
michael@0 | 41 | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPluginWidget, NS_IPLUGINWIDGET_IID) |