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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 int x, | 45 int x, |
46 int y) OVERRIDE; | 46 int y) OVERRIDE; |
47 virtual void CreateFrameBuffer( | 47 virtual void CreateFrameBuffer( |
48 int width, | 48 int width, |
49 int height, | 49 int height, |
50 const std::vector<OutputConfigurator::OutputSnapshot>& outputs) OVERRIDE; | 50 const std::vector<OutputConfigurator::OutputSnapshot>& outputs) OVERRIDE; |
51 virtual void ConfigureCTM( | 51 virtual void ConfigureCTM( |
52 int touch_device_id, | 52 int touch_device_id, |
53 const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE; | 53 const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE; |
54 virtual void SendProjectingStateToPowerManager(bool projecting) OVERRIDE; | 54 virtual void SendProjectingStateToPowerManager(bool projecting) OVERRIDE; |
| 55 virtual bool GetHDCPState(RROutput id, HDCPState* state) OVERRIDE; |
| 56 virtual bool SetHDCPState(RROutput id, HDCPState state) OVERRIDE; |
55 | 57 |
56 private: | 58 private: |
57 // Initializes |mode_info| to contain details corresponding to |mode|. Returns | 59 // Initializes |mode_info| to contain details corresponding to |mode|. Returns |
58 // true on success. | 60 // true on success. |
59 bool InitModeInfo(RRMode mode, OutputConfigurator::ModeInfo* mode_info); | 61 bool InitModeInfo(RRMode mode, OutputConfigurator::ModeInfo* mode_info); |
60 | 62 |
61 // Helper method for GetOutputs() that returns an OutputSnapshot struct based | 63 // Helper method for GetOutputs() that returns an OutputSnapshot struct based |
62 // on the passed-in information. Further initialization is required (e.g. | 64 // on the passed-in information. Further initialization is required (e.g. |
63 // |selected_mode|, |mirror_mode|, and |touch_device_id|). | 65 // |selected_mode|, |mirror_mode|, and |touch_device_id|). |
64 OutputConfigurator::OutputSnapshot InitOutputSnapshot( | 66 OutputConfigurator::OutputSnapshot InitOutputSnapshot( |
(...skipping 24 matching lines...) Expand all Loading... |
89 | 91 |
90 // Initialized when the server is grabbed and freed when it's ungrabbed. | 92 // Initialized when the server is grabbed and freed when it's ungrabbed. |
91 XRRScreenResources* screen_; | 93 XRRScreenResources* screen_; |
92 | 94 |
93 DISALLOW_COPY_AND_ASSIGN(RealOutputConfiguratorDelegate); | 95 DISALLOW_COPY_AND_ASSIGN(RealOutputConfiguratorDelegate); |
94 }; | 96 }; |
95 | 97 |
96 } // namespace chromeos | 98 } // namespace chromeos |
97 | 99 |
98 #endif // CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ | 100 #endif // CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ |
OLD | NEW |