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 #include "chromeos/display/output_configurator.h" | 5 #include "chromeos/display/output_configurator.h" |
6 | 6 |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 160 } |
161 virtual void ConfigureCTM( | 161 virtual void ConfigureCTM( |
162 int touch_device_id, | 162 int touch_device_id, |
163 const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE { | 163 const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE { |
164 AppendAction(GetCTMAction(touch_device_id, ctm)); | 164 AppendAction(GetCTMAction(touch_device_id, ctm)); |
165 } | 165 } |
166 virtual void SendProjectingStateToPowerManager(bool projecting) OVERRIDE { | 166 virtual void SendProjectingStateToPowerManager(bool projecting) OVERRIDE { |
167 AppendAction(projecting ? kProjectingOn : kProjectingOff); | 167 AppendAction(projecting ? kProjectingOn : kProjectingOff); |
168 } | 168 } |
169 | 169 |
| 170 virtual bool GetHDCPState(RROutput id, HDCPState* state) OVERRIDE { |
| 171 return true; |
| 172 } |
| 173 |
| 174 virtual bool SetHDCPState(RROutput id, HDCPState state) OVERRIDE { |
| 175 return true; |
| 176 } |
| 177 |
170 private: | 178 private: |
171 struct ModeDetails { | 179 struct ModeDetails { |
172 ModeDetails() : width(0), height(0), interlaced(false) {} | 180 ModeDetails() : width(0), height(0), interlaced(false) {} |
173 ModeDetails(int width, int height, bool interlaced) | 181 ModeDetails(int width, int height, bool interlaced) |
174 : width(width), | 182 : width(width), |
175 height(height), | 183 height(height), |
176 interlaced(interlaced) {} | 184 interlaced(interlaced) {} |
177 | 185 |
178 int width; | 186 int width; |
179 int height; | 187 int height; |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 // Also check that the newly-added small mode is present in the internal | 1084 // Also check that the newly-added small mode is present in the internal |
1077 // snapshot that was passed to the observer (http://crbug.com/289159). | 1085 // snapshot that was passed to the observer (http://crbug.com/289159). |
1078 const OutputConfigurator::ModeInfo* info = OutputConfigurator::GetModeInfo( | 1086 const OutputConfigurator::ModeInfo* info = OutputConfigurator::GetModeInfo( |
1079 observer_.latest_outputs()[0], kSmallModeId); | 1087 observer_.latest_outputs()[0], kSmallModeId); |
1080 ASSERT_TRUE(info); | 1088 ASSERT_TRUE(info); |
1081 EXPECT_EQ(kSmallModeWidth, info->width); | 1089 EXPECT_EQ(kSmallModeWidth, info->width); |
1082 EXPECT_EQ(kSmallModeHeight, info->height); | 1090 EXPECT_EQ(kSmallModeHeight, info->height); |
1083 } | 1091 } |
1084 | 1092 |
1085 } // namespace chromeos | 1093 } // namespace chromeos |
OLD | NEW |