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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.h

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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const WebFloatSize& mainFrameDelta, 91 const WebFloatSize& mainFrameDelta,
92 const WebFloatSize& elasticOverscrollDelta, 92 const WebFloatSize& elasticOverscrollDelta,
93 float pageScaleDelta, 93 float pageScaleDelta,
94 float topControlsDelta) override; 94 float topControlsDelta) override;
95 void mouseCaptureLost() override; 95 void mouseCaptureLost() override;
96 void setFocus(bool enable) override; 96 void setFocus(bool enable) override;
97 bool setComposition( 97 bool setComposition(
98 const WebString& text, 98 const WebString& text,
99 const WebVector<WebCompositionUnderline>& underlines, 99 const WebVector<WebCompositionUnderline>& underlines,
100 int selectionStart, int selectionEnd) override; 100 int selectionStart, int selectionEnd) override;
101 bool confirmComposition() override; 101 bool commitText(const WebString& text, int relativeCaretPosition) override;
102 bool confirmComposition(ConfirmCompositionBehavior selectionBehavior) overri de; 102 bool finishComposingText(ConfirmCompositionBehavior selectionBehavior) overr ide;
103 bool confirmComposition(const WebString& text) override;
104 WebRange compositionRange() override; 103 WebRange compositionRange() override;
105 WebTextInputInfo textInputInfo() override; 104 WebTextInputInfo textInputInfo() override;
106 WebTextInputType textInputType() override; 105 WebTextInputType textInputType() override;
107 WebColor backgroundColor() const override; 106 WebColor backgroundColor() const override;
108 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; 107 bool selectionBounds(WebRect& anchor, WebRect& focus) const override;
109 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const override; 108 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const override;
110 bool isSelectionAnchorFirst() const override; 109 bool isSelectionAnchorFirst() const override;
111 WebRange caretOrSelectionRange() override; 110 WebRange caretOrSelectionRange() override;
112 void setTextDirection(WebTextDirection) override; 111 void setTextDirection(WebTextDirection) override;
113 bool isAcceleratedCompositingActive() const override; 112 bool isAcceleratedCompositingActive() const override;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; 198 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override;
200 199
201 WebViewImpl* view() const { return m_localRoot->viewImpl(); } 200 WebViewImpl* view() const { return m_localRoot->viewImpl(); }
202 201
203 // This method returns the focused frame belonging to this WebWidget, that 202 // This method returns the focused frame belonging to this WebWidget, that
204 // is, a focused frame with the same local root as the one corresponding 203 // is, a focused frame with the same local root as the one corresponding
205 // to this widget. It will return nullptr if no frame is focused or, the 204 // to this widget. It will return nullptr if no frame is focused or, the
206 // focused frame has a different local root. 205 // focused frame has a different local root.
207 LocalFrame* focusedLocalFrameInWidget() const; 206 LocalFrame* focusedLocalFrameInWidget() const;
208 207
209 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior se lectionBehavior) const;
210
211 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const; 208 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const;
212 209
213 WebString inputModeOfFocusedElement() const; 210 WebString inputModeOfFocusedElement() const;
214 211
215 int textInputFlags() const; 212 int textInputFlags() const;
216 213
217 LocalFrame* focusedLocalFrameAvailableForIme() const; 214 LocalFrame* focusedLocalFrameAvailableForIme() const;
218 215
219 WebWidgetClient* m_client; 216 WebWidgetClient* m_client;
220 217
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 WebColor m_baseBackgroundColor; 251 WebColor m_baseBackgroundColor;
255 252
256 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; 253 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive;
257 }; 254 };
258 255
259 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub frame(), widget.forSubframe()); 256 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub frame(), widget.forSubframe());
260 257
261 } // namespace blink 258 } // namespace blink
262 259
263 #endif 260 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698