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

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

Issue 1456623002: Add support for virtual displays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::max as suggested by oshima@ Created 5 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_snapshot_virtual.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
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
(...skipping 12 matching lines...) Expand all
23 std::string MultipleDisplayStateToString(MultipleDisplayState state); 23 std::string MultipleDisplayStateToString(MultipleDisplayState state);
24 24
25 // Returns the number of displays in |displays| that should be turned on, per 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 26 // |state|. If |display_power| is non-NULL, it is updated to contain the
27 // on/off state of each corresponding entry in |displays|. 27 // on/off state of each corresponding entry in |displays|.
28 int DISPLAY_EXPORT 28 int DISPLAY_EXPORT
29 GetDisplayPower(const std::vector<DisplaySnapshot*>& displays, 29 GetDisplayPower(const std::vector<DisplaySnapshot*>& displays,
30 chromeos::DisplayPowerState state, 30 chromeos::DisplayPowerState state,
31 std::vector<bool>* display_power); 31 std::vector<bool>* display_power);
32 32
33 // Returns whether the DisplayConnectionType |type| is a physically connected
34 // display. Currently DISPLAY_CONNECTION_TYPE_VIRTUAL and
35 // DISPLAY_CONNECTION_TYPE_NETWORK return false. All other types return true.
36 bool IsPhysicalDisplayType(ui::DisplayConnectionType type);
37
33 } // namespace ui 38 } // namespace ui
34 39
35 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_ 40 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/display_snapshot_virtual.cc ('k') | ui/display/chromeos/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698