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

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

Issue 2024003002: Add GetTextDirection to ui::TextInputClient API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ui/base/ime/dummy_text_input_client.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Input context information ------------------------------------------------- 62 // Input context information -------------------------------------------------
63 63
64 // Returns current text input type. It could be changed and even becomes 64 // Returns current text input type. It could be changed and even becomes
65 // TEXT_INPUT_TYPE_NONE at runtime. 65 // TEXT_INPUT_TYPE_NONE at runtime.
66 virtual ui::TextInputType GetTextInputType() const = 0; 66 virtual ui::TextInputType GetTextInputType() const = 0;
67 67
68 // Returns current text input mode. It could be changed and even becomes 68 // Returns current text input mode. It could be changed and even becomes
69 // TEXT_INPUT_MODE_DEFAULT at runtime. 69 // TEXT_INPUT_MODE_DEFAULT at runtime.
70 virtual ui::TextInputMode GetTextInputMode() const = 0; 70 virtual ui::TextInputMode GetTextInputMode() const = 0;
71 71
72 // Returns the current text direction.
73 virtual base::i18n::TextDirection GetTextDirection() const = 0;
74
72 // Returns the current text input flags, which is a bit map of 75 // Returns the current text input flags, which is a bit map of
73 // WebTextInputType defined in blink. This is valid only for web input fileds; 76 // WebTextInputType defined in blink. This is valid only for web input fileds;
74 // it will return TEXT_INPUT_FLAG_NONE for native input fields. 77 // it will return TEXT_INPUT_FLAG_NONE for native input fields.
75 virtual int GetTextInputFlags() const = 0; 78 virtual int GetTextInputFlags() const = 0;
76 79
77 // Returns if the client supports inline composition currently. 80 // Returns if the client supports inline composition currently.
78 virtual bool CanComposeInline() const = 0; 81 virtual bool CanComposeInline() const = 0;
79 82
80 // Returns current caret (insertion point) bounds in the universal screen 83 // Returns current caret (insertion point) bounds in the universal screen
81 // coordinates. If there is selection, then the selection bounds will be 84 // coordinates. If there is selection, then the selection bounds will be
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // This allows a TextInputClient to be informed of a platform-independent edit 176 // This allows a TextInputClient to be informed of a platform-independent edit
174 // command that has been derived from the key event currently being dispatched 177 // command that has been derived from the key event currently being dispatched
175 // (but not yet sent to the TextInputClient). The edit command will take into 178 // (but not yet sent to the TextInputClient). The edit command will take into
176 // account any OS-specific, or user-specified, keybindings that may be set up. 179 // account any OS-specific, or user-specified, keybindings that may be set up.
177 virtual void SetEditCommandForNextKeyEvent(int command_id) = 0; 180 virtual void SetEditCommandForNextKeyEvent(int command_id) = 0;
178 }; 181 };
179 182
180 } // namespace ui 183 } // namespace ui
181 184
182 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 185 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/base/ime/dummy_text_input_client.cc ('k') | ui/views/controls/prefix_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698