| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ | 5 #ifndef COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ |
| 6 #define COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ | 6 #define COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "components/plugins/renderer/webview_plugin.h" | 9 #include "components/plugins/renderer/webview_plugin.h" |
| 10 #include "content/public/renderer/render_frame_observer.h" | 10 #include "content/public/renderer/render_frame_observer.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 const blink::WebPluginParams& params, | 29 const blink::WebPluginParams& params, |
| 30 const std::string& html_data, | 30 const std::string& html_data, |
| 31 GURL placeholderDataUrl); | 31 GURL placeholderDataUrl); |
| 32 | 32 |
| 33 ~PluginPlaceholder() override; | 33 ~PluginPlaceholder() override; |
| 34 | 34 |
| 35 blink::WebLocalFrame* GetFrame(); | 35 blink::WebLocalFrame* GetFrame(); |
| 36 const blink::WebPluginParams& GetPluginParams() const; | 36 const blink::WebPluginParams& GetPluginParams() const; |
| 37 | 37 |
| 38 // WebViewPlugin::Delegate methods: | 38 // WebViewPlugin::Delegate methods: |
| 39 void BindWebFrame(blink::WebFrame* frame) override; |
| 39 void ShowContextMenu(const blink::WebMouseEvent&) override; | 40 void ShowContextMenu(const blink::WebMouseEvent&) override; |
| 40 void PluginDestroyed() override; | 41 void PluginDestroyed() override; |
| 41 v8::Local<v8::Object> GetV8ScriptableObject( | 42 v8::Local<v8::Object> GetV8ScriptableObject( |
| 42 v8::Isolate* isolate) const override; | 43 v8::Isolate* isolate) const override; |
| 43 | 44 |
| 44 private: | 45 private: |
| 45 // RenderFrameObserver methods: | 46 // RenderFrameObserver methods: |
| 46 void OnDestruct() override; | 47 void OnDestruct() override; |
| 47 | 48 |
| 48 blink::WebLocalFrame* frame_; | 49 blink::WebLocalFrame* frame_; |
| 49 blink::WebPluginParams plugin_params_; | 50 blink::WebPluginParams plugin_params_; |
| 50 WebViewPlugin* plugin_; | 51 WebViewPlugin* plugin_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); | 53 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace plugins | 56 } // namespace plugins |
| 56 | 57 |
| 57 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ | 58 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ |
| OLD | NEW |