Index: ui/base/scale.h |
diff --git a/ui/base/scale.h b/ui/base/scale.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..251d7fc23a746a526c2c8235bb25e1964cf92d9f |
--- /dev/null |
+++ b/ui/base/scale.h |
@@ -0,0 +1,27 @@ |
+// 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 "ui/base/ui_export.h" |
+ |
+namespace ui { |
+ |
+enum DisplayScale { |
+ DS_ASH, |
sky
2012/04/18 21:50:32
These names are completely non-obvious. Please add
|
+ DS_DESKTOP_100, |
+ DS_DESKTOP_200, |
+ DS_METRO_100, |
+ DS_METRO_140, |
+ DS_METRO_180, |
+}; |
+ |
+// Returns the display scale in use. |
+UI_EXPORT const DisplayScale GetDisplayScale(); |
+ |
+} // namespace ui |
+ |
+#endif // UI_BASE_SCALE_H_ |