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

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

Issue 10829026: Fix display switching for extended displays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | chromeos/display/output_configurator.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 (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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/event_types.h" 9 #include "base/event_types.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher { 58 class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher {
59 public: 59 public:
60 OutputConfigurator(); 60 OutputConfigurator();
61 virtual ~OutputConfigurator(); 61 virtual ~OutputConfigurator();
62 62
63 State output_state() const { return output_state_; } 63 State output_state() const { return output_state_; }
64 64
65 // Called when the user hits ctrl-F4 to request a display mode change. 65 // Called when the user hits ctrl-F4 to request a display mode change.
66 // This method should only return false if it was called in a single-head or 66 // This method should only return false if it was called in a single-head or
67 // headless mode. 67 // headless mode.
68 bool CycleDisplayMode(); 68 bool CycleDisplayMode(bool extended_desktop_enabled);
69 69
70 // Called when powerd notifies us that some set of displays should be turned 70 // Called when powerd notifies us that some set of displays should be turned
71 // on or off. This requires enabling or disabling the CRTC associated with 71 // on or off. This requires enabling or disabling the CRTC associated with
72 // the display(s) in question so that the low power state is engaged. 72 // the display(s) in question so that the low power state is engaged.
73 bool ScreenPowerSet(bool power_on, bool all_displays); 73 bool ScreenPowerSet(bool power_on, bool all_displays);
74 74
75 // Force switching the display mode to |new_state|. This method is used when 75 // Force switching the display mode to |new_state|. This method is used when
76 // the user explicitly changes the display mode in the options UI. Returns 76 // the user explicitly changes the display mode in the options UI. Returns
77 // false if it was called in a single-head or headless mode. 77 // false if it was called in a single-head or headless mode.
78 bool SetDisplayMode(State new_state); 78 bool SetDisplayMode(State new_state);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // The display state as derived from the outputs observed in |output_cache_|. 155 // The display state as derived from the outputs observed in |output_cache_|.
156 // This is used for rotating display modes. 156 // This is used for rotating display modes.
157 State output_state_; 157 State output_state_;
158 158
159 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); 159 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator);
160 }; 160 };
161 161
162 } // namespace chromeos 162 } // namespace chromeos
163 163
164 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 164 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698