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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // A BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any
10 // messages about the guest render process that the embedder might be interested 10 // messages about the guest render process that the embedder might be interested
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // by its opener, and it can begin loading resources. |extra_params| are 179 // by its opener, and it can begin loading resources. |extra_params| are
180 // parameters passed into BrowserPlugin from JavaScript to be forwarded to 180 // parameters passed into BrowserPlugin from JavaScript to be forwarded to
181 // the content embedder. 181 // the content embedder.
182 void Attach(WebContentsImpl* embedder_web_contents, 182 void Attach(WebContentsImpl* embedder_web_contents,
183 BrowserPluginHostMsg_Attach_Params params, 183 BrowserPluginHostMsg_Attach_Params params,
184 const base::DictionaryValue& extra_params); 184 const base::DictionaryValue& extra_params);
185 185
186 // Returns whether BrowserPluginGuest is interested in receiving the given 186 // Returns whether BrowserPluginGuest is interested in receiving the given
187 // |message|. 187 // |message|.
188 static bool ShouldForwardToBrowserPluginGuest(const IPC::Message& message); 188 static bool ShouldForwardToBrowserPluginGuest(const IPC::Message& message);
189 gfx::Rect ToGuestRect(const gfx::Rect& rect); 189 gfx::Rect ToGuestRect(const gfx::Rect& rect) const;
190 gfx::RectF ToGuestRect(const gfx::RectF& rect) const;
190 191
191 void DragSourceEndedAt(int client_x, int client_y, int screen_x, 192 void DragSourceEndedAt(int client_x, int client_y, int screen_x,
192 int screen_y, blink::WebDragOperation operation); 193 int screen_y, blink::WebDragOperation operation);
193 194
194 // Called when the drag started by this guest ends at an OS-level. 195 // Called when the drag started by this guest ends at an OS-level.
195 void EndSystemDrag(); 196 void EndSystemDrag();
196 197
197 void set_delegate(BrowserPluginGuestDelegate* delegate) { 198 void set_delegate(BrowserPluginGuestDelegate* delegate) {
198 DCHECK(!delegate_); 199 DCHECK(!delegate_);
199 delegate_ = delegate; 200 delegate_ = delegate;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // Weak pointer used to ask GeolocationPermissionContext about geolocation 401 // Weak pointer used to ask GeolocationPermissionContext about geolocation
401 // permission. 402 // permission.
402 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 403 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
403 404
404 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 405 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
405 }; 406 };
406 407
407 } // namespace content 408 } // namespace content
408 409
409 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 410 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698