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

Unified Diff: ui/base/scale.h

Issue 10115029: Set toolbar padding to something appropriate for Metro icons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove #ifdef from header. 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
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_

Powered by Google App Engine
This is Rietveld 408576698