Chromium Code Reviews| Index: content/browser/webui/web_ui_impl.cc |
| diff --git a/content/browser/webui/web_ui_impl.cc b/content/browser/webui/web_ui_impl.cc |
| index 1656b984f668dbd98d6d5763bb632cab3ae9e2b1..3e1f24aa601df4e7b94fb199b895b754a92eb103 100644 |
| --- a/content/browser/webui/web_ui_impl.cc |
| +++ b/content/browser/webui/web_ui_impl.cc |
| @@ -9,6 +9,7 @@ |
| #include "base/utf_string_conversions.h" |
| #include "base/values.h" |
| #include "content/browser/child_process_security_policy_impl.h" |
| +#include "content/browser/renderer_host/dip_util.h" |
| #include "content/browser/renderer_host/render_process_host_impl.h" |
| #include "content/browser/renderer_host/render_view_host_impl.h" |
| #include "content/browser/web_contents/web_contents_impl.h" |
| @@ -116,6 +117,10 @@ WebContents* WebUIImpl::GetWebContents() const { |
| return web_contents_; |
| } |
| +float WebUIImpl::GetDeviceScale() const { |
| + return content::GetDIPScaleFactor(web_contents_->GetRenderWidgetHostView()); |
|
Evan Stade
2012/06/15 18:28:00
you're already in the content namespace here.
|
| +} |
| + |
| bool WebUIImpl::ShouldHideFavicon() const { |
| return hide_favicon_; |
| } |