| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/display/chromeos/test/test_native_display_delegate.h" | 5 #include "ui/display/manager/chromeos/test/test_native_display_delegate.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "ui/display/chromeos/test/action_logger.h" | 11 #include "ui/display/manager/chromeos/test/action_logger.h" |
| 12 #include "ui/display/types/display_mode.h" | 12 #include "ui/display/types/display_mode.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 namespace test { | 15 namespace test { |
| 16 | 16 |
| 17 TestNativeDisplayDelegate::TestNativeDisplayDelegate(ActionLogger* log) | 17 TestNativeDisplayDelegate::TestNativeDisplayDelegate(ActionLogger* log) |
| 18 : max_configurable_pixels_(0), | 18 : max_configurable_pixels_(0), |
| 19 get_hdcp_expectation_(true), | 19 get_hdcp_expectation_(true), |
| 20 set_hdcp_expectation_(true), | 20 set_hdcp_expectation_(true), |
| 21 hdcp_state_(HDCP_STATE_UNDESIRED), | 21 hdcp_state_(HDCP_STATE_UNDESIRED), |
| 22 run_async_(false), | 22 run_async_(false), |
| 23 log_(log) { | 23 log_(log) {} |
| 24 } | |
| 25 | 24 |
| 26 TestNativeDisplayDelegate::~TestNativeDisplayDelegate() { | 25 TestNativeDisplayDelegate::~TestNativeDisplayDelegate() {} |
| 27 } | |
| 28 | 26 |
| 29 void TestNativeDisplayDelegate::Initialize() { | 27 void TestNativeDisplayDelegate::Initialize() { |
| 30 log_->AppendAction(kInitXRandR); | 28 log_->AppendAction(kInitXRandR); |
| 31 } | 29 } |
| 32 | 30 |
| 33 void TestNativeDisplayDelegate::GrabServer() { | 31 void TestNativeDisplayDelegate::GrabServer() { |
| 34 log_->AppendAction(kGrab); | 32 log_->AppendAction(kGrab); |
| 35 } | 33 } |
| 36 | 34 |
| 37 void TestNativeDisplayDelegate::UngrabServer() { | 35 void TestNativeDisplayDelegate::UngrabServer() { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 bool TestNativeDisplayDelegate::SetColorCorrection( | 137 bool TestNativeDisplayDelegate::SetColorCorrection( |
| 140 const ui::DisplaySnapshot& output, | 138 const ui::DisplaySnapshot& output, |
| 141 const std::vector<GammaRampRGBEntry>& degamma_lut, | 139 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 142 const std::vector<GammaRampRGBEntry>& gamma_lut, | 140 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 143 const std::vector<float>& correction_matrix) { | 141 const std::vector<float>& correction_matrix) { |
| 144 log_->AppendAction(SetColorCorrectionAction(output, degamma_lut, gamma_lut, | 142 log_->AppendAction(SetColorCorrectionAction(output, degamma_lut, gamma_lut, |
| 145 correction_matrix)); | 143 correction_matrix)); |
| 146 return true; | 144 return true; |
| 147 } | 145 } |
| 148 | 146 |
| 149 void TestNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { | 147 void TestNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) {} |
| 150 } | |
| 151 | 148 |
| 152 void TestNativeDisplayDelegate::RemoveObserver( | 149 void TestNativeDisplayDelegate::RemoveObserver( |
| 153 NativeDisplayObserver* observer) { | 150 NativeDisplayObserver* observer) {} |
| 154 } | |
| 155 | 151 |
| 156 display::FakeDisplayController* | 152 display::FakeDisplayController* |
| 157 TestNativeDisplayDelegate::GetFakeDisplayController() { | 153 TestNativeDisplayDelegate::GetFakeDisplayController() { |
| 158 return nullptr; | 154 return nullptr; |
| 159 } | 155 } |
| 160 | 156 |
| 161 } // namespace test | 157 } // namespace test |
| 162 } // namespace ui | 158 } // namespace ui |
| OLD | NEW |