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

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

Issue 2561543003: Move call path for resetInputMethod (Closed)
Patch Set: rebase Created 4 years 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const PlainTextRange&, 96 const PlainTextRange&,
97 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); 97 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping);
98 void extendSelectionAndDelete(int before, int after); 98 void extendSelectionAndDelete(int before, int after);
99 PlainTextRange createRangeForSelection(int start, 99 PlainTextRange createRangeForSelection(int start,
100 int end, 100 int end,
101 size_t textLength) const; 101 size_t textLength) const;
102 void deleteSurroundingText(int before, int after); 102 void deleteSurroundingText(int before, int after);
103 WebTextInputInfo textInputInfo() const; 103 WebTextInputInfo textInputInfo() const;
104 WebTextInputType textInputType() const; 104 WebTextInputType textInputType() const;
105 105
106 // Call this when we will change focus.
107 void willChangeFocus();
108
106 private: 109 private:
107 Document& document() const; 110 Document& document() const;
108 bool isAvailable() const; 111 bool isAvailable() const;
109 112
110 Member<LocalFrame> m_frame; 113 Member<LocalFrame> m_frame;
111 Member<Range> m_compositionRange; 114 Member<Range> m_compositionRange;
112 bool m_isDirty; 115 bool m_isDirty;
113 bool m_hasComposition; 116 bool m_hasComposition;
114 117
115 explicit InputMethodController(LocalFrame&); 118 explicit InputMethodController(LocalFrame&);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 int textInputFlags() const; 152 int textInputFlags() const;
150 WebTextInputMode inputModeOfFocusedElement() const; 153 WebTextInputMode inputModeOfFocusedElement() const;
151 154
152 // Implements |SynchronousMutationObserver|. 155 // Implements |SynchronousMutationObserver|.
153 void contextDestroyed() final; 156 void contextDestroyed() final;
154 }; 157 };
155 158
156 } // namespace blink 159 } // namespace blink
157 160
158 #endif // InputMethodController_h 161 #endif // InputMethodController_h
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/core/editing/InputMethodController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698