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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 } | 738 } |
739 | 739 |
740 float BlinkTestRunner::GetDeviceScaleFactor() const { | 740 float BlinkTestRunner::GetDeviceScaleFactor() const { |
741 return render_view()->GetDeviceScaleFactor(); | 741 return render_view()->GetDeviceScaleFactor(); |
742 } | 742 } |
743 | 743 |
744 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) { | 744 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) { |
745 SchedulerRunIdleTasks(callback); | 745 SchedulerRunIdleTasks(callback); |
746 } | 746 } |
747 | 747 |
| 748 void BlinkTestRunner::ForceTextInputStateUpdate(WebFrame* frame) { |
| 749 ForceTextInputStateUpdateForRenderFrame(RenderFrame::FromWebFrame(frame)); |
| 750 } |
| 751 |
748 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack( | 752 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack( |
749 blink::WebMediaStream* stream) { | 753 blink::WebMediaStream* stream) { |
750 DCHECK(stream); | 754 DCHECK(stream); |
751 #if defined(ENABLE_WEBRTC) | 755 #if defined(ENABLE_WEBRTC) |
752 return AddVideoTrackToMediaStream(base::MakeUnique<MockVideoCapturerSource>(), | 756 return AddVideoTrackToMediaStream(base::MakeUnique<MockVideoCapturerSource>(), |
753 false, // is_remote | 757 false, // is_remote |
754 false, // is_readonly | 758 false, // is_readonly |
755 stream); | 759 stream); |
756 #else | 760 #else |
757 return false; | 761 return false; |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 void BlinkTestRunner::ReportLeakDetectionResult( | 1032 void BlinkTestRunner::ReportLeakDetectionResult( |
1029 const LeakDetectionResult& report) { | 1033 const LeakDetectionResult& report) { |
1030 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1034 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
1031 } | 1035 } |
1032 | 1036 |
1033 void BlinkTestRunner::OnDestruct() { | 1037 void BlinkTestRunner::OnDestruct() { |
1034 delete this; | 1038 delete this; |
1035 } | 1039 } |
1036 | 1040 |
1037 } // namespace content | 1041 } // namespace content |
OLD | NEW |