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 #include <algorithm> | 8 #include <algorithm> |
9 #include <clocale> | 9 #include <clocale> |
10 #include <cmath> | 10 #include <cmath> |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 void BlinkTestRunner::SetDatabaseQuota(int quota) { | 510 void BlinkTestRunner::SetDatabaseQuota(int quota) { |
511 Send(new LayoutTestHostMsg_SetDatabaseQuota(routing_id(), quota)); | 511 Send(new LayoutTestHostMsg_SetDatabaseQuota(routing_id(), quota)); |
512 } | 512 } |
513 | 513 |
514 void BlinkTestRunner::SimulateWebNotificationClick(const std::string& title, | 514 void BlinkTestRunner::SimulateWebNotificationClick(const std::string& title, |
515 int action_index) { | 515 int action_index) { |
516 Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title, | 516 Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title, |
517 action_index)); | 517 action_index)); |
518 } | 518 } |
519 | 519 |
| 520 void BlinkTestRunner::SimulateWebNotificationClose(const std::string& title, |
| 521 bool by_user) { |
| 522 Send(new LayoutTestHostMsg_SimulateWebNotificationClose(routing_id(), title, |
| 523 by_user)); |
| 524 } |
| 525 |
520 void BlinkTestRunner::SetDeviceScaleFactor(float factor) { | 526 void BlinkTestRunner::SetDeviceScaleFactor(float factor) { |
521 content::SetDeviceScaleFactor(render_view(), factor); | 527 content::SetDeviceScaleFactor(render_view(), factor); |
522 } | 528 } |
523 | 529 |
524 void BlinkTestRunner::EnableUseZoomForDSF() { | 530 void BlinkTestRunner::EnableUseZoomForDSF() { |
525 base::CommandLine::ForCurrentProcess()-> | 531 base::CommandLine::ForCurrentProcess()-> |
526 AppendSwitch(switches::kEnableUseZoomForDSF); | 532 AppendSwitch(switches::kEnableUseZoomForDSF); |
527 } | 533 } |
528 | 534 |
529 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) { | 535 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) { |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 get_bluetooth_events_callbacks_.pop_front(); | 1052 get_bluetooth_events_callbacks_.pop_front(); |
1047 callback.Run(events); | 1053 callback.Run(events); |
1048 } | 1054 } |
1049 | 1055 |
1050 void BlinkTestRunner::ReportLeakDetectionResult( | 1056 void BlinkTestRunner::ReportLeakDetectionResult( |
1051 const LeakDetectionResult& report) { | 1057 const LeakDetectionResult& report) { |
1052 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1058 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
1053 } | 1059 } |
1054 | 1060 |
1055 } // namespace content | 1061 } // namespace content |
OLD | NEW |