Chromium Code Reviews| Index: public/web/WebPluginContainer.h |
| diff --git a/public/web/WebPluginContainer.h b/public/web/WebPluginContainer.h |
| index 1ce1d703b8f7a0588253f9f155e05f555f263f1e..3b9cc0e6a4272caab50c3cd45b6856367e96950e 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; |
| +} |
|
abarth-chromium
2014/07/30 17:52:25
I'd just #include <v8.h>
Krzysztof Olczyk
2014/07/31 06:28:48
Done.
|
| + |
| 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> 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. |