| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 } | 447 } |
| 448 | 448 |
| 449 void WebKitTestRunner::SetDeviceColorProfile(const std::string& name) { | 449 void WebKitTestRunner::SetDeviceColorProfile(const std::string& name) { |
| 450 content::SetDeviceColorProfile(render_view(), name); | 450 content::SetDeviceColorProfile(render_view(), name); |
| 451 } | 451 } |
| 452 | 452 |
| 453 void WebKitTestRunner::SetBluetoothMockDataSet(const std::string& name) { | 453 void WebKitTestRunner::SetBluetoothMockDataSet(const std::string& name) { |
| 454 content::SetBluetoothMockDataSetForTesting(name); | 454 content::SetBluetoothMockDataSetForTesting(name); |
| 455 } | 455 } |
| 456 | 456 |
| 457 void WebKitTestRunner::SetGeofencingMockProvider(bool service_available) { |
| 458 content::SetGeofencingMockProvider(service_available); |
| 459 } |
| 460 |
| 461 void WebKitTestRunner::ClearGeofencingMockProvider() { |
| 462 content::ClearGeofencingMockProvider(); |
| 463 } |
| 464 |
| 465 void WebKitTestRunner::SetGeofencingMockPosition(double latitude, |
| 466 double longitude) { |
| 467 content::SetGeofencingMockPosition(latitude, longitude); |
| 468 } |
| 469 |
| 457 void WebKitTestRunner::SetFocus(WebTestProxyBase* proxy, bool focus) { | 470 void WebKitTestRunner::SetFocus(WebTestProxyBase* proxy, bool focus) { |
| 458 ProxyToRenderViewVisitor visitor(proxy); | 471 ProxyToRenderViewVisitor visitor(proxy); |
| 459 RenderView::ForEach(&visitor); | 472 RenderView::ForEach(&visitor); |
| 460 if (!visitor.render_view()) { | 473 if (!visitor.render_view()) { |
| 461 NOTREACHED(); | 474 NOTREACHED(); |
| 462 return; | 475 return; |
| 463 } | 476 } |
| 464 | 477 |
| 465 // Check whether the focused view was closed meanwhile. | 478 // Check whether the focused view was closed meanwhile. |
| 466 if (!WebKitTestRunner::Get(focused_view_)) | 479 if (!WebKitTestRunner::Get(focused_view_)) |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 | 777 |
| 765 leak_detector_->TryLeakDetection(main_frame); | 778 leak_detector_->TryLeakDetection(main_frame); |
| 766 } | 779 } |
| 767 | 780 |
| 768 void WebKitTestRunner::ReportLeakDetectionResult( | 781 void WebKitTestRunner::ReportLeakDetectionResult( |
| 769 const LeakDetectionResult& report) { | 782 const LeakDetectionResult& report) { |
| 770 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 783 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 771 } | 784 } |
| 772 | 785 |
| 773 } // namespace content | 786 } // namespace content |
| OLD | NEW |