OLD | NEW |
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 Loading... |
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 { | 286 { |
292 m_webView->attachCompositorAnimationTimeline(compositorTimeline); | 287 m_webView->attachCompositorAnimationTimeline(compositorTimeline); |
293 } | 288 } |
294 | 289 |
295 void WebViewFrameWidget::detachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) | 290 void WebViewFrameWidget::detachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) |
296 { | 291 { |
297 m_webView->detachCompositorAnimationTimeline(compositorTimeline); | 292 m_webView->detachCompositorAnimationTimeline(compositorTimeline); |
298 } | 293 } |
299 | 294 |
300 } // namespace blink | 295 } // namespace blink |
OLD | NEW |