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

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

Issue 2396123002: Add IPC to notify BrowserPlugin when RenderProcess is ready. (Closed)
Patch Set: Fix comment typo. Created 4 years, 2 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
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>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 ~BrowserPlugin() override; 147 ~BrowserPlugin() override;
148 148
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 OnSetChildFrameSurface(int instance_id, 158 void OnSetChildFrameSurface(int instance_id,
158 const cc::SurfaceId& surface_id, 159 const cc::SurfaceId& surface_id,
159 const gfx::Size& frame_size, 160 const gfx::Size& frame_size,
160 float scale_factor, 161 float scale_factor,
161 const cc::SurfaceSequence& sequence); 162 const cc::SurfaceSequence& sequence);
162 void OnSetContentsOpaque(int instance_id, bool opaque); 163 void OnSetContentsOpaque(int instance_id, bool opaque);
163 void OnSetCursor(int instance_id, const WebCursor& cursor); 164 void OnSetCursor(int instance_id, const WebCursor& cursor);
164 void OnSetMouseLock(int instance_id, bool enable); 165 void OnSetMouseLock(int instance_id, bool enable);
165 void OnSetTooltipText(int browser_plugin_instance_id, 166 void OnSetTooltipText(int browser_plugin_instance_id,
166 const base::string16& tooltip_text); 167 const base::string16& tooltip_text);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 205 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
205 // get called after BrowserPlugin has been destroyed. 206 // get called after BrowserPlugin has been destroyed.
206 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 207 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
207 208
208 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 209 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
209 }; 210 };
210 211
211 } // namespace content 212 } // namespace content
212 213
213 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 214 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/common/browser_plugin/browser_plugin_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