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

Side by Side Diff: chromeos/display/output_configurator.h

Issue 12254041: Reconfigure displays even if the output count didn't change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 5 #ifndef CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 struct _XRROutputInfo; 28 struct _XRROutputInfo;
29 typedef _XRROutputInfo XRROutputInfo; 29 typedef _XRROutputInfo XRROutputInfo;
30 struct _XRRScreenResources; 30 struct _XRRScreenResources;
31 typedef _XRRScreenResources XRRScreenResources; 31 typedef _XRRScreenResources XRRScreenResources;
32 32
33 namespace chromeos { 33 namespace chromeos {
34 34
35 struct OutputSnapshot; 35 struct OutputSnapshot;
36 36
37 // Used to describe the state of a multi-display configuration. 37 // Used to describe the state of a multi-display configuration.
38 // TODO(oshima): remove DUAL_SECONDARY_ONLY
39 enum OutputState { 38 enum OutputState {
40 STATE_INVALID, 39 STATE_INVALID,
41 STATE_HEADLESS, 40 STATE_HEADLESS,
42 STATE_SINGLE, 41 STATE_SINGLE,
43 STATE_DUAL_MIRROR, 42 STATE_DUAL_MIRROR,
44 STATE_DUAL_PRIMARY_ONLY, 43 STATE_DUAL_EXTENDED,
45 STATE_DUAL_SECONDARY_ONLY,
46 STATE_DUAL_UNKNOWN, 44 STATE_DUAL_UNKNOWN,
47 }; 45 };
48 46
49 // This class interacts directly with the underlying Xrandr API to manipulate 47 // This class interacts directly with the underlying Xrandr API to manipulate
50 // CTRCs and Outputs. It will likely grow more state, over time, or expose 48 // CTRCs and Outputs. It will likely grow more state, over time, or expose
51 // Output info in other ways as more of the Chrome display code grows up around 49 // Output info in other ways as more of the Chrome display code grows up around
52 // it. 50 // it.
53 class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher { 51 class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher {
54 public: 52 public:
55 class Observer { 53 class Observer {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 210
213 // Indicates the time at which |output_state_| was entered. 211 // Indicates the time at which |output_state_| was entered.
214 base::TimeTicks last_enter_state_time_; 212 base::TimeTicks last_enter_state_time_;
215 213
216 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); 214 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator);
217 }; 215 };
218 216
219 } // namespace chromeos 217 } // namespace chromeos
220 218
221 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 219 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698