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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 Send(new ShellViewHostMsg_GetBluetoothManualChooserEvents(routing_id())); | 468 Send(new ShellViewHostMsg_GetBluetoothManualChooserEvents(routing_id())); |
469 } | 469 } |
470 | 470 |
471 void BlinkTestRunner::SendBluetoothManualChooserEvent( | 471 void BlinkTestRunner::SendBluetoothManualChooserEvent( |
472 const std::string& event, | 472 const std::string& event, |
473 const std::string& argument) { | 473 const std::string& argument) { |
474 Send(new ShellViewHostMsg_SendBluetoothManualChooserEvent(routing_id(), event, | 474 Send(new ShellViewHostMsg_SendBluetoothManualChooserEvent(routing_id(), event, |
475 argument)); | 475 argument)); |
476 } | 476 } |
477 | 477 |
478 void BlinkTestRunner::SetGeofencingMockProvider(bool service_available) { | |
479 content::SetGeofencingMockProvider(service_available); | |
480 } | |
481 | |
482 void BlinkTestRunner::ClearGeofencingMockProvider() { | |
483 content::ClearGeofencingMockProvider(); | |
484 } | |
485 | |
486 void BlinkTestRunner::SetGeofencingMockPosition(double latitude, | |
487 double longitude) { | |
488 content::SetGeofencingMockPosition(latitude, longitude); | |
489 } | |
490 | |
491 void BlinkTestRunner::SetFocus(blink::WebView* web_view, bool focus) { | 478 void BlinkTestRunner::SetFocus(blink::WebView* web_view, bool focus) { |
492 RenderView* render_view = RenderView::FromWebView(web_view); | 479 RenderView* render_view = RenderView::FromWebView(web_view); |
493 if (render_view) // Check whether |web_view| has been already closed. | 480 if (render_view) // Check whether |web_view| has been already closed. |
494 SetFocusAndActivate(render_view, focus); | 481 SetFocusAndActivate(render_view, focus); |
495 } | 482 } |
496 | 483 |
497 void BlinkTestRunner::SetAcceptAllCookies(bool accept) { | 484 void BlinkTestRunner::SetAcceptAllCookies(bool accept) { |
498 Send(new LayoutTestHostMsg_AcceptAllCookies(routing_id(), accept)); | 485 Send(new LayoutTestHostMsg_AcceptAllCookies(routing_id(), accept)); |
499 } | 486 } |
500 | 487 |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 get_bluetooth_events_callbacks_.pop_front(); | 953 get_bluetooth_events_callbacks_.pop_front(); |
967 callback.Run(events); | 954 callback.Run(events); |
968 } | 955 } |
969 | 956 |
970 void BlinkTestRunner::ReportLeakDetectionResult( | 957 void BlinkTestRunner::ReportLeakDetectionResult( |
971 const LeakDetectionResult& report) { | 958 const LeakDetectionResult& report) { |
972 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 959 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
973 } | 960 } |
974 | 961 |
975 } // namespace content | 962 } // namespace content |
OLD | NEW |