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

Side by Side Diff: ui/base/ime/text_input_client.h

Issue 80583002: [FYI] All-in-one OnCandidateWindow{Show,Update,Hide} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 5 #ifndef UI_BASE_IME_TEXT_INPUT_CLIENT_H_
6 #define UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 6 #define UI_BASE_IME_TEXT_INPUT_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Deletes the current selection plus the specified number of characters 140 // Deletes the current selection plus the specified number of characters
141 // before and after the selection or caret. This function should be used 141 // before and after the selection or caret. This function should be used
142 // instead of calling DeleteRange with GetSelectionRange, because 142 // instead of calling DeleteRange with GetSelectionRange, because
143 // GetSelectionRange may not be the latest value due to asynchronous of IPC 143 // GetSelectionRange may not be the latest value due to asynchronous of IPC
144 // between browser and renderer. 144 // between browser and renderer.
145 virtual void ExtendSelectionAndDelete(size_t before, size_t after) = 0; 145 virtual void ExtendSelectionAndDelete(size_t before, size_t after) = 0;
146 146
147 // Ensure the caret is within |rect|. |rect| is in screen coordinates and 147 // Ensure the caret is within |rect|. |rect| is in screen coordinates and
148 // may extend beyond the bounds of this TextInputClient. 148 // may extend beyond the bounds of this TextInputClient.
149 virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0; 149 virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0;
150
151 // Called when IME shows a candidate window for the ongoing composition.
152 virtual void OnCandidateWindowShow() = 0;
153 // Called when IME updates any appearance of the current candidate window.
154 virtual void OnCandidateWindowUpdate() = 0;
155 // Called when IME hides the candidate window.
156 virtual void OnCandidateWindowHide() = 0;
150 }; 157 };
151 158
152 } // namespace ui 159 } // namespace ui
153 160
154 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 161 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698