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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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. 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #if defined(OS_MACOSX) 46 #if defined(OS_MACOSX)
47 struct ViewHostMsg_ShowPopup_Params; 47 struct ViewHostMsg_ShowPopup_Params;
48 #endif 48 #endif
49 struct ViewHostMsg_UpdateRect_Params; 49 struct ViewHostMsg_UpdateRect_Params;
50 class WebCursor; 50 class WebCursor;
51 51
52 namespace cc { 52 namespace cc {
53 class CompositorFrameAck; 53 class CompositorFrameAck;
54 } 54 }
55 55
56 namespace WebKit { 56 namespace blink {
57 class WebInputEvent; 57 class WebInputEvent;
58 } 58 }
59 59
60 namespace content { 60 namespace content {
61 61
62 class BrowserPluginHostFactory; 62 class BrowserPluginHostFactory;
63 class BrowserPluginEmbedder; 63 class BrowserPluginEmbedder;
64 class BrowserPluginGuestManager; 64 class BrowserPluginGuestManager;
65 class RenderProcessHost; 65 class RenderProcessHost;
66 class RenderWidgetHostView; 66 class RenderWidgetHostView;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 int gpu_host_id, 275 int gpu_host_id,
276 const std::string& mailbox_name, 276 const std::string& mailbox_name,
277 uint32 sync_point); 277 uint32 sync_point);
278 278
279 // Returns whether BrowserPluginGuest is interested in receiving the given 279 // Returns whether BrowserPluginGuest is interested in receiving the given
280 // |message|. 280 // |message|.
281 static bool ShouldForwardToBrowserPluginGuest(const IPC::Message& message); 281 static bool ShouldForwardToBrowserPluginGuest(const IPC::Message& message);
282 gfx::Rect ToGuestRect(const gfx::Rect& rect); 282 gfx::Rect ToGuestRect(const gfx::Rect& rect);
283 283
284 void DragSourceEndedAt(int client_x, int client_y, int screen_x, 284 void DragSourceEndedAt(int client_x, int client_y, int screen_x,
285 int screen_y, WebKit::WebDragOperation operation); 285 int screen_y, blink::WebDragOperation operation);
286 286
287 void DragSourceMovedTo(int client_x, int client_y, 287 void DragSourceMovedTo(int client_x, int client_y,
288 int screen_x, int screen_y); 288 int screen_x, int screen_y);
289 289
290 // Called when the drag started by this guest ends at an OS-level. 290 // Called when the drag started by this guest ends at an OS-level.
291 void EndSystemDrag(); 291 void EndSystemDrag();
292 292
293 // |this| takes ownership of |delegate|. 293 // |this| takes ownership of |delegate|.
294 void SetDelegate(BrowserPluginGuestDelegate* delegate); 294 void SetDelegate(BrowserPluginGuestDelegate* delegate);
295 295
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 uint32 output_surface_id, 362 uint32 output_surface_id,
363 int renderer_host_id, 363 int renderer_host_id,
364 const cc::CompositorFrameAck& ack); 364 const cc::CompositorFrameAck& ack);
365 365
366 // Handles drag events from the embedder. 366 // Handles drag events from the embedder.
367 // When dragging, the drag events go to the embedder first, and if the drag 367 // When dragging, the drag events go to the embedder first, and if the drag
368 // happens on the browser plugin, then the plugin sends a corresponding 368 // happens on the browser plugin, then the plugin sends a corresponding
369 // drag-message to the guest. This routes the drag-message to the guest 369 // drag-message to the guest. This routes the drag-message to the guest
370 // renderer. 370 // renderer.
371 void OnDragStatusUpdate(int instance_id, 371 void OnDragStatusUpdate(int instance_id,
372 WebKit::WebDragStatus drag_status, 372 blink::WebDragStatus drag_status,
373 const DropData& drop_data, 373 const DropData& drop_data,
374 WebKit::WebDragOperationsMask drag_mask, 374 blink::WebDragOperationsMask drag_mask,
375 const gfx::Point& location); 375 const gfx::Point& location);
376 // Instructs the guest to execute an edit command decoded in the embedder. 376 // Instructs the guest to execute an edit command decoded in the embedder.
377 void OnExecuteEditCommand(int instance_id, 377 void OnExecuteEditCommand(int instance_id,
378 const std::string& command); 378 const std::string& command);
379 // Overriden in tests. 379 // Overriden in tests.
380 virtual void OnHandleInputEvent(int instance_id, 380 virtual void OnHandleInputEvent(int instance_id,
381 const gfx::Rect& guest_window_rect, 381 const gfx::Rect& guest_window_rect,
382 const WebKit::WebInputEvent* event); 382 const blink::WebInputEvent* event);
383 void OnLockMouse(bool user_gesture, 383 void OnLockMouse(bool user_gesture,
384 bool last_unlocked_by_target, 384 bool last_unlocked_by_target,
385 bool privileged); 385 bool privileged);
386 void OnLockMouseAck(int instance_id, bool succeeded); 386 void OnLockMouseAck(int instance_id, bool succeeded);
387 void OnNavigateGuest(int instance_id, const std::string& src); 387 void OnNavigateGuest(int instance_id, const std::string& src);
388 void OnPluginDestroyed(int instance_id); 388 void OnPluginDestroyed(int instance_id);
389 // Grab the new damage buffer from the embedder, and resize the guest's 389 // Grab the new damage buffer from the embedder, and resize the guest's
390 // web contents. 390 // web contents.
391 void OnResizeGuest(int instance_id, 391 void OnResizeGuest(int instance_id,
392 const BrowserPluginHostMsg_ResizeGuest_Params& params); 392 const BrowserPluginHostMsg_ResizeGuest_Params& params);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 int instance_id, 432 int instance_id,
433 bool needs_ack, 433 bool needs_ack,
434 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, 434 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
435 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params); 435 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params);
436 436
437 437
438 // Message handlers for messages from guest. 438 // Message handlers for messages from guest.
439 439
440 void OnDragStopped(); 440 void OnDragStopped();
441 void OnHandleInputEventAck( 441 void OnHandleInputEventAck(
442 WebKit::WebInputEvent::Type event_type, 442 blink::WebInputEvent::Type event_type,
443 InputEventAckState ack_result); 443 InputEventAckState ack_result);
444 void OnHasTouchEventHandlers(bool accept); 444 void OnHasTouchEventHandlers(bool accept);
445 void OnSetCursor(const WebCursor& cursor); 445 void OnSetCursor(const WebCursor& cursor);
446 // On MacOSX popups are painted by the browser process. We handle them here 446 // On MacOSX popups are painted by the browser process. We handle them here
447 // so that they are positioned correctly. 447 // so that they are positioned correctly.
448 #if defined(OS_MACOSX) 448 #if defined(OS_MACOSX)
449 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params); 449 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params);
450 #endif 450 #endif
451 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); 451 void OnShowWidget(int route_id, const gfx::Rect& initial_pos);
452 // Overriden in tests. 452 // Overriden in tests.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 // These are parameters passed from JavaScript on attachment to the content 550 // These are parameters passed from JavaScript on attachment to the content
551 // embedder. 551 // embedder.
552 scoped_ptr<base::DictionaryValue> extra_attach_params_; 552 scoped_ptr<base::DictionaryValue> extra_attach_params_;
553 553
554 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 554 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
555 }; 555 };
556 556
557 } // namespace content 557 } // namespace content
558 558
559 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 559 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698