| 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/webkit_test_runner.h" | 5 #include "content/shell/renderer/layout_test/webkit_test_runner.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <clocale> | 8 #include <clocale> |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 | 10 |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 } | 437 } |
| 438 | 438 |
| 439 void WebKitTestRunner::SetDeviceScaleFactor(float factor) { | 439 void WebKitTestRunner::SetDeviceScaleFactor(float factor) { |
| 440 content::SetDeviceScaleFactor(render_view(), factor); | 440 content::SetDeviceScaleFactor(render_view(), factor); |
| 441 } | 441 } |
| 442 | 442 |
| 443 void WebKitTestRunner::SetDeviceColorProfile(const std::string& name) { | 443 void WebKitTestRunner::SetDeviceColorProfile(const std::string& name) { |
| 444 content::SetDeviceColorProfile(render_view(), name); | 444 content::SetDeviceColorProfile(render_view(), name); |
| 445 } | 445 } |
| 446 | 446 |
| 447 void WebKitTestRunner::SetBluetoothMockDataSet(const std::string& name) { |
| 448 content::SetBluetoothMockDataSetForTesting(name); |
| 449 } |
| 450 |
| 447 void WebKitTestRunner::SetFocus(WebTestProxyBase* proxy, bool focus) { | 451 void WebKitTestRunner::SetFocus(WebTestProxyBase* proxy, bool focus) { |
| 448 ProxyToRenderViewVisitor visitor(proxy); | 452 ProxyToRenderViewVisitor visitor(proxy); |
| 449 RenderView::ForEach(&visitor); | 453 RenderView::ForEach(&visitor); |
| 450 if (!visitor.render_view()) { | 454 if (!visitor.render_view()) { |
| 451 NOTREACHED(); | 455 NOTREACHED(); |
| 452 return; | 456 return; |
| 453 } | 457 } |
| 454 | 458 |
| 455 // Check whether the focused view was closed meanwhile. | 459 // Check whether the focused view was closed meanwhile. |
| 456 if (!WebKitTestRunner::Get(focused_view_)) | 460 if (!WebKitTestRunner::Get(focused_view_)) |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 | 758 |
| 755 leak_detector_->TryLeakDetection(main_frame); | 759 leak_detector_->TryLeakDetection(main_frame); |
| 756 } | 760 } |
| 757 | 761 |
| 758 void WebKitTestRunner::ReportLeakDetectionResult( | 762 void WebKitTestRunner::ReportLeakDetectionResult( |
| 759 const LeakDetectionResult& report) { | 763 const LeakDetectionResult& report) { |
| 760 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 764 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 761 } | 765 } |
| 762 | 766 |
| 763 } // namespace content | 767 } // namespace content |
| OLD | NEW |