| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <clocale> | 8 #include <clocale> |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 | 10 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 } | 452 } |
| 453 | 453 |
| 454 void BlinkTestRunner::ClearAllDatabases() { | 454 void BlinkTestRunner::ClearAllDatabases() { |
| 455 Send(new LayoutTestHostMsg_ClearAllDatabases(routing_id())); | 455 Send(new LayoutTestHostMsg_ClearAllDatabases(routing_id())); |
| 456 } | 456 } |
| 457 | 457 |
| 458 void BlinkTestRunner::SetDatabaseQuota(int quota) { | 458 void BlinkTestRunner::SetDatabaseQuota(int quota) { |
| 459 Send(new LayoutTestHostMsg_SetDatabaseQuota(routing_id(), quota)); | 459 Send(new LayoutTestHostMsg_SetDatabaseQuota(routing_id(), quota)); |
| 460 } | 460 } |
| 461 | 461 |
| 462 void BlinkTestRunner::SimulateWebNotificationClick(const std::string& title) { | 462 void BlinkTestRunner::SimulateWebNotificationClick(const std::string& title, |
| 463 Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title)); | 463 int action_index) { |
| 464 Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title, |
| 465 action_index)); |
| 464 } | 466 } |
| 465 | 467 |
| 466 void BlinkTestRunner::SetDeviceScaleFactor(float factor) { | 468 void BlinkTestRunner::SetDeviceScaleFactor(float factor) { |
| 467 content::SetDeviceScaleFactor(render_view(), factor); | 469 content::SetDeviceScaleFactor(render_view(), factor); |
| 468 } | 470 } |
| 469 | 471 |
| 470 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) { | 472 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) { |
| 471 content::SetDeviceColorProfile(render_view(), name); | 473 content::SetDeviceColorProfile(render_view(), name); |
| 472 } | 474 } |
| 473 | 475 |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 | 900 |
| 899 leak_detector_->TryLeakDetection(main_frame); | 901 leak_detector_->TryLeakDetection(main_frame); |
| 900 } | 902 } |
| 901 | 903 |
| 902 void BlinkTestRunner::ReportLeakDetectionResult( | 904 void BlinkTestRunner::ReportLeakDetectionResult( |
| 903 const LeakDetectionResult& report) { | 905 const LeakDetectionResult& report) { |
| 904 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 906 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 905 } | 907 } |
| 906 | 908 |
| 907 } // namespace content | 909 } // namespace content |
| OLD | NEW |