Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698