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

Side by Side Diff: ui/display/chromeos/output_configurator_unittest.cc

Issue 208943002: Refactors getting available color profiles code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 9 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 | Annotate | Revision Log
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/chromeos/output_configurator.h" 5 #include "ui/display/chromeos/output_configurator.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstdarg> 8 #include <cstdarg>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 *state = hdcp_state_; 247 *state = hdcp_state_;
248 return true; 248 return true;
249 } 249 }
250 250
251 virtual bool SetHDCPState(const DisplaySnapshot& output, 251 virtual bool SetHDCPState(const DisplaySnapshot& output,
252 HDCPState state) OVERRIDE { 252 HDCPState state) OVERRIDE {
253 log_->AppendAction(GetSetHDCPStateAction(output, state)); 253 log_->AppendAction(GetSetHDCPStateAction(output, state));
254 return true; 254 return true;
255 } 255 }
256 256
257 virtual std::vector<ui::ColorCalibrationProfile>
258 GetAvailableColorCalibrationProfiles(
259 const DisplaySnapshot& output) OVERRIDE {
260 return std::vector<ui::ColorCalibrationProfile>();
261 }
262
257 virtual bool SetColorCalibrationProfile( 263 virtual bool SetColorCalibrationProfile(
258 const DisplaySnapshot& output, 264 const DisplaySnapshot& output,
259 ui::ColorCalibrationProfile new_profile) OVERRIDE { 265 ui::ColorCalibrationProfile new_profile) OVERRIDE {
260 return false; 266 return false;
261 } 267 }
262 268
263 virtual void AddObserver(NativeDisplayObserver* observer) OVERRIDE {} 269 virtual void AddObserver(NativeDisplayObserver* observer) OVERRIDE {}
264 270
265 virtual void RemoveObserver(NativeDisplayObserver* observer) OVERRIDE {} 271 virtual void RemoveObserver(NativeDisplayObserver* observer) OVERRIDE {}
266 272
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 gfx::Point(0, 1346 gfx::Point(0,
1341 modes[0]->size().height() + 1347 modes[0]->size().height() +
1342 OutputConfigurator::kVerticalGap)) 1348 OutputConfigurator::kVerticalGap))
1343 .c_str(), 1349 .c_str(),
1344 kUngrab, 1350 kUngrab,
1345 NULL), 1351 NULL),
1346 log_->GetActionsAndClear()); 1352 log_->GetActionsAndClear());
1347 } 1353 }
1348 1354
1349 } // namespace ui 1355 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/chromeos/output_configurator.cc ('k') | ui/display/chromeos/x11/native_display_delegate_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698