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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: call EventHandler.create directly 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/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 60078386bb068c281f82bf56a7bf23718125a432..fcebdae81a5b77886dc21d827d22624193b7aa70 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -446,6 +446,7 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid(
content_view_core_(nullptr),
ime_adapter_android_(this),
cached_background_color_(SK_ColorWHITE),
+ view_(this),
last_compositor_frame_sink_id_(kUndefinedCompositorFrameSinkId),
gesture_provider_(ui::GetGestureProviderConfig(
ui::GestureProviderConfigType::CURRENT_PLATFORM),
@@ -722,7 +723,7 @@ gfx::Size RenderWidgetHostViewAndroid::GetPhysicalBackingSize() const {
* ui::GetScaleFactorForNativeView(GetNativeView()));
}
- return content_view_core_->GetPhysicalBackingSize();
+ return view_.GetPhysicalBackingSize();
}
bool RenderWidgetHostViewAndroid::DoBrowserControlsShrinkBlinkSize() const {
@@ -807,6 +808,11 @@ void RenderWidgetHostViewAndroid::SetNeedsBeginFrames(bool needs_begin_frames) {
outstanding_vsync_requests_ &= ~PERSISTENT_BEGIN_FRAME;
}
+void RenderWidgetHostViewAndroid::OnPhysicalBackingSizeChanged(int width,
+ int height) {
+ WasResized();
+}
+
void RenderWidgetHostViewAndroid::OnStartContentIntent(
const GURL& content_url, bool is_main_frame) {
if (content_view_core_)

Powered by Google App Engine
This is Rietveld 408576698