| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Informs the guest of an updated focus state. | 49 // Informs the guest of an updated focus state. |
| 50 void UpdateGuestFocusState(blink::WebFocusType focus_type); | 50 void UpdateGuestFocusState(blink::WebFocusType focus_type); |
| 51 | 51 |
| 52 // Indicates whether the guest should be focused. | 52 // Indicates whether the guest should be focused. |
| 53 bool ShouldGuestBeFocused() const; | 53 bool ShouldGuestBeFocused() const; |
| 54 | 54 |
| 55 // A request to enable hardware compositing. | 55 // A request to enable hardware compositing. |
| 56 void EnableCompositing(bool enable); | 56 void EnableCompositing(bool enable); |
| 57 | 57 |
| 58 void UpdateInternalInstanceId(); |
| 59 |
| 58 // Provided that a guest instance ID has been allocated, this method attaches | 60 // Provided that a guest instance ID has been allocated, this method attaches |
| 59 // this BrowserPlugin instance to that guest. | 61 // this BrowserPlugin instance to that guest. |
| 60 void Attach(); | 62 void Attach(); |
| 61 | 63 |
| 62 // This method detaches this BrowserPlugin instance from the guest that it's | 64 // This method detaches this BrowserPlugin instance from the guest that it's |
| 63 // currently attached to, if any. | 65 // currently attached to, if any. |
| 64 void Detach(); | 66 void Detach(); |
| 65 | 67 |
| 66 // Notify the plugin about a compositor commit so that frame ACKs could be | 68 // Notify the plugin about a compositor commit so that frame ACKs could be |
| 67 // sent, if needed. | 69 // sent, if needed. |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 204 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
| 203 // get called after BrowserPlugin has been destroyed. | 205 // get called after BrowserPlugin has been destroyed. |
| 204 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 206 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
| 205 | 207 |
| 206 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 208 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 207 }; | 209 }; |
| 208 | 210 |
| 209 } // namespace content | 211 } // namespace content |
| 210 | 212 |
| 211 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 213 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |