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

Unified Diff: content/renderer/render_view_impl.h

Issue 302603012: Zoom Extension API (content changes) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove exceptions from IPC. Created 6 years, 6 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/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 55508b89efa69eb873a8875113bad25ee32e01c0..f9417e9308baae40525e4fcddd999d94cfdae13e 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -511,6 +511,9 @@ class CONTENT_EXPORT RenderViewImpl
TopControlsState current,
bool animate) OVERRIDE;
#endif
+ virtual bool UsesTemporaryZoomLevel() const OVERRIDE;
Fady Samuel 2014/06/10 20:05:14 Duplicate comment: This doesn't need to be virtual
wjmaclean 2014/06/10 20:18:55 If it's not part of the content API, then I need t
+
+ void set_uses_temporary_zoom_level(bool);
// Please do not add your stuff randomly to the end here. If there is an
// appropriate section, add it there. If not, there are some random functions
@@ -744,6 +747,8 @@ class CONTENT_EXPORT RenderViewImpl
void OnSetRendererPrefs(const RendererPreferences& renderer_prefs);
void OnSetWebUIProperty(const std::string& name, const std::string& value);
void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level);
+ void OnSetZoomLevelForView(double level);
+ void OnSetUsesTemporaryZoomLevel(bool uses_temporary_zoom_level);
void OnStop();
void OnStopFinding(StopFindAction action);
void OnSuppressDialogsUntilSwapOut();
@@ -1019,6 +1024,9 @@ class CONTENT_EXPORT RenderViewImpl
// The next target URL we want to send to the browser.
GURL pending_target_url_;
+ // Indicates whether this view overrides url-based zoom settings.
+ bool uses_temporary_zoom_level_;
+
#if defined(OS_ANDROID)
// Cache the old top controls state constraints. Used when updating
// current value only without altering the constraints.

Powered by Google App Engine
This is Rietveld 408576698