| 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 Send(new ShellViewHostMsg_GetBluetoothManualChooserEvents(routing_id())); | 542 Send(new ShellViewHostMsg_GetBluetoothManualChooserEvents(routing_id())); |
| 543 } | 543 } |
| 544 | 544 |
| 545 void BlinkTestRunner::SendBluetoothManualChooserEvent( | 545 void BlinkTestRunner::SendBluetoothManualChooserEvent( |
| 546 const std::string& event, | 546 const std::string& event, |
| 547 const std::string& argument) { | 547 const std::string& argument) { |
| 548 Send(new ShellViewHostMsg_SendBluetoothManualChooserEvent(routing_id(), event, | 548 Send(new ShellViewHostMsg_SendBluetoothManualChooserEvent(routing_id(), event, |
| 549 argument)); | 549 argument)); |
| 550 } | 550 } |
| 551 | 551 |
| 552 void BlinkTestRunner::ResetBluetoothAllowedDevicesMap() { |
| 553 Send(new ShellViewHostMsg_ResetBluetoothAllowedDevicesMap(routing_id())); |
| 554 } |
| 555 |
| 552 void BlinkTestRunner::SetFocus(blink::WebView* web_view, bool focus) { | 556 void BlinkTestRunner::SetFocus(blink::WebView* web_view, bool focus) { |
| 553 RenderView* render_view = RenderView::FromWebView(web_view); | 557 RenderView* render_view = RenderView::FromWebView(web_view); |
| 554 if (render_view) // Check whether |web_view| has been already closed. | 558 if (render_view) // Check whether |web_view| has been already closed. |
| 555 SetFocusAndActivate(render_view, focus); | 559 SetFocusAndActivate(render_view, focus); |
| 556 } | 560 } |
| 557 | 561 |
| 558 void BlinkTestRunner::SetBlockThirdPartyCookies(bool block) { | 562 void BlinkTestRunner::SetBlockThirdPartyCookies(bool block) { |
| 559 Send(new LayoutTestHostMsg_BlockThirdPartyCookies(routing_id(), block)); | 563 Send(new LayoutTestHostMsg_BlockThirdPartyCookies(routing_id(), block)); |
| 560 } | 564 } |
| 561 | 565 |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 void BlinkTestRunner::ReportLeakDetectionResult( | 1039 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1036 const LeakDetectionResult& report) { | 1040 const LeakDetectionResult& report) { |
| 1037 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1041 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1038 } | 1042 } |
| 1039 | 1043 |
| 1040 void BlinkTestRunner::OnDestruct() { | 1044 void BlinkTestRunner::OnDestruct() { |
| 1041 delete this; | 1045 delete this; |
| 1042 } | 1046 } |
| 1043 | 1047 |
| 1044 } // namespace content | 1048 } // namespace content |
| OLD | NEW |