diff options
author | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 14:55:13 +0000 |
---|---|---|
committer | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 14:55:13 +0000 |
commit | a9a0417e2b621c778b0f1a8df7b424a32b284041 (patch) | |
tree | 1caeb4d3bf2c6708a8340f29924c8dbe61661973 /chrome | |
parent | bda863e986f517e04fbec41cf6034d483fc03f68 (diff) | |
download | chromium_src-a9a0417e2b621c778b0f1a8df7b424a32b284041.zip chromium_src-a9a0417e2b621c778b0f1a8df7b424a32b284041.tar.gz chromium_src-a9a0417e2b621c778b0f1a8df7b424a32b284041.tar.bz2 |
Identify the omnibox as a URL field.
Although the omnibox is not strictly a URL field, for the purposes of
TOUCH_UI, we would prefer to show the URL-friendly keyboard for the
omnibox instead of a plain-text keyboard.
BUG=none
TEST=updated unittest
Review URL: http://codereview.chromium.org/7826039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/ui/views/omnibox/omnibox_view_views.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc index b1acc08..7a400ce 100644 --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc @@ -22,6 +22,7 @@ #include "third_party/skia/include/core/SkColor.h" #include "ui/base/accessibility/accessible_view_state.h" #include "ui/base/dragdrop/drag_drop_types.h" +#include "ui/base/ime/text_input_type.h" #include "ui/base/l10n/l10n_util.h" #include "ui/base/resource/resource_bundle.h" #include "ui/gfx/font.h" @@ -174,6 +175,7 @@ void OmniboxViewViews::Init() { // TODO(oshima): make sure the above happens with views. textfield_ = new AutocompleteTextfield(this); textfield_->SetController(this); + textfield_->SetTextInputType(ui::TEXT_INPUT_TYPE_URL); #if defined(TOUCH_UI) textfield_->SetFont(ui::ResourceBundle::GetSharedInstance().GetFont( |