| OLD | NEW |
| 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_MONITOR_OUTPUT_CONFIGURATOR_H_ | 5 #ifndef CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
| 6 #define CHROMEOS_MONITOR_OUTPUT_CONFIGURATOR_H_ | 6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 14 | 14 |
| 15 // Forward declarations for Xlib and Xrandr. | 15 // Forward declarations for Xlib and Xrandr. |
| 16 // This is so unused X definitions don't pollute the namespace. | 16 // This is so unused X definitions don't pollute the namespace. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 35 RRMode ideal_mode; | 35 RRMode ideal_mode; |
| 36 int x; | 36 int x; |
| 37 int y; | 37 int y; |
| 38 bool is_connected; | 38 bool is_connected; |
| 39 bool is_powered_on; | 39 bool is_powered_on; |
| 40 bool is_internal; | 40 bool is_internal; |
| 41 unsigned long mm_width; | 41 unsigned long mm_width; |
| 42 unsigned long mm_height; | 42 unsigned long mm_height; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // Used to describe the state of a multi-monitor configuration. | 45 // Used to describe the state of a multi-display configuration. |
| 46 enum State { | 46 enum State { |
| 47 STATE_INVALID, | 47 STATE_INVALID, |
| 48 STATE_HEADLESS, | 48 STATE_HEADLESS, |
| 49 STATE_SINGLE, | 49 STATE_SINGLE, |
| 50 STATE_DUAL_MIRROR, | 50 STATE_DUAL_MIRROR, |
| 51 STATE_DUAL_PRIMARY_ONLY, | 51 STATE_DUAL_PRIMARY_ONLY, |
| 52 STATE_DUAL_SECONDARY_ONLY, | 52 STATE_DUAL_SECONDARY_ONLY, |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 // This class interacts directly with the underlying Xrandr API to manipulate | 55 // This class interacts directly with the underlying Xrandr API to manipulate |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // The display state as derived from the outputs observed in |output_cache_|. | 156 // The display state as derived from the outputs observed in |output_cache_|. |
| 157 // This is used for rotating display modes. | 157 // This is used for rotating display modes. |
| 158 State output_state_; | 158 State output_state_; |
| 159 | 159 |
| 160 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); | 160 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace chromeos | 163 } // namespace chromeos |
| 164 | 164 |
| 165 #endif // CHROMEOS_MONITOR_OUTPUT_CONFIGURATOR_H_ | 165 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
| OLD | NEW |