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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 // Populates BrowserPluginHostMsg_ResizeGuest_Params with resize state. | 183 // Populates BrowserPluginHostMsg_ResizeGuest_Params with resize state. |
184 void PopulateResizeGuestParameters( | 184 void PopulateResizeGuestParameters( |
185 const gfx::Size& view_size, | 185 const gfx::Size& view_size, |
186 BrowserPluginHostMsg_ResizeGuest_Params* params); | 186 BrowserPluginHostMsg_ResizeGuest_Params* params); |
187 | 187 |
188 // IPC message handlers. | 188 // IPC message handlers. |
189 // Please keep in alphabetical order. | 189 // Please keep in alphabetical order. |
190 void OnAdvanceFocus(int instance_id, bool reverse); | 190 void OnAdvanceFocus(int instance_id, bool reverse); |
191 void OnAttachACK(int browser_plugin_instance_id); | 191 void OnAttachACK(int browser_plugin_instance_id); |
192 void OnBuffersSwapped(int instance_id, | |
193 const FrameMsg_BuffersSwapped_Params& params); | |
194 void OnCompositorFrameSwapped(const IPC::Message& message); | 192 void OnCompositorFrameSwapped(const IPC::Message& message); |
195 void OnCopyFromCompositingSurface(int instance_id, | 193 void OnCopyFromCompositingSurface(int instance_id, |
196 int request_id, | 194 int request_id, |
197 gfx::Rect source_rect, | 195 gfx::Rect source_rect, |
198 gfx::Size dest_size); | 196 gfx::Size dest_size); |
199 void OnGuestGone(int instance_id); | 197 void OnGuestGone(int instance_id); |
200 void OnSetCursor(int instance_id, const WebCursor& cursor); | 198 void OnSetCursor(int instance_id, const WebCursor& cursor); |
201 void OnSetMouseLock(int instance_id, bool enable); | 199 void OnSetMouseLock(int instance_id, bool enable); |
202 void OnShouldAcceptTouchEvents(int instance_id, bool accept); | 200 void OnShouldAcceptTouchEvents(int instance_id, bool accept); |
203 | 201 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 247 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
250 // get called after BrowserPlugin has been destroyed. | 248 // get called after BrowserPlugin has been destroyed. |
251 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 249 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
252 | 250 |
253 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 251 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
254 }; | 252 }; |
255 | 253 |
256 } // namespace content | 254 } // namespace content |
257 | 255 |
258 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 256 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |