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

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

Issue 2633303003: Clean up RenderWidgetHostView(ChildFrame and Guest) compositing code (Closed)
Patch Set: c Created 3 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
« no previous file with comments | « content/common/frame_messages.h ('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 <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/sequenced_task_runner_helpers.h" 14 #include "base/sequenced_task_runner_helpers.h"
15 #include "content/renderer/mouse_lock_dispatcher.h" 15 #include "content/renderer/mouse_lock_dispatcher.h"
16 #include "content/renderer/render_view_impl.h" 16 #include "content/renderer/render_view_impl.h"
17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
18 #include "third_party/WebKit/public/web/WebDragStatus.h" 18 #include "third_party/WebKit/public/web/WebDragStatus.h"
19 #include "third_party/WebKit/public/web/WebInputMethodController.h" 19 #include "third_party/WebKit/public/web/WebInputMethodController.h"
20 #include "third_party/WebKit/public/web/WebNode.h" 20 #include "third_party/WebKit/public/web/WebNode.h"
21 21
22 namespace cc { 22 namespace cc {
23 class SurfaceId; 23 class SurfaceInfo;
24 struct SurfaceSequence; 24 struct SurfaceSequence;
25 } 25 }
26 26
27 namespace content { 27 namespace content {
28 28
29 class BrowserPluginDelegate; 29 class BrowserPluginDelegate;
30 class BrowserPluginManager; 30 class BrowserPluginManager;
31 class ChildFrameCompositingHelper; 31 class ChildFrameCompositingHelper;
32 32
33 class CONTENT_EXPORT BrowserPlugin : 33 class CONTENT_EXPORT BrowserPlugin :
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 gfx::Rect view_rect() const { return view_rect_; } 149 gfx::Rect view_rect() const { return view_rect_; }
150 150
151 void UpdateInternalInstanceId(); 151 void UpdateInternalInstanceId();
152 152
153 // IPC message handlers. 153 // IPC message handlers.
154 // Please keep in alphabetical order. 154 // Please keep in alphabetical order.
155 void OnAdvanceFocus(int instance_id, bool reverse); 155 void OnAdvanceFocus(int instance_id, bool reverse);
156 void OnGuestGone(int instance_id); 156 void OnGuestGone(int instance_id);
157 void OnGuestReady(int instance_id); 157 void OnGuestReady(int instance_id);
158 void OnSetChildFrameSurface(int instance_id, 158 void OnSetChildFrameSurface(int instance_id,
159 const cc::SurfaceId& surface_id, 159 const cc::SurfaceInfo& surface_info,
160 const gfx::Size& frame_size,
161 float scale_factor,
162 const cc::SurfaceSequence& sequence); 160 const cc::SurfaceSequence& sequence);
163 void OnSetContentsOpaque(int instance_id, bool opaque); 161 void OnSetContentsOpaque(int instance_id, bool opaque);
164 void OnSetCursor(int instance_id, const WebCursor& cursor); 162 void OnSetCursor(int instance_id, const WebCursor& cursor);
165 void OnSetMouseLock(int instance_id, bool enable); 163 void OnSetMouseLock(int instance_id, bool enable);
166 void OnSetTooltipText(int browser_plugin_instance_id, 164 void OnSetTooltipText(int browser_plugin_instance_id,
167 const base::string16& tooltip_text); 165 const base::string16& tooltip_text);
168 void OnShouldAcceptTouchEvents(int instance_id, bool accept); 166 void OnShouldAcceptTouchEvents(int instance_id, bool accept);
169 167
170 // This indicates whether this BrowserPlugin has been attached to a 168 // This indicates whether this BrowserPlugin has been attached to a
171 // WebContents and is ready to receive IPCs. 169 // WebContents and is ready to receive IPCs.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 203 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
206 // get called after BrowserPlugin has been destroyed. 204 // get called after BrowserPlugin has been destroyed.
207 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 205 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
208 206
209 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 207 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
210 }; 208 };
211 209
212 } // namespace content 210 } // namespace content
213 211
214 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 212 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698