| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| 7 | 7 |
| 8 #include "third_party/WebKit/public/web/WebPlugin.h" | 8 #include "third_party/WebKit/public/web/WebPlugin.h" |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // sent, if needed. | 76 // sent, if needed. |
| 77 void DidCommitCompositorFrame(); | 77 void DidCommitCompositorFrame(); |
| 78 | 78 |
| 79 // Returns whether a message should be forwarded to BrowserPlugin. | 79 // Returns whether a message should be forwarded to BrowserPlugin. |
| 80 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message); | 80 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message); |
| 81 | 81 |
| 82 // blink::WebPlugin implementation. | 82 // blink::WebPlugin implementation. |
| 83 virtual blink::WebPluginContainer* container() const override; | 83 virtual blink::WebPluginContainer* container() const override; |
| 84 virtual bool initialize(blink::WebPluginContainer* container) override; | 84 virtual bool initialize(blink::WebPluginContainer* container) override; |
| 85 virtual void destroy() override; | 85 virtual void destroy() override; |
| 86 virtual v8::Local<v8::Object> v8ScriptableObject( |
| 87 v8::Isolate* isolate) override; |
| 86 virtual bool supportsKeyboardFocus() const override; | 88 virtual bool supportsKeyboardFocus() const override; |
| 87 virtual bool supportsEditCommands() const override; | 89 virtual bool supportsEditCommands() const override; |
| 88 virtual bool supportsInputMethod() const override; | 90 virtual bool supportsInputMethod() const override; |
| 89 virtual bool canProcessDrag() const override; | 91 virtual bool canProcessDrag() const override; |
| 90 virtual void paint( | 92 virtual void paint( |
| 91 blink::WebCanvas* canvas, | 93 blink::WebCanvas* canvas, |
| 92 const blink::WebRect& rect) override; | 94 const blink::WebRect& rect) override; |
| 93 virtual void updateGeometry( | 95 virtual void updateGeometry( |
| 94 const blink::WebRect& frame_rect, | 96 const blink::WebRect& frame_rect, |
| 95 const blink::WebRect& clip_rect, | 97 const blink::WebRect& clip_rect, |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 231 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
| 230 // get called after BrowserPlugin has been destroyed. | 232 // get called after BrowserPlugin has been destroyed. |
| 231 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 233 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
| 232 | 234 |
| 233 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 235 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 234 }; | 236 }; |
| 235 | 237 |
| 236 } // namespace content | 238 } // namespace content |
| 237 | 239 |
| 238 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 240 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |