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_AURA_DISPLAY_UTIL_H_ |
| 6 #define UI_AURA_DISPLAY_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "ui/aura/aura_export.h" |
| 11 |
| 12 namespace gfx { |
| 13 class Display; |
| 14 } |
| 15 |
| 16 namespace aura { |
| 17 |
| 18 // TODO(oshima): OBSOLETE. Eliminate this flag. |
| 19 AURA_EXPORT void SetUseFullscreenHostWindow(bool use_fullscreen_window); |
| 20 AURA_EXPORT bool UseFullscreenHostWindow(); |
| 21 |
| 22 // Creates a display from string spec. 100+200-1440x800 creates display |
| 23 // whose size is 1440x800 at the location (100, 200) in screen's coordinates. |
| 24 // The location can be omitted and be just "1440x800", which creates |
| 25 // display at the origin of the screen. An empty string creates |
| 26 // the display with default size. |
| 27 // The device scale factor can be specified by "*", like "1280x780*2", |
| 28 // or will use the value of |gfx::Display::GetForcedDeviceScaleFactor()| if |
| 29 // --force-device-scale-factor is specified. |
| 30 // static gfx::Display CreateDisplayFromSpec(const std::string& spec); |
| 31 AURA_EXPORT gfx::Display CreateDisplayFromSpec(const std::string& str); |
| 32 |
| 33 } // namespace aura |
| 34 |
| 35 #endif // UI_AURA_DISPLAY_UTIL_H_ |
OLD | NEW |