X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2Fpublic%2Fweb%2FWebPluginContainer.h;h=50b9ce8ca4d41acebc3c8a082b29023c46251ac6;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=ddbc6d48b09997dc593e68dd66d11028b91bda2f;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/public/web/WebPluginContainer.h b/src/third_party/WebKit/public/web/WebPluginContainer.h index ddbc6d4..50b9ce8 100644 --- a/src/third_party/WebKit/public/web/WebPluginContainer.h +++ b/src/third_party/WebKit/public/web/WebPluginContainer.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2009 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 @@ -32,6 +33,7 @@ #define WebPluginContainer_h #include "../platform/WebCommon.h" +#include struct NPObject; @@ -59,7 +61,7 @@ public: virtual void invalidate() = 0; virtual void invalidateRect(const WebRect&) = 0; - virtual void scrollRect(int dx, int dy, const WebRect&) = 0; + virtual void scrollRect(const WebRect&) = 0; // Causes the container to report its current geometry via // WebPlugin::updateGeometry. @@ -80,6 +82,10 @@ public: // containing the plugin. virtual NPObject* scriptableObjectForElement() = 0; + // Returns the scriptable object associated with the DOM element + // containing the plugin as a native v8 object. + virtual v8::Local v8ObjectForElement() = 0; + // Executes a "javascript:" URL on behalf of the plugin in the context // of the frame containing the plugin. Returns the result of script // execution, if any.