Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_BASE_SCALE_H_ | |
| 6 #define UI_BASE_SCALE_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "build/build_config.h" | |
| 10 #include "ui/base/ui_export.h" | |
| 11 | |
| 12 namespace ui { | |
| 13 | |
| 14 enum DisplayScale { | |
| 15 DS_ASH, | |
| 16 DS_DESKTOP_100, | |
| 17 #if defined(OS_WIN) | |
|
sail
2012/04/18 20:17:26
Would it be better to leave out this #ifdef
Jói
2012/04/18 20:31:14
Done.
| |
| 18 DS_DESKTOP_200, | |
| 19 DS_METRO_100, | |
| 20 DS_METRO_140, | |
| 21 DS_METRO_180, | |
| 22 #endif // defined(OS_WIN) | |
| 23 }; | |
| 24 | |
| 25 // Returns the display scale in use. | |
| 26 UI_EXPORT const DisplayScale GetDisplayScale(); | |
| 27 | |
| 28 } // namespace ui | |
| 29 | |
| 30 #endif // UI_BASE_SCALE_H_ | |
| OLD | NEW |