X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui%2Fkeyboard%2Fkeyboard_util.h;h=bc343bda7b654b5603977069bae1900296f97cc4;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=a3a1f8a9bfd317c1b3c99147427ee63fd9a047b7;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/ui/keyboard/keyboard_util.h b/src/ui/keyboard/keyboard_util.h index a3a1f8a..bc343bd 100644 --- a/src/ui/keyboard/keyboard_util.h +++ b/src/ui/keyboard/keyboard_util.h @@ -42,6 +42,11 @@ enum KeyboardControlEvent { 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); + // Sets the state of the a11y onscreen keyboard. KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled); @@ -63,6 +68,9 @@ KEYBOARD_EXPORT bool IsKeyboardEnabled(); // Returns true if the keyboard usability test is enabled. KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); +// Returns true if keyboard overscroll mode is enabled. +KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); + // Returns true if an IME extension can specify a custom input view for the // virtual keyboard window. KEYBOARD_EXPORT bool IsInputViewEnabled();