| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 TextInputClient* focused) override; | 64 TextInputClient* focused) override; |
| 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 EventTargets. |
| 75 void ProcessFilteredKeyPressEvent(const ui::KeyEvent& event); | 75 // It returns the result of whether the event has been stopped propagation |
| 76 // when dispatching post IME. |
| 77 bool ProcessFilteredKeyPressEvent(const ui::KeyEvent& event); |
| 76 | 78 |
| 77 // Processes a key event that was not filtered by the input method. | 79 // Processes a key event that was not filtered by the input method. |
| 78 void ProcessUnfilteredKeyPressEvent(const ui::KeyEvent& event); | 80 void ProcessUnfilteredKeyPressEvent(const ui::KeyEvent& event); |
| 79 | 81 |
| 80 // Sends input method result caused by the given key event to the focused text | 82 // Sends input method result caused by the given key event to the focused text |
| 81 // input client. | 83 // input client. |
| 82 void ProcessInputMethodResult(const ui::KeyEvent& event, bool filtered); | 84 void ProcessInputMethodResult(const ui::KeyEvent& event, bool filtered); |
| 83 | 85 |
| 84 // Checks if the pending input method result needs inserting into the focused | 86 // Checks if the pending input method result needs inserting into the focused |
| 85 // text input client as a single character. | 87 // text input client as a single character. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 145 |
| 144 // Used for making callbacks. | 146 // Used for making callbacks. |
| 145 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; | 147 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; |
| 146 | 148 |
| 147 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); | 149 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 } // namespace ui | 152 } // namespace ui |
| 151 | 153 |
| 152 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ | 154 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
| OLD | NEW |