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

Side by Side Diff: third_party/WebKit/Source/core/editing/InputMethodController.h

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Fixed WebViewTest build issues after restructure. Created 3 years, 7 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const PlainTextRange&, 97 const PlainTextRange&,
98 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); 98 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping);
99 void extendSelectionAndDelete(int before, int after); 99 void extendSelectionAndDelete(int before, int after);
100 PlainTextRange createRangeForSelection(int start, 100 PlainTextRange createRangeForSelection(int start,
101 int end, 101 int end,
102 size_t textLength) const; 102 size_t textLength) const;
103 void deleteSurroundingText(int before, int after); 103 void deleteSurroundingText(int before, int after);
104 void deleteSurroundingTextInCodePoints(int before, int after); 104 void deleteSurroundingTextInCodePoints(int before, int after);
105 WebTextInputInfo textInputInfo() const; 105 WebTextInputInfo textInputInfo() const;
106 WebTextInputType textInputType() const; 106 WebTextInputType textInputType() const;
107 Element* nextFocusableElementInForm(Element*, WebFocusType) const;
107 108
108 // Call this when we will change focus. 109 // Call this when we will change focus.
109 void willChangeFocus(); 110 void willChangeFocus();
110 111
111 private: 112 private:
112 Document& document() const; 113 Document& document() const;
113 bool isAvailable() const; 114 bool isAvailable() const;
114 115
115 Member<LocalFrame> m_frame; 116 Member<LocalFrame> m_frame;
116 Member<Range> m_compositionRange; 117 Member<Range> m_compositionRange;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const Vector<CompositionUnderline>& underlines); 155 const Vector<CompositionUnderline>& underlines);
155 156
156 // Returns true if moved caret successfully. 157 // Returns true if moved caret successfully.
157 bool moveCaret(int newCaretPosition); 158 bool moveCaret(int newCaretPosition);
158 159
159 PlainTextRange createSelectionRangeForSetComposition(int selectionStart, 160 PlainTextRange createSelectionRangeForSetComposition(int selectionStart,
160 int selectionEnd, 161 int selectionEnd,
161 size_t textLength) const; 162 size_t textLength) const;
162 int textInputFlags() const; 163 int textInputFlags() const;
163 WebTextInputMode inputModeOfFocusedElement() const; 164 WebTextInputMode inputModeOfFocusedElement() const;
165 bool isListeningToKeyboardEvents(Element*) const;
164 166
165 // Implements |SynchronousMutationObserver|. 167 // Implements |SynchronousMutationObserver|.
166 void contextDestroyed(Document*) final; 168 void contextDestroyed(Document*) final;
167 }; 169 };
168 170
169 } // namespace blink 171 } // namespace blink
170 172
171 #endif // InputMethodController_h 173 #endif // InputMethodController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698