| 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/webkit_test_runner.h" | 5 #include "content/shell/renderer/webkit_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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 } // namespace | 206 } // namespace |
| 207 | 207 |
| 208 WebKitTestRunner::WebKitTestRunner(RenderView* render_view) | 208 WebKitTestRunner::WebKitTestRunner(RenderView* render_view) |
| 209 : RenderViewObserver(render_view), | 209 : RenderViewObserver(render_view), |
| 210 RenderViewObserverTracker<WebKitTestRunner>(render_view), | 210 RenderViewObserverTracker<WebKitTestRunner>(render_view), |
| 211 proxy_(NULL), | 211 proxy_(NULL), |
| 212 focused_view_(NULL), | 212 focused_view_(NULL), |
| 213 is_main_window_(false), | 213 is_main_window_(false), |
| 214 focus_on_next_commit_(false), | 214 focus_on_next_commit_(false), |
| 215 leak_detector_(new LeakDetector(this)) | 215 leak_detector_(new LeakDetector(this)) { |
| 216 { | |
| 217 UseMockMediaStreams(render_view); | |
| 218 } | 216 } |
| 219 | 217 |
| 220 WebKitTestRunner::~WebKitTestRunner() { | 218 WebKitTestRunner::~WebKitTestRunner() { |
| 221 } | 219 } |
| 222 | 220 |
| 223 // WebTestDelegate ----------------------------------------------------------- | 221 // WebTestDelegate ----------------------------------------------------------- |
| 224 | 222 |
| 225 void WebKitTestRunner::clearEditCommand() { | 223 void WebKitTestRunner::clearEditCommand() { |
| 226 render_view()->ClearEditCommands(); | 224 render_view()->ClearEditCommands(); |
| 227 } | 225 } |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 | 752 |
| 755 leak_detector_->TryLeakDetection(main_frame); | 753 leak_detector_->TryLeakDetection(main_frame); |
| 756 } | 754 } |
| 757 | 755 |
| 758 void WebKitTestRunner::ReportLeakDetectionResult( | 756 void WebKitTestRunner::ReportLeakDetectionResult( |
| 759 const LeakDetectionResult& report) { | 757 const LeakDetectionResult& report) { |
| 760 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 758 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 761 } | 759 } |
| 762 | 760 |
| 763 } // namespace content | 761 } // namespace content |
| OLD | NEW |