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

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

Issue 2646963002: Stop dismissing selection handles when selection is kept (Closed)
Patch Set: rebased on amaralp@'s CLs Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/InputMethodController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 explicit InputMethodController(LocalFrame&); 119 explicit InputMethodController(LocalFrame&);
120 120
121 Editor& editor() const; 121 Editor& editor() const;
122 LocalFrame& frame() const { 122 LocalFrame& frame() const {
123 DCHECK(m_frame); 123 DCHECK(m_frame);
124 return *m_frame; 124 return *m_frame;
125 } 125 }
126 126
127 String composingText() const; 127 String composingText() const;
128 void selectComposition() const; 128 void selectComposition() const;
129
130 EphemeralRange ephemeralRangeForOffsets(const PlainTextRange&) const;
131
132 // Returns true if selection offsets were successfully set.
129 bool setSelectionOffsets( 133 bool setSelectionOffsets(
130 const PlainTextRange&, 134 const PlainTextRange&,
131 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); 135 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping);
132 136
133 void addCompositionUnderlines(const Vector<CompositionUnderline>& underlines, 137 void addCompositionUnderlines(const Vector<CompositionUnderline>& underlines,
134 ContainerNode* rootEditableElement, 138 ContainerNode* rootEditableElement,
135 unsigned offset); 139 unsigned offset);
136 140
137 bool insertText(const String&); 141 bool insertText(const String&);
138 bool insertTextAndMoveCaret(const String&, 142 bool insertTextAndMoveCaret(const String&,
(...skipping 19 matching lines...) Expand all
158 int textInputFlags() const; 162 int textInputFlags() const;
159 WebTextInputMode inputModeOfFocusedElement() const; 163 WebTextInputMode inputModeOfFocusedElement() const;
160 164
161 // Implements |SynchronousMutationObserver|. 165 // Implements |SynchronousMutationObserver|.
162 void contextDestroyed(Document*) final; 166 void contextDestroyed(Document*) final;
163 }; 167 };
164 168
165 } // namespace blink 169 } // namespace blink
166 170
167 #endif // InputMethodController_h 171 #endif // InputMethodController_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/InputMethodController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698