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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Explicitly asking for TextInputState updates 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698