| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |