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

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

Issue 2240353002: move switch Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Virtual keyboard non-sticky mode changes. Created 4 years, 4 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/aura/client/aura_constants.cc ('k') | ui/base/ime/input_method_base.h » ('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 (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_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_H_
6 #define UI_BASE_IME_INPUT_METHOD_H_ 6 #define UI_BASE_IME_INPUT_METHOD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/event_types.h" 13 #include "base/event_types.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "ui/base/ime/text_input_mode.h" 16 #include "ui/base/ime/text_input_mode.h"
17 #include "ui/base/ime/text_input_type.h" 17 #include "ui/base/ime/text_input_type.h"
18 #include "ui/gfx/geometry/rect.h"
18 19
19 namespace extensions { 20 namespace extensions {
20 class InputImeApiTest; 21 class InputImeApiTest;
21 } // namespace extensions 22 } // namespace extensions
22 23
23 namespace ui { 24 namespace ui {
24 25
25 namespace internal { 26 namespace internal {
26 class InputMethodDelegate; 27 class InputMethodDelegate;
27 } // namespace internal 28 } // namespace internal
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // of IME popups is not supported. 154 // of IME popups is not supported.
154 virtual bool IsCandidatePopupOpen() const = 0; 155 virtual bool IsCandidatePopupOpen() const = 0;
155 156
156 // Displays an on screen keyboard if enabled. 157 // Displays an on screen keyboard if enabled.
157 virtual void ShowImeIfNeeded() = 0; 158 virtual void ShowImeIfNeeded() = 0;
158 159
159 // Management of the observer list. 160 // Management of the observer list.
160 virtual void AddObserver(InputMethodObserver* observer) = 0; 161 virtual void AddObserver(InputMethodObserver* observer) = 0;
161 virtual void RemoveObserver(InputMethodObserver* observer) = 0; 162 virtual void RemoveObserver(InputMethodObserver* observer) = 0;
162 163
164 // Set available bounds and original bounds of screen when virtual keyboard is
165 // active.
166 virtual void set_available_bounds(gfx::Rect new_bounds){};
167
163 protected: 168 protected:
164 friend class extensions::InputImeApiTest; 169 friend class extensions::InputImeApiTest;
165 170
166 // Gets the tracked key events of using input.ime.sendKeyEvents API. 171 // Gets the tracked key events of using input.ime.sendKeyEvents API.
167 virtual const std::vector<std::unique_ptr<ui::KeyEvent>>& 172 virtual const std::vector<std::unique_ptr<ui::KeyEvent>>&
168 GetKeyEventsForTesting() = 0; 173 GetKeyEventsForTesting() = 0;
169 174
170 // Whether the key events will be tracked. Only used for testing. 175 // Whether the key events will be tracked. Only used for testing.
171 bool track_key_events_for_testing_; 176 bool track_key_events_for_testing_;
177
178 // Available bounds of screen when virtual keyboard is active.
179 gfx::Rect available_bounds_;
172 }; 180 };
173 181
174 } // namespace ui 182 } // namespace ui
175 183
176 #endif // UI_BASE_IME_INPUT_METHOD_H_ 184 #endif // UI_BASE_IME_INPUT_METHOD_H_
OLDNEW
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/base/ime/input_method_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698