Index: ui/base/scale.h |
diff --git a/ui/base/scale.h b/ui/base/scale.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5b3496857b3332becb7c973bf3b5f4cac9b84f6a |
--- /dev/null |
+++ b/ui/base/scale.h |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_BASE_SCALE_H_ |
+#define UI_BASE_SCALE_H_ |
+#pragma once |
+ |
+#include "build/build_config.h" |
+#include "ui/base/ui_export.h" |
+ |
+namespace ui { |
+ |
+enum DisplayScale { |
+ DS_ASH, |
+ DS_DESKTOP_100, |
+#if defined(OS_WIN) |
+ DS_DESKTOP_200, |
+ DS_METRO_100, |
+ DS_METRO_140, |
+ DS_METRO_180, |
+#endif // defined(OS_WIN) |
+}; |
+ |
+// Returns the display scale in use for themes. |
sail
2012/04/18 16:44:14
can you expand this comment a bit more? What's the
Jói
2012/04/18 17:06:31
I've added a TODO on the second function that expa
|
+UI_EXPORT const DisplayScale GetThemeScale(); |
+ |
+// Returns the display scale in use for UI. |
+UI_EXPORT const DisplayScale GetUIScale(); |
+ |
+} // namespace ui |
+ |
+#endif // UI_BASE_SCALE_H_ |