X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2Fpublic%2Fweb%2FWebPlugin.h;h=7738d1e4c065f70e5197ff177d18b0e0aadf906b;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=a99c3ee217b53642dc33c5c876f58a212d95e6af;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/public/web/WebPlugin.h b/src/third_party/WebKit/public/web/WebPlugin.h index a99c3ee..7738d1e 100644 --- a/src/third_party/WebKit/public/web/WebPlugin.h +++ b/src/third_party/WebKit/public/web/WebPlugin.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2009, 2012 Google Inc. All rights reserved. + * Copyright (C) 2014 Opera Software ASA. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -37,6 +38,7 @@ #include "WebDragOperation.h" #include "WebDragStatus.h" #include "WebWidget.h" +#include struct NPObject; struct _NPP; @@ -66,9 +68,14 @@ public: virtual WebPluginContainer* container() const { return 0; } virtual void containerDidDetachFromParent() { } - virtual NPObject* scriptableObject() = 0; + virtual NPObject* scriptableObject() { return 0; } virtual struct _NPP* pluginNPP() { return 0; } + // The same as scriptableObject() but allows to expose scriptable interface + // through plain v8 object instead of NPObject. + // If you override this function, you must return nullptr in scriptableObject(). + virtual v8::Local v8ScriptableObject(v8::Isolate*) { return v8::Local(); } + // Returns true if the form submission value is successfully obtained // from the plugin. The value would be associated with the name attribute // of the corresponding object element. @@ -114,6 +121,8 @@ public: // Returns true if the printed content should not be scaled to // the printer's printable area. virtual bool isPrintScalingDisabled() { return false; } + // Returns number of copies to be printed. + virtual int getCopiesToPrint() { return 1; } // Sets up printing with the specified printParams. Returns the number of // pages to be printed at these settings.