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

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

Issue 11366118: Add support for interstitial pages on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 8 years, 1 month 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 33bb222caa68334ee99e6084136189eb89ca9a06..4ec061cb6281ba9923c0232158e3cf71a2e71a09 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -230,10 +230,17 @@ bool RenderWidgetHostViewAndroid::IsSurfaceAvailableForCopy() const {
}
void RenderWidgetHostViewAndroid::Show() {
+ if (content_view_core_) {
+ host_->AttachLayer(texture_layer_->layer());
+ is_hidden_ = false;
+ }
+
texture_layer_->layer()->setDrawsContent(true);
}
void RenderWidgetHostViewAndroid::Hide() {
+ is_hidden_ = true;
+
texture_layer_->layer()->setDrawsContent(false);
}

Powered by Google App Engine
This is Rietveld 408576698