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

Side by Side Diff: ui/keyboard/keyboard_controller.h

Issue 2620273002: Change the keyboard bounds when moving to another display. (Closed)
Patch Set: added a test Created 3 years, 11 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 | « no previous file | ui/keyboard/keyboard_controller.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_KEYBOARD_KEYBOARD_CONTROLLER_H_ 5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ 6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void ShowKeyboardInternal(int64_t display_id); 152 void ShowKeyboardInternal(int64_t display_id);
153 153
154 // Returns true if keyboard is scheduled to hide. 154 // Returns true if keyboard is scheduled to hide.
155 bool WillHideKeyboard() const; 155 bool WillHideKeyboard() const;
156 156
157 // Called when show and hide animation finished successfully. If the animation 157 // Called when show and hide animation finished successfully. If the animation
158 // is aborted, it won't be called. 158 // is aborted, it won't be called.
159 void ShowAnimationFinished(); 159 void ShowAnimationFinished();
160 void HideAnimationFinished(); 160 void HideAnimationFinished();
161 161
162 // Called when the keyboard mode is set or the keyboard is moved to another
163 // display.
164 void AdjustKeyboardBounds();
165
162 std::unique_ptr<KeyboardUI> ui_; 166 std::unique_ptr<KeyboardUI> ui_;
163 KeyboardLayoutDelegate* layout_delegate_; 167 KeyboardLayoutDelegate* layout_delegate_;
164 std::unique_ptr<aura::Window> container_; 168 std::unique_ptr<aura::Window> container_;
165 // CallbackAnimationObserver should destructed before container_ because it 169 // CallbackAnimationObserver should destructed before container_ because it
166 // uses container_'s animator. 170 // uses container_'s animator.
167 std::unique_ptr<CallbackAnimationObserver> animation_observer_; 171 std::unique_ptr<CallbackAnimationObserver> animation_observer_;
168 172
169 ui::InputMethod* input_method_; 173 ui::InputMethod* input_method_;
170 bool keyboard_visible_; 174 bool keyboard_visible_;
171 bool show_on_resize_; 175 bool show_on_resize_;
(...skipping 10 matching lines...) Expand all
182 static KeyboardController* instance_; 186 static KeyboardController* instance_;
183 187
184 base::WeakPtrFactory<KeyboardController> weak_factory_; 188 base::WeakPtrFactory<KeyboardController> weak_factory_;
185 189
186 DISALLOW_COPY_AND_ASSIGN(KeyboardController); 190 DISALLOW_COPY_AND_ASSIGN(KeyboardController);
187 }; 191 };
188 192
189 } // namespace keyboard 193 } // namespace keyboard
190 194
191 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ 195 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698