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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // Populates BrowserPluginHostMsg_ResizeGuest_Params with resize state. | 165 // Populates BrowserPluginHostMsg_ResizeGuest_Params with resize state. |
166 void PopulateResizeGuestParameters( | 166 void PopulateResizeGuestParameters( |
167 const gfx::Size& view_size, | 167 const gfx::Size& view_size, |
168 BrowserPluginHostMsg_ResizeGuest_Params* params); | 168 BrowserPluginHostMsg_ResizeGuest_Params* params); |
169 | 169 |
170 // IPC message handlers. | 170 // IPC message handlers. |
171 // Please keep in alphabetical order. | 171 // Please keep in alphabetical order. |
172 void OnAdvanceFocus(int instance_id, bool reverse); | 172 void OnAdvanceFocus(int instance_id, bool reverse); |
173 void OnAttachACK(int browser_plugin_instance_id); | 173 void OnAttachACK(int browser_plugin_instance_id); |
174 void OnCompositorFrameSwapped(const IPC::Message& message); | 174 void OnCompositorFrameSwapped(const IPC::Message& message); |
175 void OnCopyFromCompositingSurface(int instance_id, | |
176 int request_id, | |
177 gfx::Rect source_rect, | |
178 gfx::Size dest_size); | |
179 void OnGuestGone(int instance_id); | 175 void OnGuestGone(int instance_id); |
180 void OnSetContentsOpaque(int instance_id, bool opaque); | 176 void OnSetContentsOpaque(int instance_id, bool opaque); |
181 void OnSetCursor(int instance_id, const WebCursor& cursor); | 177 void OnSetCursor(int instance_id, const WebCursor& cursor); |
182 void OnSetMouseLock(int instance_id, bool enable); | 178 void OnSetMouseLock(int instance_id, bool enable); |
183 void OnSetTooltipText(int browser_plugin_instance_id, | 179 void OnSetTooltipText(int browser_plugin_instance_id, |
184 const base::string16& tooltip_text); | 180 const base::string16& tooltip_text); |
185 void OnShouldAcceptTouchEvents(int instance_id, bool accept); | 181 void OnShouldAcceptTouchEvents(int instance_id, bool accept); |
186 | 182 |
187 // This indicates whether this BrowserPlugin has been attached to a | 183 // This indicates whether this BrowserPlugin has been attached to a |
188 // WebContents. | 184 // WebContents. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 228 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
233 // get called after BrowserPlugin has been destroyed. | 229 // get called after BrowserPlugin has been destroyed. |
234 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 230 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
235 | 231 |
236 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 232 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
237 }; | 233 }; |
238 | 234 |
239 } // namespace content | 235 } // namespace content |
240 | 236 |
241 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 237 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |