OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ |
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ | 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ui/display/chromeos/display_configurator.h" | 11 #include "ui/display/chromeos/display_configurator.h" |
12 #include "ui/display/types/display_constants.h" | 12 #include "ui/display/types/display_constants.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
16 // Returns a string describing |state|. | 16 // Returns a string describing |state|. |
17 std::string DisplayPowerStateToString(chromeos::DisplayPowerState state); | 17 std::string DisplayPowerStateToString(chromeos::DisplayPowerState state); |
18 | 18 |
19 // Returns a string describing |state|. | 19 // Returns a string describing |state|. |
20 std::string MultipleDisplayStateToString(MultipleDisplayState state); | 20 std::string MultipleDisplayStateToString(MultipleDisplayState state); |
21 | 21 |
22 // Returns the number of displays in |displays| that should be turned on, per | 22 // Returns the number of displays in |displays| that should be turned on, per |
23 // |state|. If |display_power| is non-NULL, it is updated to contain the | 23 // |state|. If |display_power| is non-NULL, it is updated to contain the |
24 // on/off state of each corresponding entry in |displays|. | 24 // on/off state of each corresponding entry in |displays|. |
25 int DISPLAY_EXPORT GetDisplayPower( | 25 int DISPLAY_EXPORT GetDisplayPower( |
26 const std::vector<DisplayConfigurator::DisplayState>& display_states, | 26 const std::vector<DisplayConfigurator::DisplayState>& display_states, |
27 chromeos::DisplayPowerState state, | 27 chromeos::DisplayPowerState state, |
28 std::vector<bool>* display_power); | 28 std::vector<bool>* display_power); |
29 | 29 |
30 bool IsNativeDisplay(ui::DisplayConnectionType type); | |
Daniel Erat
2015/02/23 23:14:54
add a comment. also, i think it's confusing to use
robert.bradford
2015/03/03 19:58:00
Done. Moved to IsPhysicalDisplayType() with an app
| |
31 | |
30 } // namespace ui | 32 } // namespace ui |
31 | 33 |
32 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ | 34 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ |
OLD | NEW |