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

Unified Diff: ui/keyboard/keyboard_util.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: format Created 5 years, 8 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
« no previous file with comments | « ui/keyboard/keyboard_layout_manager.cc ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_util.h
diff --git a/ui/keyboard/keyboard_util.h b/ui/keyboard/keyboard_util.h
index dc1c97b7b756b1441988f082987006faae42aea5..3ef2c144b19c646851ea3fb9aa29ef5b3a68c640 100644
--- a/ui/keyboard/keyboard_util.h
+++ b/ui/keyboard/keyboard_util.h
@@ -52,14 +52,11 @@ enum KeyboardShowOverride {
KEYBOARD_SHOW_OVERRIDE_NONE,
};
-// Gets the default keyboard bounds from |window_bounds|.
-KEYBOARD_EXPORT gfx::Rect DefaultKeyboardBoundsFromWindowBounds(
- const gfx::Rect& window_bounds);
-
-// Gets the caculated keyboard bounds from |window_bounds|. The keyboard height
-// is specified by |keyboard_height|.
-KEYBOARD_EXPORT gfx::Rect KeyboardBoundsFromWindowBounds(
- const gfx::Rect& window_bounds, int keyboard_height);
+// Gets the caculated keyboard bounds from |root_bounds|. The keyboard height
+// is specified by |keyboard_height|. This should be only called when keyboard
+// is in FULL_WDITH mode.
+KEYBOARD_EXPORT gfx::Rect FullWidthKeyboardBoundsFromRootBounds(
+ const gfx::Rect& root_bounds, int keyboard_height);
// Sets the state of the a11y onscreen keyboard.
KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled);
« no previous file with comments | « ui/keyboard/keyboard_layout_manager.cc ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698