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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2970183002: color: Use ColorSpace for plumbing (Closed)
Patch Set: Add missed places Created 3 years, 5 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 (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 "content/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 529
530 void BlinkTestRunner::EnableUseZoomForDSF() { 530 void BlinkTestRunner::EnableUseZoomForDSF() {
531 base::CommandLine::ForCurrentProcess()-> 531 base::CommandLine::ForCurrentProcess()->
532 AppendSwitch(switches::kEnableUseZoomForDSF); 532 AppendSwitch(switches::kEnableUseZoomForDSF);
533 } 533 }
534 534
535 bool BlinkTestRunner::IsUseZoomForDSFEnabled() { 535 bool BlinkTestRunner::IsUseZoomForDSFEnabled() {
536 return content::IsUseZoomForDSFEnabled(); 536 return content::IsUseZoomForDSFEnabled();
537 } 537 }
538 538
539 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) { 539 void BlinkTestRunner::SetDeviceColorSpace(const std::string& name) {
540 content::SetDeviceColorProfile(render_view(), GetTestingICCProfile(name)); 540 content::SetDeviceColorSpace(render_view(), GetTestingColorSpace(name));
541 } 541 }
542 542
543 void BlinkTestRunner::SetBluetoothFakeAdapter(const std::string& adapter_name, 543 void BlinkTestRunner::SetBluetoothFakeAdapter(const std::string& adapter_name,
544 const base::Closure& callback) { 544 const base::Closure& callback) {
545 GetBluetoothFakeAdapterSetter().Set(adapter_name, callback); 545 GetBluetoothFakeAdapterSetter().Set(adapter_name, callback);
546 } 546 }
547 547
548 void BlinkTestRunner::SetBluetoothManualChooser(bool enable) { 548 void BlinkTestRunner::SetBluetoothManualChooser(bool enable) {
549 Send(new ShellViewHostMsg_SetBluetoothManualChooser(routing_id(), enable)); 549 Send(new ShellViewHostMsg_SetBluetoothManualChooser(routing_id(), enable));
550 } 550 }
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 void BlinkTestRunner::ReportLeakDetectionResult( 1073 void BlinkTestRunner::ReportLeakDetectionResult(
1074 const LeakDetectionResult& report) { 1074 const LeakDetectionResult& report) {
1075 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1075 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1076 } 1076 }
1077 1077
1078 void BlinkTestRunner::OnDestruct() { 1078 void BlinkTestRunner::OnDestruct() {
1079 delete this; 1079 delete this;
1080 } 1080 }
1081 1081
1082 } // namespace content 1082 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | content/shell/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698