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

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

Issue 826713002: [ChromeOS] Show autofill popup after keyboard (if any) is shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Returns current text input type. It could be changed and even becomes 63 // Returns current text input type. It could be changed and even becomes
64 // TEXT_INPUT_TYPE_NONE at runtime. 64 // TEXT_INPUT_TYPE_NONE at runtime.
65 virtual ui::TextInputType GetTextInputType() const = 0; 65 virtual ui::TextInputType GetTextInputType() const = 0;
66 66
67 // Returns current text input mode. It could be changed and even becomes 67 // Returns current text input mode. It could be changed and even becomes
68 // TEXT_INPUT_MODE_DEFAULT at runtime. 68 // TEXT_INPUT_MODE_DEFAULT at runtime.
69 virtual ui::TextInputMode GetTextInputMode() const = 0; 69 virtual ui::TextInputMode GetTextInputMode() const = 0;
70 70
71 // Returns the current text input flags, which is a bit map of 71 // Returns the current text input flags, which is a bit map of
72 // WebTextInputType defined in blink. This is valid only for web input fileds; 72 // WebTextInputType defined in blink. This is valid only for web input fields;
73 // it will return TEXT_INPUT_FLAG_NONE for native input fields. 73 // it will return TEXT_INPUT_FLAG_NONE for native input fields.
74 virtual int GetTextInputFlags() const = 0; 74 virtual int GetTextInputFlags() const = 0;
75 75
76 // Returns if the client supports inline composition currently. 76 // Returns if the client supports inline composition currently.
77 virtual bool CanComposeInline() const = 0; 77 virtual bool CanComposeInline() const = 0;
78 78
79 // Returns current caret (insertion point) bounds in the universal screen 79 // Returns current caret (insertion point) bounds in the universal screen
80 // coordinates. If there is selection, then the selection bounds will be 80 // coordinates. If there is selection, then the selection bounds will be
81 // returned. 81 // returned.
82 // Note: On Windows, the returned value is supposed to be DIP (Density 82 // Note: On Windows, the returned value is supposed to be DIP (Density
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 virtual void OnCandidateWindowShown() = 0; 169 virtual void OnCandidateWindowShown() = 0;
170 // Called when IME updates any appearance of the current candidate window. 170 // Called when IME updates any appearance of the current candidate window.
171 virtual void OnCandidateWindowUpdated() = 0; 171 virtual void OnCandidateWindowUpdated() = 0;
172 // Called when IME hides the candidate window. 172 // Called when IME hides the candidate window.
173 virtual void OnCandidateWindowHidden() = 0; 173 virtual void OnCandidateWindowHidden() = 0;
174 174
175 // Returns true if |command_id| is currently allowed to be executed. 175 // Returns true if |command_id| is currently allowed to be executed.
176 virtual bool IsEditingCommandEnabled(int command_id) = 0; 176 virtual bool IsEditingCommandEnabled(int command_id) = 0;
177 // Execute the command specified by |command_id|. 177 // Execute the command specified by |command_id|.
178 virtual void ExecuteEditingCommand(int command_id) = 0; 178 virtual void ExecuteEditingCommand(int command_id) = 0;
179
180 // Called when the virtual keyboard was requested to be shown, but was already
181 // showing.
182 virtual void OnKeyboardBoundsUnchanged() = 0;
179 }; 183 };
180 184
181 } // namespace ui 185 } // namespace ui
182 186
183 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 187 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698