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

Unified Diff: content/app/content_main_runner.cc

Issue 10086009: Metro/HiDPI: Mark Chrome as HiDPI aware on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index d19499f7aa5eeab69baac0c79034716ab18b1258..9b97639de1e5a187063f2de6f8870f8ff5c7f0a2 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -33,6 +33,7 @@
#include "sandbox/src/sandbox_types.h"
#include "ui/base/ui_base_switches.h"
#include "ui/base/ui_base_paths.h"
+#include "ui/base/win/dpi.h"
#include "webkit/glue/webkit_glue.h"
#if defined(OS_WIN)
@@ -417,6 +418,9 @@ class ContentMainRunnerImpl : public content::ContentMainRunner {
SendTaskPortToParentProcess();
}
#elif defined(OS_WIN)
+#if defined(ENABLE_HIDPI)
+ ui::EnableHighDPISupport();
+#endif
content::SetupCRT(command_line);
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698