Index: ui/keyboard/keyboard_util.cc |
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc |
index 7048be2e5564f354b113df0185dbf009935c03ba..e345fd84e888cff796e40f58d93c8d902effa49b 100644 |
--- a/ui/keyboard/keyboard_util.cc |
+++ b/ui/keyboard/keyboard_util.cc |
@@ -46,21 +46,14 @@ base::LazyInstance<GURL> g_override_content_url = LAZY_INSTANCE_INITIALIZER; |
// The ratio between the height of the keyboard and the screen when using the |
// usability keyboard. |
const float kUsabilityKeyboardHeightRatio = 1.0f; |
+const float kInitialHeightRatio = 0.0f; |
kevers
2014/04/22 17:45:23
Please add a comment. With the value now being 0
bshe
2014/04/23 01:08:53
Done.
|
-// The default ratio between the height of the keyboard and the screen. |
-const float kDefaultKeyboardHeightRatio = 0.41f; |
- |
-// The ratio between the height of the keyboard and the screen when using the |
-// accessibility keyboard. |
-const float kAccessibilityKeyboardHeightRatio = 0.3f; |
- |
-float GetKeyboardHeightRatio(){ |
+float GetKeyboardHeightRatio() { |
if (keyboard::IsKeyboardUsabilityExperimentEnabled()) { |
return kUsabilityKeyboardHeightRatio; |
- } else if (keyboard::GetAccessibilityKeyboardEnabled()) { |
- return kAccessibilityKeyboardHeightRatio; |
+ } else { |
+ return kInitialHeightRatio; |
} |
- return kDefaultKeyboardHeightRatio; |
} |
bool g_touch_keyboard_enabled = false; |