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

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

Issue 12326168: Move <webview> API to chrome layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 years, 9 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
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. It has a 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // When dragging, the drag events go to the embedder first, and if the drag 242 // When dragging, the drag events go to the embedder first, and if the drag
243 // happens on the browser plugin, then the plugin sends a corresponding 243 // happens on the browser plugin, then the plugin sends a corresponding
244 // drag-message to the guest. This routes the drag-message to the guest 244 // drag-message to the guest. This routes the drag-message to the guest
245 // renderer. 245 // renderer.
246 void OnDragStatusUpdate(int instance_id, 246 void OnDragStatusUpdate(int instance_id,
247 WebKit::WebDragStatus drag_status, 247 WebKit::WebDragStatus drag_status,
248 const WebDropData& drop_data, 248 const WebDropData& drop_data,
249 WebKit::WebDragOperationsMask drag_mask, 249 WebKit::WebDragOperationsMask drag_mask,
250 const gfx::Point& location); 250 const gfx::Point& location);
251 void OnForwardMessage(int instance_id, const IPC::Message& msg); 251 void OnForwardMessage(int instance_id, const IPC::Message& msg);
252 // If possible, navigate the guest to |relative_index| entries away from the
253 // current navigation entry.
254 virtual void OnGo(int instance_id, int relative_index);
255 // Overriden in tests. 252 // Overriden in tests.
256 virtual void OnHandleInputEvent(int instance_id, 253 virtual void OnHandleInputEvent(int instance_id,
257 const gfx::Rect& guest_window_rect, 254 const gfx::Rect& guest_window_rect,
258 const WebKit::WebInputEvent* event); 255 const WebKit::WebInputEvent* event);
259 void OnNavigateGuest(int instance_id, const std::string& src); 256 void OnNavigateGuest(int instance_id, const std::string& src);
260 void OnPluginDestroyed(int instance_id); 257 void OnPluginDestroyed(int instance_id);
261 // Reload the guest. Overriden in tests. 258 // Reload the guest. Overriden in tests.
262 virtual void OnReload(int instance_id); 259 virtual void OnReload(int instance_id);
263 // Grab the new damage buffer from the embedder, and resize the guest's 260 // Grab the new damage buffer from the embedder, and resize the guest's
264 // web contents. 261 // web contents.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 368
372 // Set of messages requested by BrowserPluginGuestObservers. 369 // Set of messages requested by BrowserPluginGuestObservers.
373 std::set<uint32> browser_plugin_guest_messages_; 370 std::set<uint32> browser_plugin_guest_messages_;
374 371
375 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestImpl); 372 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestImpl);
376 }; 373 };
377 374
378 } // namespace content 375 } // namespace content
379 376
380 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_IMPL_H_ 377 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698