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