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

Side by Side Diff: ui/display/chromeos/display_util.h

Issue 788423002: Add display task to trigger display configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor3
Patch Set: Remove include in favour of forward declare Created 6 years 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 unified diff | Download patch
« no previous file with comments | « ui/display/chromeos/display_configurator.cc ('k') | ui/display/chromeos/display_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "ui/display/chromeos/display_configurator.h"
12 #include "ui/display/types/display_constants.h"
13
14 namespace ui {
15
16 // Returns a string describing |state|.
17 std::string DisplayPowerStateToString(chromeos::DisplayPowerState state);
18
19 // Returns a string describing |state|.
20 std::string MultipleDisplayStateToString(MultipleDisplayState state);
21
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
24 // on/off state of each corresponding entry in |displays|.
25 int DISPLAY_EXPORT GetDisplayPower(
26 const std::vector<DisplayConfigurator::DisplayState>& display_states,
27 chromeos::DisplayPowerState state,
28 std::vector<bool>* display_power);
29
30 } // namespace ui
31
32 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/display_configurator.cc ('k') | ui/display/chromeos/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698