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

Unified Diff: content/browser/frame_host/render_widget_host_view_guest.h

Issue 554733003: Browser Plugin: Move input to RWHVGuest to support interstitial pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_to_guest_rect
Patch Set: Pass in RenderWidgetHostImpl instead of WebContents Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_widget_host_view_guest.h
diff --git a/content/browser/frame_host/render_widget_host_view_guest.h b/content/browser/frame_host/render_widget_host_view_guest.h
index bc3469dc1777717df9da40d633bdd4277aef1a44..779df3699b86dae6294ea5ec7a3ae376de52bb1c 100644
--- a/content/browser/frame_host/render_widget_host_view_guest.h
+++ b/content/browser/frame_host/render_widget_host_view_guest.h
@@ -21,9 +21,9 @@
struct ViewHostMsg_TextInputState_Params;
namespace content {
+class BrowserPluginGuest;
class RenderWidgetHost;
class RenderWidgetHostImpl;
-class BrowserPluginGuest;
struct NativeWebKeyboardEvent;
// See comments in render_widget_host_view.h about this class and its members.
@@ -46,6 +46,9 @@ class CONTENT_EXPORT RenderWidgetHostViewGuest
RenderWidgetHostViewBase* platform_view);
virtual ~RenderWidgetHostViewGuest();
+ bool OnMessageReceivedFromEmbedder(const IPC::Message& message,
+ RenderWidgetHostImpl* embedder);
+
// RenderWidgetHostView implementation.
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE;
@@ -163,6 +166,11 @@ class CONTENT_EXPORT RenderWidgetHostViewGuest
RenderWidgetHostViewBase* GetGuestRenderWidgetHostView() const;
+ void OnHandleInputEvent(RenderWidgetHostImpl* embedder,
+ int browser_plugin_instance_id,
+ const gfx::Rect& guest_window_rect,
+ const blink::WebInputEvent* event);
+
// BrowserPluginGuest and RenderWidgetHostViewGuest's lifetimes are not tied
// to one another, therefore we access |guest_| through WeakPtr.
base::WeakPtr<BrowserPluginGuest> guest_;
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/frame_host/render_widget_host_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698