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

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

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/web_contents/interstitial_page_impl.h
diff --git a/content/browser/web_contents/interstitial_page_impl.h b/content/browser/web_contents/interstitial_page_impl.h
index dba542760076eac97128369fc656c3817bbfe7ce..e1ebbf585f464b27bd359aede3e754bbcc0071a5 100644
--- a/content/browser/web_contents/interstitial_page_impl.h
+++ b/content/browser/web_contents/interstitial_page_impl.h
@@ -74,6 +74,12 @@ class CONTENT_EXPORT InterstitialPageImpl
}
bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; }
+#if defined(OS_ANDROID)
+ // Android shares a single platform window for all tabs, so we need to expose
+ // the RenderViewHost to properly route gestures to the interstitial.
+ RenderViewHost* GetRenderViewHost() const;
+#endif
+
protected:
// NotificationObserver method:
virtual void Observe(int type,
@@ -115,6 +121,11 @@ class CONTENT_EXPORT InterstitialPageImpl
const ContextMenuParams& params,
ContextMenuSourceType type) OVERRIDE;
+#if defined(OS_ANDROID)
+ virtual void AttachLayer(WebKit::WebLayer* layer) OVERRIDE;
+ virtual void RemoveLayer(WebKit::WebLayer* layer) OVERRIDE;
+#endif
+
// RenderWidgetHostDelegate implementation:
virtual void RenderWidgetDeleted(
RenderWidgetHostImpl* render_widget_host) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698