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

Unified Diff: content/browser/android/content_view_render_view.h

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: unittest Created 3 years, 11 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/android/content_view_render_view.h
diff --git a/content/browser/android/content_view_render_view.h b/content/browser/android/content_view_render_view.h
index 0f4fd0771d5bab6f040dec2ee0f06312314408a1..f0f314071da6ceadeff5f832c259a76a680dc9be 100644
--- a/content/browser/android/content_view_render_view.h
+++ b/content/browser/android/content_view_render_view.h
@@ -14,6 +14,10 @@
#include "content/public/browser/android/compositor_client.h"
#include "ui/gfx/native_widget_types.h"
+namespace ui {
+class ViewRoot;
+}
+
namespace content {
class Compositor;
@@ -24,7 +28,7 @@ class ContentViewRenderView : public CompositorClient {
ContentViewRenderView(JNIEnv* env,
jobject obj,
- gfx::NativeWindow root_window);
+ ui::ViewRoot* view_root_);
// Methods called from Java via JNI -----------------------------------------
void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
@@ -59,7 +63,7 @@ class ContentViewRenderView : public CompositorClient {
std::unique_ptr<content::Compositor> compositor_;
- gfx::NativeWindow root_window_;
+ ui::ViewRoot* view_root_;
int current_surface_format_;
DISALLOW_COPY_AND_ASSIGN(ContentViewRenderView);
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/android/content_view_render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698