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

Unified Diff: content/public/browser/web_ui.h

Issue 10535134: Add WebUI::GetDeviceScale (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « content/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_ui.h
diff --git a/content/public/browser/web_ui.h b/content/public/browser/web_ui.h
index 8bb0734d86dc5d917d8a3badd11ad36c0015c475..cdf23389250c75517ffa88c2dc45e736c37d5cae 100644
--- a/content/public/browser/web_ui.h
+++ b/content/public/browser/web_ui.h
@@ -52,6 +52,11 @@ class CONTENT_EXPORT WebUI {
virtual WebUIController* GetController() const = 0;
virtual void SetController(WebUIController* controller) = 0;
+ // Returns the renderer's scale.
+ // Whenever possible, WebUI should push resources with this scale to
+ // Javascript.
Evan Stade 2012/06/14 22:03:23 reading this comment, I'd assume it returns the zo
+ virtual float GetRendererScale() const = 0;
+
// Returns true if the favicon should be hidden for the current tab.
virtual bool ShouldHideFavicon() const = 0;
virtual void HideFavicon() = 0;
« no previous file with comments | « content/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698