OLD | NEW |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // Asks the client to confirm current composition text. | 66 // Asks the client to confirm current composition text. |
67 void ConfirmCompositionText(); | 67 void ConfirmCompositionText(); |
68 | 68 |
69 // Checks the availability of focused text input client and update focus | 69 // Checks the availability of focused text input client and update focus |
70 // state. | 70 // state. |
71 void UpdateContextFocusState(); | 71 void UpdateContextFocusState(); |
72 | 72 |
73 // Processes a key event that was already filtered by the input method. | 73 // Processes a key event that was already filtered by the input method. |
74 // A VKEY_PROCESSKEY may be dispatched to the focused View. | 74 // A VKEY_PROCESSKEY may be dispatched to the focused View. |
75 void ProcessFilteredKeyPressEvent(const ui::KeyEvent& event); | 75 bool ProcessFilteredKeyPressEvent(const ui::KeyEvent& event); |
76 | 76 |
77 // Processes a key event that was not filtered by the input method. | 77 // Processes a key event that was not filtered by the input method. |
78 void ProcessUnfilteredKeyPressEvent(const ui::KeyEvent& event); | 78 void ProcessUnfilteredKeyPressEvent(const ui::KeyEvent& event); |
79 | 79 |
80 // Sends input method result caused by the given key event to the focused text | 80 // Sends input method result caused by the given key event to the focused text |
81 // input client. | 81 // input client. |
82 void ProcessInputMethodResult(const ui::KeyEvent& event, bool filtered); | 82 void ProcessInputMethodResult(const ui::KeyEvent& event, bool filtered); |
83 | 83 |
84 // Checks if the pending input method result needs inserting into the focused | 84 // Checks if the pending input method result needs inserting into the focused |
85 // text input client as a single character. | 85 // text input client as a single character. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 // Used for making callbacks. | 144 // Used for making callbacks. |
145 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; | 145 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; |
146 | 146 |
147 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); | 147 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); |
148 }; | 148 }; |
149 | 149 |
150 } // namespace ui | 150 } // namespace ui |
151 | 151 |
152 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ | 152 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
OLD | NEW |