Add ICU message format support
[chromium-blink-merge.git] / ui / display / chromeos / display_util.h
blobcfe6f6c7720b3c5c80a07e84ae5932a35075712e
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
3 // found in the LICENSE file.
5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
8 #include <string>
9 #include <vector>
11 #include "third_party/cros_system_api/dbus/service_constants.h"
12 #include "ui/display/display_export.h"
13 #include "ui/display/types/display_constants.h"
15 namespace ui {
17 class DisplaySnapshot;
19 // Returns a string describing |state|.
20 std::string DisplayPowerStateToString(chromeos::DisplayPowerState state);
22 // Returns a string describing |state|.
23 std::string MultipleDisplayStateToString(MultipleDisplayState state);
25 // Returns the number of displays in |displays| that should be turned on, per
26 // |state|. If |display_power| is non-NULL, it is updated to contain the
27 // on/off state of each corresponding entry in |displays|.
28 int DISPLAY_EXPORT
29 GetDisplayPower(const std::vector<DisplaySnapshot*>& displays,
30 chromeos::DisplayPowerState state,
31 std::vector<bool>* display_power);
33 } // namespace ui
35 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_