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

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

Issue 12496020: Use OutputConfigurator::SetDislpayMode for ctrl-fullscreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/display/display_manager.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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Initialization, must be called right after constructor. 72 // Initialization, must be called right after constructor.
73 // |is_panel_fitting_enabled| indicates hardware panel fitting support. 73 // |is_panel_fitting_enabled| indicates hardware panel fitting support.
74 // If |background_color_argb| is non zero and there are multiple displays, 74 // If |background_color_argb| is non zero and there are multiple displays,
75 // OutputConfigurator sets the background color of X's RootWindow to this 75 // OutputConfigurator sets the background color of X's RootWindow to this
76 // color. 76 // color.
77 void Init(bool is_panel_fitting_enabled, uint32 background_color_argb); 77 void Init(bool is_panel_fitting_enabled, uint32 background_color_argb);
78 78
79 // Stop handling display configuration events/requests. 79 // Stop handling display configuration events/requests.
80 void Stop(); 80 void Stop();
81 81
82 // Called when the user hits ctrl-F4 to request a display mode change.
83 // This method should only return false if it was called in a single-head or
84 // headless mode.
85 bool CycleDisplayMode();
86
87 // Called when powerd notifies us that some set of displays should be turned 82 // Called when powerd notifies us that some set of displays should be turned
88 // on or off. This requires enabling or disabling the CRTC associated with 83 // on or off. This requires enabling or disabling the CRTC associated with
89 // the display(s) in question so that the low power state is engaged. 84 // the display(s) in question so that the low power state is engaged.
90 // If |force_probe| is true, the displays will be configured even if 85 // If |force_probe| is true, the displays will be configured even if
91 // |power_state| matches |power_state_|. 86 // |power_state| matches |power_state_|.
92 bool SetDisplayPower(DisplayPowerState power_state, bool force_probe); 87 bool SetDisplayPower(DisplayPowerState power_state, bool force_probe);
93 88
94 // Force switching the display mode to |new_state|. This method is used when 89 // Force switching the display mode to |new_state|. Returns false if
95 // the user explicitly changes the display mode in the options UI. Returns 90 // it was called in a single-head or headless mode.
96 // false if it was called in a single-head or headless mode.
97 bool SetDisplayMode(OutputState new_state); 91 bool SetDisplayMode(OutputState new_state);
98 92
99 // Called when an RRNotify event is received. The implementation is 93 // Called when an RRNotify event is received. The implementation is
100 // interested in the cases of RRNotify events which correspond to output 94 // interested in the cases of RRNotify events which correspond to output
101 // add/remove events. Note that Output add/remove events are sent in response 95 // add/remove events. Note that Output add/remove events are sent in response
102 // to our own reconfiguration operations so spurious events are common. 96 // to our own reconfiguration operations so spurious events are common.
103 // Spurious events will have no effect. 97 // Spurious events will have no effect.
104 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; 98 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
105 99
106 void AddObserver(Observer* observer); 100 void AddObserver(Observer* observer);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 218
225 // Indicates the time at which |output_state_| was entered. 219 // Indicates the time at which |output_state_| was entered.
226 base::TimeTicks last_enter_state_time_; 220 base::TimeTicks last_enter_state_time_;
227 221
228 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); 222 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator);
229 }; 223 };
230 224
231 } // namespace chromeos 225 } // namespace chromeos
232 226
233 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 227 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « ash/display/display_manager.cc ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698