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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mus.h

Issue 2089183003: mus: Introduce API for embedder to dispatch event to the embeded client. Base URL: https://chromium.googlesource.com/chromium/src.git@mus-parent-window-receives-child-event
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_mus.h
diff --git a/content/browser/renderer_host/render_widget_host_view_mus.h b/content/browser/renderer_host/render_widget_host_view_mus.h
index d431088a1c91b822718d9cdf801e5a73af68b0e5..cf5ec49d8b8fd685a01a355901774abbd0075309 100644
--- a/content/browser/renderer_host/render_widget_host_view_mus.h
+++ b/content/browser/renderer_host/render_widget_host_view_mus.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
#include "components/mus/public/cpp/input_event_handler.h"
#include "components/mus/public/cpp/scoped_window_ptr.h"
@@ -45,6 +46,9 @@ class CONTENT_EXPORT RenderWidgetHostViewMus
// space is required by the aura::Window.
void InternalSetBounds(const gfx::Rect& rect);
+ void OnEmbed(bool success,
+ mus::mojom::InputEventHandlerPtr event_handler);
+
// RenderWidgetHostView implementation.
void InitAsChild(gfx::NativeView parent_view) override;
RenderWidgetHost* GetRenderWidgetHost() const override;
@@ -130,7 +134,9 @@ class CONTENT_EXPORT RenderWidgetHostViewMus
aura::Window* aura_window_;
std::unique_ptr<mus::ScopedWindowPtr> mus_window_;
+ mus::mojom::InputEventHandlerPtr event_handler_;
+ base::WeakPtrFactory<RenderWidgetHostViewMus> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMus);
};
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/browser/renderer_host/render_widget_host_view_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698