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

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

Issue 1209913002: InputMethod should stop TextInputClient::InsertChar/InsertText calls when the event is stopped prop… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: per comments. Created 5 years, 5 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 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698