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

Unified Diff: content/browser/web_contents/web_contents_view_android.h

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: lazy creation Created 4 years 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/web_contents/web_contents_view_android.h
diff --git a/content/browser/web_contents/web_contents_view_android.h b/content/browser/web_contents/web_contents_view_android.h
index 2c655a6f62aaf80e8815f7924b116e6073e067f6..a9902d03f71ca46f071414c04279f6542299c865 100644
--- a/content/browser/web_contents/web_contents_view_android.h
+++ b/content/browser/web_contents/web_contents_view_android.h
@@ -23,7 +23,8 @@ class WebContentsImpl;
// Android-specific implementation of the WebContentsView.
class WebContentsViewAndroid : public WebContentsView,
- public RenderViewHostDelegateView {
+ public RenderViewHostDelegateView,
+ public ui::ViewAndroid::ViewClient {
public:
WebContentsViewAndroid(WebContentsImpl* web_contents,
WebContentsViewDelegate* delegate);
@@ -67,6 +68,9 @@ class WebContentsViewAndroid : public WebContentsView,
void RenderViewSwappedIn(RenderViewHost* host) override;
void SetOverscrollControllerEnabled(bool enabled) override;
+ // ViewAndroid::ViewClient implementation.
+ bool OnPhysicalBackingSizeChanged(int width, int height);
+
// Backend implementation of RenderViewHostDelegateView.
void ShowContextMenu(RenderFrameHost* render_frame_host,
const ContextMenuParams& params) override;

Powered by Google App Engine
This is Rietveld 408576698