Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 100473010: Adding RenderWidgetHostViewChildFrame for OOPIF view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: constructor rated explicit Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/sequenced_task_runner_helpers.h" 12 #include "base/sequenced_task_runner_helpers.h"
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 #include "base/memory/shared_memory.h" 14 #include "base/memory/shared_memory.h"
15 #endif 15 #endif
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "content/renderer/browser_plugin/browser_plugin_backing_store.h" 17 #include "content/renderer/browser_plugin/browser_plugin_backing_store.h"
18 #include "content/renderer/browser_plugin/browser_plugin_bindings.h" 18 #include "content/renderer/browser_plugin/browser_plugin_bindings.h"
19 #include "content/renderer/mouse_lock_dispatcher.h" 19 #include "content/renderer/mouse_lock_dispatcher.h"
20 #include "content/renderer/render_view_impl.h" 20 #include "content/renderer/render_view_impl.h"
21 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 21 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
22 #include "third_party/WebKit/public/web/WebDragStatus.h" 22 #include "third_party/WebKit/public/web/WebDragStatus.h"
23 #include "third_party/WebKit/public/web/WebWidget.h" 23 #include "third_party/WebKit/public/web/WebWidget.h"
24 24
25 struct BrowserPluginHostMsg_AutoSize_Params; 25 struct BrowserPluginHostMsg_AutoSize_Params;
26 struct BrowserPluginHostMsg_ResizeGuest_Params; 26 struct BrowserPluginHostMsg_ResizeGuest_Params;
27 struct BrowserPluginMsg_Attach_ACK_Params; 27 struct BrowserPluginMsg_Attach_ACK_Params;
28 struct BrowserPluginMsg_BuffersSwapped_Params;
29 struct BrowserPluginMsg_UpdateRect_Params; 28 struct BrowserPluginMsg_UpdateRect_Params;
29 struct FrameMsg_BuffersSwapped_Params;
30 30
31 namespace content { 31 namespace content {
32 32
33 class BrowserPluginCompositingHelper; 33 class BrowserPluginCompositingHelper;
34 class BrowserPluginManager; 34 class BrowserPluginManager;
35 class MockBrowserPlugin; 35 class MockBrowserPlugin;
36 36
37 class CONTENT_EXPORT BrowserPlugin : 37 class CONTENT_EXPORT BrowserPlugin :
38 NON_EXPORTED_BASE(public blink::WebPlugin), 38 NON_EXPORTED_BASE(public blink::WebPlugin),
39 public MouseLockDispatcher::LockTarget { 39 public MouseLockDispatcher::LockTarget {
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // given the provided |params|. 289 // given the provided |params|.
290 bool UsesPendingDamageBuffer( 290 bool UsesPendingDamageBuffer(
291 const BrowserPluginMsg_UpdateRect_Params& params); 291 const BrowserPluginMsg_UpdateRect_Params& params);
292 292
293 // IPC message handlers. 293 // IPC message handlers.
294 // Please keep in alphabetical order. 294 // Please keep in alphabetical order.
295 void OnAdvanceFocus(int instance_id, bool reverse); 295 void OnAdvanceFocus(int instance_id, bool reverse);
296 void OnAttachACK(int instance_id, 296 void OnAttachACK(int instance_id,
297 const BrowserPluginMsg_Attach_ACK_Params& ack_params); 297 const BrowserPluginMsg_Attach_ACK_Params& ack_params);
298 void OnBuffersSwapped(int instance_id, 298 void OnBuffersSwapped(int instance_id,
299 const BrowserPluginMsg_BuffersSwapped_Params& params); 299 const FrameMsg_BuffersSwapped_Params& params);
300 void OnCompositorFrameSwapped(const IPC::Message& message); 300 void OnCompositorFrameSwapped(const IPC::Message& message);
301 void OnCopyFromCompositingSurface(int instance_id, 301 void OnCopyFromCompositingSurface(int instance_id,
302 int request_id, 302 int request_id,
303 gfx::Rect source_rect, 303 gfx::Rect source_rect,
304 gfx::Size dest_size); 304 gfx::Size dest_size);
305 void OnGuestContentWindowReady(int instance_id, 305 void OnGuestContentWindowReady(int instance_id,
306 int content_window_routing_id); 306 int content_window_routing_id);
307 void OnGuestGone(int instance_id); 307 void OnGuestGone(int instance_id);
308 void OnSetCursor(int instance_id, const WebCursor& cursor); 308 void OnSetCursor(int instance_id, const WebCursor& cursor);
309 void OnSetMouseLock(int instance_id, bool enable); 309 void OnSetMouseLock(int instance_id, bool enable);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 374 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
375 375
376 std::vector<EditCommand> edit_commands_; 376 std::vector<EditCommand> edit_commands_;
377 377
378 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 378 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
379 }; 379 };
380 380
381 } // namespace content 381 } // namespace content
382 382
383 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 383 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698