OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ | 5 #ifndef CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ |
6 #define CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ | 6 #define CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ |
7 | 7 |
8 #include <map> | |
Daniel Erat
2013/09/23 19:31:43
nit: i don't think you need this here anymore
kcwu
2013/09/24 13:55:06
Done.
| |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
12 #include "chromeos/display/output_configurator.h" | 13 #include "chromeos/display/output_configurator.h" |
13 | 14 |
14 typedef XID Window; | 15 typedef XID Window; |
15 | 16 |
16 struct _XDisplay; | 17 struct _XDisplay; |
17 typedef struct _XDisplay Display; | 18 typedef struct _XDisplay Display; |
(...skipping 28 matching lines...) Expand all Loading... | |
46 int y) OVERRIDE; | 47 int y) OVERRIDE; |
47 virtual void CreateFrameBuffer( | 48 virtual void CreateFrameBuffer( |
48 int width, | 49 int width, |
49 int height, | 50 int height, |
50 const std::vector<OutputConfigurator::OutputSnapshot>& outputs) OVERRIDE; | 51 const std::vector<OutputConfigurator::OutputSnapshot>& outputs) OVERRIDE; |
51 virtual void ConfigureCTM( | 52 virtual void ConfigureCTM( |
52 int touch_device_id, | 53 int touch_device_id, |
53 const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE; | 54 const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE; |
54 virtual void SendProjectingStateToPowerManager(bool projecting) OVERRIDE; | 55 virtual void SendProjectingStateToPowerManager(bool projecting) OVERRIDE; |
55 | 56 |
57 // Gets HDCP state of output. | |
Daniel Erat
2013/09/23 19:31:43
nit: get rid of comments and squash these up again
kcwu
2013/09/24 13:55:06
Done.
| |
58 virtual bool GetHDCPState(RROutput id, HDCPState* state) OVERRIDE; | |
59 | |
60 // Sets HDCP state of output. | |
61 virtual bool SetHDCPState(RROutput id, HDCPState state) OVERRIDE; | |
62 | |
56 private: | 63 private: |
57 // Initializes |mode_info| to contain details corresponding to |mode|. Returns | 64 // Initializes |mode_info| to contain details corresponding to |mode|. Returns |
58 // true on success. | 65 // true on success. |
59 bool InitModeInfo(RRMode mode, OutputConfigurator::ModeInfo* mode_info); | 66 bool InitModeInfo(RRMode mode, OutputConfigurator::ModeInfo* mode_info); |
60 | 67 |
61 // Helper method for GetOutputs() that returns an OutputSnapshot struct based | 68 // Helper method for GetOutputs() that returns an OutputSnapshot struct based |
62 // on the passed-in information. Further initialization is required (e.g. | 69 // on the passed-in information. Further initialization is required (e.g. |
63 // |selected_mode|, |mirror_mode|, and |touch_device_id|). | 70 // |selected_mode|, |mirror_mode|, and |touch_device_id|). |
64 OutputConfigurator::OutputSnapshot InitOutputSnapshot( | 71 OutputConfigurator::OutputSnapshot InitOutputSnapshot( |
65 RROutput id, | 72 RROutput id, |
(...skipping 23 matching lines...) Expand all Loading... | |
89 | 96 |
90 // Initialized when the server is grabbed and freed when it's ungrabbed. | 97 // Initialized when the server is grabbed and freed when it's ungrabbed. |
91 XRRScreenResources* screen_; | 98 XRRScreenResources* screen_; |
92 | 99 |
93 DISALLOW_COPY_AND_ASSIGN(RealOutputConfiguratorDelegate); | 100 DISALLOW_COPY_AND_ASSIGN(RealOutputConfiguratorDelegate); |
94 }; | 101 }; |
95 | 102 |
96 } // namespace chromeos | 103 } // namespace chromeos |
97 | 104 |
98 #endif // CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ | 105 #endif // CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ |
OLD | NEW |