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

Side by Side Diff: monitor_reconfigure_main.h

Issue 3410019: monitor_reconfig: Disable external output to avoid error. (Closed) Base URL: http://git.chromium.org/git/monitor_reconfig.git
Patch Set: Created 10 years, 3 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 | « no previous file | monitor_reconfigure_main.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) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 MONITOR_RECONFIGURE_MONITOR_RECONFIGURE_MAIN_H_ 5 #ifndef MONITOR_RECONFIGURE_MONITOR_RECONFIGURE_MAIN_H_
6 #define MONITOR_RECONFIGURE_MONITOR_RECONFIGURE_MAIN_H_ 6 #define MONITOR_RECONFIGURE_MONITOR_RECONFIGURE_MAIN_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 21 matching lines...) Expand all
32 void DetermineOutputs(); 32 void DetermineOutputs();
33 33
34 // Returns whether an external monitor is connected 34 // Returns whether an external monitor is connected
35 bool IsExternalMonitorConnected(); 35 bool IsExternalMonitorConnected();
36 36
37 // Sorts |output_info|'s modes by decreasing number of pixels, storing the 37 // Sorts |output_info|'s modes by decreasing number of pixels, storing the
38 // results in |modes_out|. 38 // results in |modes_out|.
39 void SortModesByResolution(const XRROutputInfo& output_info, 39 void SortModesByResolution(const XRROutputInfo& output_info,
40 std::vector<ResolutionSelector::Mode>* modes_out); 40 std::vector<ResolutionSelector::Mode>* modes_out);
41 41
42 // Set the resolution for a particular display or for the screen. 42 // Set the resolution for a particular device or for the screen.
43 bool SetDeviceResolution(const std::string& device_name, 43 bool SetDeviceResolution(const std::string& device_name,
44 const std::string& resolution); 44 const std::string& resolution);
45 bool SetScreenResolution(const std::string& resolution); 45 bool SetScreenResolution(const std::string& resolution);
46 46
47 // Disable output to a device.
48 bool DisableDevice(const std::string& device_name);
49
47 // Mapping between mode XIDs and mode information structures. 50 // Mapping between mode XIDs and mode information structures.
48 std::map<int, XRRModeInfo*> mode_map_; 51 std::map<int, XRRModeInfo*> mode_map_;
49 52
50 // X Resources needed between functions 53 // X Resources needed between functions
51 Display* display_; 54 Display* display_;
52 XRRScreenResources* screen_info_; 55 XRRScreenResources* screen_info_;
53 XRROutputInfo* lcd_output_; 56 XRROutputInfo* lcd_output_;
54 XRROutputInfo* external_output_; 57 XRROutputInfo* external_output_;
55 }; 58 };
56 59
57 } // namespace monitor_reconfig 60 } // namespace monitor_reconfig
58 61
59 #endif // MONITOR_RECONFIGURE_MONITOR_RECONFIGURE_MAIN_H_ 62 #endif // MONITOR_RECONFIGURE_MONITOR_RECONFIGURE_MAIN_H_
OLDNEW
« no previous file with comments | « no previous file | monitor_reconfigure_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698