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

Side by Side Diff: third_party/WebKit/Source/web/WebViewFrameWidget.cpp

Issue 1999423002: tyrbot test for commitText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetHasCompositionTextToTrue Created 4 years, 3 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #include "web/WebViewFrameWidget.h" 5 #include "web/WebViewFrameWidget.h"
6 6
7 #include "web/WebLocalFrameImpl.h" 7 #include "web/WebLocalFrameImpl.h"
8 #include "web/WebViewImpl.h" 8 #include "web/WebViewImpl.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 bool WebViewFrameWidget::setComposition( 131 bool WebViewFrameWidget::setComposition(
132 const WebString& text, 132 const WebString& text,
133 const WebVector<WebCompositionUnderline>& underlines, 133 const WebVector<WebCompositionUnderline>& underlines,
134 int selectionStart, 134 int selectionStart,
135 int selectionEnd) 135 int selectionEnd)
136 { 136 {
137 return m_webView->setComposition(text, underlines, selectionStart, selection End); 137 return m_webView->setComposition(text, underlines, selectionStart, selection End);
138 } 138 }
139 139
140 bool WebViewFrameWidget::confirmComposition() 140 bool WebViewFrameWidget::finishComposingText(ConfirmCompositionBehavior selectio nBehavior)
141 { 141 {
142 return m_webView->confirmComposition(); 142 return m_webView->finishComposingText(selectionBehavior);
143 } 143 }
144 144
145 bool WebViewFrameWidget::confirmComposition(ConfirmCompositionBehavior selection Behavior) 145 bool WebViewFrameWidget::commitText(const WebString& text, int relativeCaretPosi tion)
146 { 146 {
147 return m_webView->confirmComposition(selectionBehavior); 147 return m_webView->commitText(text, relativeCaretPosition);
148 }
149
150 bool WebViewFrameWidget::confirmComposition(const WebString& text)
151 {
152 return m_webView->confirmComposition(text);
153 } 148 }
154 149
155 WebRange WebViewFrameWidget::compositionRange() 150 WebRange WebViewFrameWidget::compositionRange()
156 { 151 {
157 return m_webView->compositionRange(); 152 return m_webView->compositionRange();
158 } 153 }
159 154
160 WebTextInputInfo WebViewFrameWidget::textInputInfo() 155 WebTextInputInfo WebViewFrameWidget::textInputInfo()
161 { 156 {
162 return m_webView->textInputInfo(); 157 return m_webView->textInputInfo();
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 { 276 {
282 m_webView->attachCompositorAnimationTimeline(compositorTimeline); 277 m_webView->attachCompositorAnimationTimeline(compositorTimeline);
283 } 278 }
284 279
285 void WebViewFrameWidget::detachCompositorAnimationTimeline(CompositorAnimationTi meline* compositorTimeline) 280 void WebViewFrameWidget::detachCompositorAnimationTimeline(CompositorAnimationTi meline* compositorTimeline)
286 { 281 {
287 m_webView->detachCompositorAnimationTimeline(compositorTimeline); 282 m_webView->detachCompositorAnimationTimeline(compositorTimeline);
288 } 283 }
289 284
290 } // namespace blink 285 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewFrameWidget.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698