summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/touch
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 00:31:21 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 00:31:21 +0000
commitad0783f91c1436785e7de77dbfd8e78fed2d2c9f (patch)
treeb0d35aeb499082a1cb5442282d3aa5f47d7a6061 /chrome/browser/ui/touch
parentf2fa809160bae2805090f57b76dc64893f87ceb1 (diff)
downloadchromium_src-ad0783f91c1436785e7de77dbfd8e78fed2d2c9f.zip
chromium_src-ad0783f91c1436785e7de77dbfd8e78fed2d2c9f.tar.gz
chromium_src-ad0783f91c1436785e7de77dbfd8e78fed2d2c9f.tar.bz2
Always show keyboard when an editable element is touched.
BUG=none TEST=manually Review URL: http://codereview.chromium.org/7244002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/touch')
-rw-r--r--chrome/browser/ui/touch/frame/touch_browser_frame_view.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc b/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc
index 29aed09..d2c3c65 100644
--- a/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc
+++ b/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc
@@ -77,6 +77,9 @@ TouchBrowserFrameView::TouchBrowserFrameView(BrowserFrame* frame,
registrar_.Add(this,
NotificationType::SET_KEYBOARD_HEIGHT_INVOKED,
NotificationService::AllSources());
+ registrar_.Add(this,
+ NotificationType::EDITABLE_ELEMENT_TOUCHED,
+ NotificationService::AllSources());
browser_view->browser()->tabstrip_model()->AddObserver(this);
@@ -321,6 +324,8 @@ void TouchBrowserFrameView::Observe(NotificationType type,
keyboard_height_ = height;
parent()->Layout();
}
+ } else if (type == NotificationType::EDITABLE_ELEMENT_TOUCHED) {
+ UpdateKeyboardAndLayout(true);
}
}