Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: public/web/WebBindings.h

Issue 449683002: Blink API to convert v8::Object to WebNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebBindings.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebBindings.h
diff --git a/public/web/WebBindings.h b/public/web/WebBindings.h
index 494e73610d23cdf0299d9b4e479eab75dfe2bf9c..36ede94d5ecddd937aa25bbca022325e314b21fe 100644
--- a/public/web/WebBindings.h
+++ b/public/web/WebBindings.h
@@ -37,6 +37,7 @@
#include <bindings/npruntime.h>
namespace v8 {
+class Object;
class Value;
template <class T> class Handle;
template <class T> class Local;
@@ -168,6 +169,8 @@ public:
// If so, return that node as a WebNode object.
BLINK_EXPORT static bool getNode(NPObject* element, WebNode*);
+ BLINK_EXPORT static bool getNodeFromV8Object(v8::Handle<v8::Object>, WebNode*);
+
// Return true (success) if the given npobj is an element.
// If so, return that element as a WebElement object.
BLINK_EXPORT static bool getElement(NPObject* element, WebElement*);
« no previous file with comments | « Source/web/WebBindings.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698