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

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: Nits 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..b0d8a08531630b9afb4a86d7d16ac4a36416593f 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 device scale of the monitor that the renderer is on.
+ // Whenever possible, WebUI should push resources with this scale to
+ // Javascript.
+ virtual float GetDeviceScale() 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