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

Unified Diff: ui/keyboard/keyboard_controller.h

Issue 1008453002: Allow javascript change the virtual keyboard window size and position freely in FLOATING mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit: fix a compile error Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/keyboard/keyboard_controller.h
diff --git a/ui/keyboard/keyboard_controller.h b/ui/keyboard/keyboard_controller.h
index d81bedaf6c2b996cf8f659aeaf59b4f80afd3a81..f82f1c1ab873c9b3b3d4377db2f39af738b1c361 100644
--- a/ui/keyboard/keyboard_controller.h
+++ b/ui/keyboard/keyboard_controller.h
@@ -92,6 +92,8 @@ class KEYBOARD_EXPORT KeyboardController : public ui::InputMethodObserver,
void set_lock_keyboard(bool lock) { lock_keyboard_ = lock; }
+ KeyboardMode keyboard_mode() { return keyboard_mode_; }
sadrul 2015/04/01 06:43:49 KeyboardMode keyboard_mode() const { return ... }
bshe 2015/04/01 20:41:33 Done.
+
void SetKeyboardMode(KeyboardMode mode);
// Force the keyboard to show up if not showing and lock the keyboard if
@@ -123,6 +125,9 @@ class KEYBOARD_EXPORT KeyboardController : public ui::InputMethodObserver,
// Updates insets on web content window
void UpdateWindowInsets(aura::Window* window);
+ // Called when the root window bounds changed.
+ void OnRootWindowResized(const gfx::Rect& bounds);
+
private:
// For access to Observer methods for simulation.
friend class KeyboardControllerTest;

Powered by Google App Engine
This is Rietveld 408576698