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

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

Issue 2122403002: Android: Extend ViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Extend ViewAndroid Created 4 years, 5 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/web_contents/web_contents_view_android.cc
diff --git a/content/browser/web_contents/web_contents_view_android.cc b/content/browser/web_contents/web_contents_view_android.cc
index 77d2c5fe24e08fd72cee7a6f44dbc2c078a62661..cc361a58a852b67bf12a34bbb211e39efce0bef6 100644
--- a/content/browser/web_contents/web_contents_view_android.cc
+++ b/content/browser/web_contents/web_contents_view_android.cc
@@ -59,15 +59,20 @@ void WebContentsViewAndroid::SetContentViewCore(
}
gfx::NativeView WebContentsViewAndroid::GetNativeView() const {
- return content_view_core_ ? content_view_core_ : NULL;
+ return content_view_core_ ? content_view_core_->GetViewAndroid() : nullptr;
}
gfx::NativeView WebContentsViewAndroid::GetContentNativeView() const {
- return content_view_core_ ? content_view_core_ : NULL;
+ RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView();
+ if (rwhv)
+ return rwhv->GetNativeView();
+
+ // TODO(sievers): This should return null.
Yusuf 2016/07/08 16:35:05 is this a placeholder for now?
no sievers 2016/07/08 18:29:04 This is from web_contents_view.h: // Returns the
+ return GetNativeView();
}
gfx::NativeWindow WebContentsViewAndroid::GetTopLevelNativeWindow() const {
- return content_view_core_ ? content_view_core_->GetWindowAndroid() : NULL;
+ return content_view_core_ ? content_view_core_->GetWindowAndroid() : nullptr;
}
void WebContentsViewAndroid::GetContainerBounds(gfx::Rect* out) const {

Powered by Google App Engine
This is Rietveld 408576698