| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/Source/WebKit/chromium/public/WebPlugin.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void DidCommitCompositorFrame(); | 167 void DidCommitCompositorFrame(); |
| 168 | 168 |
| 169 // Returns whether a message should be forwarded to BrowserPlugin. | 169 // Returns whether a message should be forwarded to BrowserPlugin. |
| 170 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message); | 170 static bool ShouldForwardToBrowserPlugin(const IPC::Message& message); |
| 171 | 171 |
| 172 // WebKit::WebPlugin implementation. | 172 // WebKit::WebPlugin implementation. |
| 173 virtual WebKit::WebPluginContainer* container() const OVERRIDE; | 173 virtual WebKit::WebPluginContainer* container() const OVERRIDE; |
| 174 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE; | 174 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE; |
| 175 virtual void destroy() OVERRIDE; | 175 virtual void destroy() OVERRIDE; |
| 176 virtual NPObject* scriptableObject() OVERRIDE; | 176 virtual NPObject* scriptableObject() OVERRIDE; |
| 177 virtual struct _NPP* pluginNPP() OVERRIDE; |
| 177 virtual bool supportsKeyboardFocus() const OVERRIDE; | 178 virtual bool supportsKeyboardFocus() const OVERRIDE; |
| 178 virtual bool canProcessDrag() const OVERRIDE; | 179 virtual bool canProcessDrag() const OVERRIDE; |
| 179 virtual void paint( | 180 virtual void paint( |
| 180 WebKit::WebCanvas* canvas, | 181 WebKit::WebCanvas* canvas, |
| 181 const WebKit::WebRect& rect) OVERRIDE; | 182 const WebKit::WebRect& rect) OVERRIDE; |
| 182 virtual void updateGeometry( | 183 virtual void updateGeometry( |
| 183 const WebKit::WebRect& frame_rect, | 184 const WebKit::WebRect& frame_rect, |
| 184 const WebKit::WebRect& clip_rect, | 185 const WebKit::WebRect& clip_rect, |
| 185 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, | 186 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, |
| 186 bool is_visible) OVERRIDE; | 187 bool is_visible) OVERRIDE; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 445 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
| 445 // get called after BrowserPlugin has been destroyed. | 446 // get called after BrowserPlugin has been destroyed. |
| 446 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 447 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
| 447 | 448 |
| 448 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 449 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 449 }; | 450 }; |
| 450 | 451 |
| 451 } // namespace content | 452 } // namespace content |
| 452 | 453 |
| 453 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 454 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |