Chromium Code Reviews| 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 702 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) { | 702 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) { |
| 703 if (params.mimeType != "application/x-plugin-placeholder-test") | 703 if (params.mimeType != "application/x-plugin-placeholder-test") |
| 704 return nullptr; | 704 return nullptr; |
| 705 | 705 |
| 706 plugins::PluginPlaceholder* placeholder = | 706 plugins::PluginPlaceholder* placeholder = |
| 707 new plugins::PluginPlaceholder(render_view()->GetMainRenderFrame(), frame, | 707 new plugins::PluginPlaceholder(render_view()->GetMainRenderFrame(), frame, |
| 708 params, "<div>Test content</div>"); | 708 params, "<div>Test content</div>"); |
| 709 return placeholder->plugin(); | 709 return placeholder->plugin(); |
| 710 } | 710 } |
| 711 | 711 |
| 712 float BlinkTestRunner::GetDeviceScaleFactorForTest() const { | 712 float BlinkTestRunner::GetDeviceScaleFactorForTest() const { |
|
Charlie Reis
2016/07/06 17:23:37
We could probably drop the "ForTest" from here as
| |
| 713 return render_view()->GetDeviceScaleFactorForTest(); | 713 return render_view()->GetDeviceScaleFactor(); |
| 714 } | 714 } |
| 715 | 715 |
| 716 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) { | 716 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) { |
| 717 SchedulerRunIdleTasks(callback); | 717 SchedulerRunIdleTasks(callback); |
| 718 } | 718 } |
| 719 | 719 |
| 720 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack( | 720 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack( |
| 721 blink::WebMediaStream* stream) { | 721 blink::WebMediaStream* stream) { |
| 722 DCHECK(stream); | 722 DCHECK(stream); |
| 723 #if defined(ENABLE_WEBRTC) | 723 #if defined(ENABLE_WEBRTC) |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1013 void BlinkTestRunner::ReportLeakDetectionResult( | 1013 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1014 const LeakDetectionResult& report) { | 1014 const LeakDetectionResult& report) { |
| 1015 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1015 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1016 } | 1016 } |
| 1017 | 1017 |
| 1018 void BlinkTestRunner::OnDestruct() { | 1018 void BlinkTestRunner::OnDestruct() { |
| 1019 delete this; | 1019 delete this; |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 } // namespace content | 1022 } // namespace content |
| OLD | NEW |