diff options
Diffstat (limited to 'Source/WebKit2/WebProcess/Plugins/Plugin.h')
| -rw-r--r-- | Source/WebKit2/WebProcess/Plugins/Plugin.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/Source/WebKit2/WebProcess/Plugins/Plugin.h b/Source/WebKit2/WebProcess/Plugins/Plugin.h index 4c656a3a7..4f10da9bc 100644 --- a/Source/WebKit2/WebProcess/Plugins/Plugin.h +++ b/Source/WebKit2/WebProcess/Plugins/Plugin.h @@ -33,6 +33,12 @@ #include <wtf/RetainPtr.h> #include <wtf/Vector.h> +#if PLATFORM(MAC) +#include "LayerHostingContext.h" + +OBJC_CLASS PDFDocument; +#endif + struct NPObject; namespace CoreIPC { @@ -64,14 +70,11 @@ public: Vector<String> names; Vector<String> values; String mimeType; - bool loadManually; - - // The URL of the document that the plug-in is in. - String documentURL; - - // The URL of the document in the main frame. Will be null if the document the plug-in - // doesn't have access to the main frame document. - String toplevelDocumentURL; + bool isFullFramePlugin; + bool shouldUseManualLoader; +#if PLATFORM(MAC) + LayerHostingMode layerHostingMode; +#endif void encode(CoreIPC::ArgumentEncoder*) const; static bool decode(CoreIPC::ArgumentDecoder*, Parameters&); @@ -200,6 +203,9 @@ public: // Send the complex text input to the plug-in. virtual void sendComplexTextInput(const String& textInput) = 0; + + // Tells the plug-in about changes to the layer hosting mode. + virtual void setLayerHostingMode(LayerHostingMode) = 0; #endif // Tells the plug-in about scale factor changes. @@ -219,8 +225,8 @@ public: virtual WebCore::Scrollbar* horizontalScrollbar() = 0; virtual WebCore::Scrollbar* verticalScrollbar() = 0; -#if USE(CG) - virtual RetainPtr<CGPDFDocumentRef> pdfDocumentForPrinting() const { return 0; } +#if PLATFORM(MAC) + virtual RetainPtr<PDFDocument> pdfDocumentForPrinting() const { return 0; } #endif protected: |
