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

Unified Diff: chrome/browser/extensions/extension_input_api.cc

Issue 7058046: Adjust virtual keyboard size base on input method candidates. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update Created 9 years, 7 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: chrome/browser/extensions/extension_input_api.cc
diff --git a/chrome/browser/extensions/extension_input_api.cc b/chrome/browser/extensions/extension_input_api.cc
index 0b2db172a4202381009061c515a2eee0f77a3ebc..7f996f40957f307ea9cc2bb58cc3dc65fdb67304 100644
--- a/chrome/browser/extensions/extension_input_api.cc
+++ b/chrome/browser/extensions/extension_input_api.cc
@@ -144,6 +144,16 @@ bool HideKeyboardFunction::RunImpl() {
NotificationService::NoDetails());
return true;
}
+
+bool SetKeyboardHeightFunction::RunImpl() {
+ int height = 0;
+ EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &height));
+ NotificationService::current()->Notify(
+ NotificationType::SET_KEYBOARD_HEIGHT_INVOKED,
+ Source<SetKeyboardHeightFunction>(this),
+ Details<int>(&height));
+ return true;
+}
#endif
#if defined(OS_CHROMEOS) && defined(TOUCH_UI)

Powered by Google App Engine
This is Rietveld 408576698