| 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 stream); | 703 stream); |
| 704 #else | 704 #else |
| 705 return false; | 705 return false; |
| 706 #endif | 706 #endif |
| 707 } | 707 } |
| 708 | 708 |
| 709 // RenderViewObserver -------------------------------------------------------- | 709 // RenderViewObserver -------------------------------------------------------- |
| 710 | 710 |
| 711 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { | 711 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { |
| 712 WebTestingSupport::injectInternalsObject(frame); | 712 WebTestingSupport::injectInternalsObject(frame); |
| 713 LayoutTestRenderThreadObserver::GetInstance()->test_interfaces()->BindTo( | |
| 714 frame); | |
| 715 } | 713 } |
| 716 | 714 |
| 717 bool BlinkTestRunner::OnMessageReceived(const IPC::Message& message) { | 715 bool BlinkTestRunner::OnMessageReceived(const IPC::Message& message) { |
| 718 bool handled = true; | 716 bool handled = true; |
| 719 IPC_BEGIN_MESSAGE_MAP(BlinkTestRunner, message) | 717 IPC_BEGIN_MESSAGE_MAP(BlinkTestRunner, message) |
| 720 IPC_MESSAGE_HANDLER(ShellViewMsg_SessionHistory, OnSessionHistory) | 718 IPC_MESSAGE_HANDLER(ShellViewMsg_SessionHistory, OnSessionHistory) |
| 721 IPC_MESSAGE_HANDLER(ShellViewMsg_Reset, OnReset) | 719 IPC_MESSAGE_HANDLER(ShellViewMsg_Reset, OnReset) |
| 722 IPC_MESSAGE_HANDLER(ShellViewMsg_NotifyDone, OnNotifyDone) | 720 IPC_MESSAGE_HANDLER(ShellViewMsg_NotifyDone, OnNotifyDone) |
| 723 IPC_MESSAGE_HANDLER(ShellViewMsg_TryLeakDetection, OnTryLeakDetection) | 721 IPC_MESSAGE_HANDLER(ShellViewMsg_TryLeakDetection, OnTryLeakDetection) |
| 724 IPC_MESSAGE_HANDLER(ShellViewMsg_ReplyBluetoothManualChooserEvents, | 722 IPC_MESSAGE_HANDLER(ShellViewMsg_ReplyBluetoothManualChooserEvents, |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 get_bluetooth_events_callbacks_.pop_front(); | 958 get_bluetooth_events_callbacks_.pop_front(); |
| 961 callback.Run(events); | 959 callback.Run(events); |
| 962 } | 960 } |
| 963 | 961 |
| 964 void BlinkTestRunner::ReportLeakDetectionResult( | 962 void BlinkTestRunner::ReportLeakDetectionResult( |
| 965 const LeakDetectionResult& report) { | 963 const LeakDetectionResult& report) { |
| 966 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 964 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 967 } | 965 } |
| 968 | 966 |
| 969 } // namespace content | 967 } // namespace content |
| OLD | NEW |