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

Unified Diff: public/web/WebPluginContainer.h

Issue 230813002: Make it possible to have <object>'s scriptableObject as a v8 object instead of NPObject. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to current ToT (by raymes - fetched from https://codereview.chromium.org/426853002/) Created 6 years, 5 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
« public/web/WebPlugin.h ('K') | « public/web/WebPlugin.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPluginContainer.h
diff --git a/public/web/WebPluginContainer.h b/public/web/WebPluginContainer.h
index 1ce1d703b8f7a0588253f9f155e05f555f263f1e..489e78346bced05eb51c3ab9b1da863a6c1bbe45 100644
--- a/public/web/WebPluginContainer.h
+++ b/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
@@ -35,6 +36,12 @@
struct NPObject;
+namespace v8 {
+template <typename T> class Local;
+class Isolate;
+class Object;
+}
+
namespace blink {
class WebElement;
@@ -80,6 +87,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<v8::Object> getV8ObjectForElement() = 0;
abarth-chromium 2014/07/29 17:34:22 We generally don't use "get" as a prefix for gette
Krzysztof Olczyk 2014/07/30 08:40:31 Done.
+
// 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.
« public/web/WebPlugin.h ('K') | « public/web/WebPlugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698