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

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

Issue 2957173004: Make DispatchKeyEventPostIME() asynchronous.
Patch Set: cleanup. Created 3 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 (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_INPUT_METHOD_BASE_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_BASE_H_
6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_ 6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // |client| which is the text input client with focus. 104 // |client| which is the text input client with focus.
105 void NotifyTextInputCaretBoundsChanged(const TextInputClient* client); 105 void NotifyTextInputCaretBoundsChanged(const TextInputClient* client);
106 106
107 // Gets the bounds of the composition text or cursor in |client|. 107 // Gets the bounds of the composition text or cursor in |client|.
108 std::vector<gfx::Rect> GetCompositionBounds(const TextInputClient* client); 108 std::vector<gfx::Rect> GetCompositionBounds(const TextInputClient* client);
109 109
110 // Indicates whether the IME extension is currently sending a fake key event. 110 // Indicates whether the IME extension is currently sending a fake key event.
111 // This is used in SendKeyEvent. 111 // This is used in SendKeyEvent.
112 bool sending_key_event_; 112 bool sending_key_event_;
113 113
114 internal::InputMethodDelegate* delegate_;
115
114 private: 116 private:
115 // InputMethod: 117 // InputMethod:
116 const std::vector<std::unique_ptr<ui::KeyEvent>>& GetKeyEventsForTesting() 118 const std::vector<std::unique_ptr<ui::KeyEvent>>& GetKeyEventsForTesting()
117 override; 119 override;
118 120
119 void SetFocusedTextInputClientInternal(TextInputClient* client); 121 void SetFocusedTextInputClientInternal(TextInputClient* client);
120 122
121 internal::InputMethodDelegate* delegate_;
122 TextInputClient* text_input_client_; 123 TextInputClient* text_input_client_;
123 124
124 base::ObserverList<InputMethodObserver> observer_list_; 125 base::ObserverList<InputMethodObserver> observer_list_;
125 126
126 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_; 127 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_;
127 128
128 // Screen bounds of a on-screen keyboard. 129 // Screen bounds of a on-screen keyboard.
129 gfx::Rect keyboard_bounds_; 130 gfx::Rect keyboard_bounds_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); 132 DISALLOW_COPY_AND_ASSIGN(InputMethodBase);
132 }; 133 };
133 134
134 } // namespace ui 135 } // namespace ui
135 136
136 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ 137 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698