Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: ui/display/manager/chromeos/test/test_native_display_delegate.cc

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/manager/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/manager/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 #include "ui/display/types/native_display_observer.h" 13 #include "ui/display/types/native_display_observer.h"
14 14
15 namespace ui { 15 namespace display {
16 namespace test { 16 namespace test {
17 17
18 TestNativeDisplayDelegate::TestNativeDisplayDelegate(ActionLogger* log) 18 TestNativeDisplayDelegate::TestNativeDisplayDelegate(ActionLogger* log)
19 : max_configurable_pixels_(0), 19 : max_configurable_pixels_(0),
20 get_hdcp_expectation_(true), 20 get_hdcp_expectation_(true),
21 set_hdcp_expectation_(true), 21 set_hdcp_expectation_(true),
22 hdcp_state_(HDCP_STATE_UNDESIRED), 22 hdcp_state_(HDCP_STATE_UNDESIRED),
23 run_async_(false), 23 run_async_(false),
24 log_(log) {} 24 log_(log) {}
25 25
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 void TestNativeDisplayDelegate::SetHDCPState( 122 void TestNativeDisplayDelegate::SetHDCPState(
123 const DisplaySnapshot& output, 123 const DisplaySnapshot& output,
124 HDCPState state, 124 HDCPState state,
125 const SetHDCPStateCallback& callback) { 125 const SetHDCPStateCallback& callback) {
126 log_->AppendAction(GetSetHDCPStateAction(output, state)); 126 log_->AppendAction(GetSetHDCPStateAction(output, state));
127 callback.Run(set_hdcp_expectation_); 127 callback.Run(set_hdcp_expectation_);
128 } 128 }
129 129
130 std::vector<ui::ColorCalibrationProfile> 130 std::vector<ColorCalibrationProfile>
131 TestNativeDisplayDelegate::GetAvailableColorCalibrationProfiles( 131 TestNativeDisplayDelegate::GetAvailableColorCalibrationProfiles(
132 const DisplaySnapshot& output) { 132 const DisplaySnapshot& output) {
133 return std::vector<ui::ColorCalibrationProfile>(); 133 return std::vector<ColorCalibrationProfile>();
134 } 134 }
135 135
136 bool TestNativeDisplayDelegate::SetColorCalibrationProfile( 136 bool TestNativeDisplayDelegate::SetColorCalibrationProfile(
137 const DisplaySnapshot& output, 137 const DisplaySnapshot& output,
138 ui::ColorCalibrationProfile new_profile) { 138 ColorCalibrationProfile new_profile) {
139 return false; 139 return false;
140 } 140 }
141 141
142 bool TestNativeDisplayDelegate::SetColorCorrection( 142 bool TestNativeDisplayDelegate::SetColorCorrection(
143 const ui::DisplaySnapshot& output, 143 const DisplaySnapshot& output,
144 const std::vector<GammaRampRGBEntry>& degamma_lut, 144 const std::vector<GammaRampRGBEntry>& degamma_lut,
145 const std::vector<GammaRampRGBEntry>& gamma_lut, 145 const std::vector<GammaRampRGBEntry>& gamma_lut,
146 const std::vector<float>& correction_matrix) { 146 const std::vector<float>& correction_matrix) {
147 log_->AppendAction(SetColorCorrectionAction(output, degamma_lut, gamma_lut, 147 log_->AppendAction(SetColorCorrectionAction(output, degamma_lut, gamma_lut,
148 correction_matrix)); 148 correction_matrix));
149 return true; 149 return true;
150 } 150 }
151 151
152 void TestNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { 152 void TestNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) {
153 observers_.AddObserver(observer); 153 observers_.AddObserver(observer);
154 } 154 }
155 155
156 void TestNativeDisplayDelegate::RemoveObserver( 156 void TestNativeDisplayDelegate::RemoveObserver(
157 NativeDisplayObserver* observer) { 157 NativeDisplayObserver* observer) {
158 observers_.RemoveObserver(observer); 158 observers_.RemoveObserver(observer);
159 } 159 }
160 160
161 display::FakeDisplayController* 161 FakeDisplayController* TestNativeDisplayDelegate::GetFakeDisplayController() {
162 TestNativeDisplayDelegate::GetFakeDisplayController() {
163 return nullptr; 162 return nullptr;
164 } 163 }
165 164
166 } // namespace test 165 } // namespace test
167 } // namespace ui 166 } // namespace display
OLDNEW
« no previous file with comments | « ui/display/manager/chromeos/test/test_native_display_delegate.h ('k') | ui/display/manager/chromeos/touchscreen_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698