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

Side by Side Diff: ui/base/ime/input_method_chromeos.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: Disable autofill popup waiting for keyboard when keyboard has been disabled. Created 5 years, 11 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/input_method_base_unittest.cc ('k') | ui/base/ime/input_method_chromeos.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_INPUT_METHOD_CHROMEOS_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_
6 #define UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ 6 #define UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void ResetContext(); 55 void ResetContext();
56 56
57 private: 57 private:
58 class PendingKeyEvent; 58 class PendingKeyEvent;
59 59
60 // Overridden from InputMethodBase: 60 // Overridden from InputMethodBase:
61 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, 61 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before,
62 TextInputClient* focused) override; 62 TextInputClient* focused) override;
63 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, 63 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before,
64 TextInputClient* focused) override; 64 TextInputClient* focused) override;
65 virtual void SetSupportsOnScreenKeyboard(bool supported) override;
66 virtual bool SupportsOnScreenKeyboard() const override;
65 67
66 // Asks the client to confirm current composition text. 68 // Asks the client to confirm current composition text.
67 void ConfirmCompositionText(); 69 void ConfirmCompositionText();
68 70
69 // Checks the availability of focused text input client and update focus 71 // Checks the availability of focused text input client and update focus
70 // state. 72 // state.
71 void UpdateContextFocusState(); 73 void UpdateContextFocusState();
72 74
73 // Processes a key event that was already filtered by the input method. 75 // Processes a key event that was already filtered by the input method.
74 // A VKEY_PROCESSKEY may be dispatched to the focused View. 76 // A VKEY_PROCESSKEY may be dispatched to the focused View.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 137
136 base::string16 previous_surrounding_text_; 138 base::string16 previous_surrounding_text_;
137 gfx::Range previous_selection_range_; 139 gfx::Range previous_selection_range_;
138 140
139 // Indicates if there is an ongoing composition text. 141 // Indicates if there is an ongoing composition text.
140 bool composing_text_; 142 bool composing_text_;
141 143
142 // Indicates if the composition text is changed or deleted. 144 // Indicates if the composition text is changed or deleted.
143 bool composition_changed_; 145 bool composition_changed_;
144 146
147 // Indiciates that focusing an input field will bring up an on-screen
148 // keyboard.
149 bool on_screen_keyboard_supported_;
150
145 // The latest id of key event. 151 // The latest id of key event.
146 uint32 current_keyevent_id_; 152 uint32 current_keyevent_id_;
147 153
148 // An object to compose a character from a sequence of key presses 154 // An object to compose a character from a sequence of key presses
149 // including dead key etc. 155 // including dead key etc.
150 CharacterComposer character_composer_; 156 CharacterComposer character_composer_;
151 157
152 // Used for making callbacks. 158 // Used for making callbacks.
153 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; 159 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_;
154 160
155 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); 161 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS);
156 }; 162 };
157 163
158 } // namespace ui 164 } // namespace ui
159 165
160 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ 166 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_base_unittest.cc ('k') | ui/base/ime/input_method_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698