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

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

Issue 618013003: Support fullscreen for non-video elements in the WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactorFullscreenNonMedia
Patch Set: Removed verbose comment Created 6 years, 2 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_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 986df1c1b512d39bb81779b31c8ced4cc1bfb0d4..d609f92ba9a1391f7d732f6add81663fb7b80f6f 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -312,6 +312,8 @@ bool RenderWidgetHostViewAndroid::OnMessageReceived(
OnSetNeedsBeginFrame)
IPC_MESSAGE_HANDLER(ViewHostMsg_SmartClipDataExtracted,
OnSmartClipDataExtracted)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_DidEnterFullscreen, OnDidEnterFullscreen)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_DidExitFullscreen, OnDidExitFullscreen)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -568,6 +570,16 @@ void RenderWidgetHostViewAndroid::SetTextSurroundingSelectionCallback(
text_surrounding_selection_callback_ = callback;
}
+void RenderWidgetHostViewAndroid::OnDidEnterFullscreen() {
+ if (content_view_core_)
+ content_view_core_->OnDidEnterFullscreen();
+}
+
+void RenderWidgetHostViewAndroid::OnDidExitFullscreen() {
+ if (content_view_core_)
+ content_view_core_->OnDidExitFullscreen();
+}
+
void RenderWidgetHostViewAndroid::OnTextSurroundingSelectionResponse(
const base::string16& content,
size_t start_offset,

Powered by Google App Engine
This is Rietveld 408576698