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

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

Issue 302293003: MacViews: Extend TextInputClient protocol with support for editing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fixes for ben Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/input_method_chromeos_unittest.cc ('k') | ui/views/controls/prefix_selector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // TODO(ime): Have a clear spec whether the returned value is DIP or not. 159 // TODO(ime): Have a clear spec whether the returned value is DIP or not.
160 // http://crbug.com/360334 160 // http://crbug.com/360334
161 virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0; 161 virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0;
162 162
163 // Called when IME shows a candidate window. 163 // Called when IME shows a candidate window.
164 virtual void OnCandidateWindowShown() = 0; 164 virtual void OnCandidateWindowShown() = 0;
165 // Called when IME updates any appearance of the current candidate window. 165 // Called when IME updates any appearance of the current candidate window.
166 virtual void OnCandidateWindowUpdated() = 0; 166 virtual void OnCandidateWindowUpdated() = 0;
167 // Called when IME hides the candidate window. 167 // Called when IME hides the candidate window.
168 virtual void OnCandidateWindowHidden() = 0; 168 virtual void OnCandidateWindowHidden() = 0;
169
170 // Returns true if |command_id| is currently allowed to be executed.
171 virtual bool IsEditingCommandEnabled(int command_id) = 0;
172 // Execute the command specified by |command_id|.
173 virtual void ExecuteEditingCommand(int command_id) = 0;
169 }; 174 };
170 175
171 } // namespace ui 176 } // namespace ui
172 177
173 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 178 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_chromeos_unittest.cc ('k') | ui/views/controls/prefix_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698