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

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: . 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..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_
« no previous file with comments | « ui/base/resource/resource_bundle_win.cc ('k') | ui/base/scale.cc » ('j') | ui/base/scale.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698