summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 07:27:47 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 07:27:47 +0000
commit37177e0e2e5a6fa7b67976f757279adf6c36f5ca (patch)
treebcd0066865992e0de6d590cfc67bbab72e8f2094 /ui
parent2e5912800b9d4ba8472085e200322abb43fa3339 (diff)
downloadchromium_src-37177e0e2e5a6fa7b67976f757279adf6c36f5ca.zip
chromium_src-37177e0e2e5a6fa7b67976f757279adf6c36f5ca.tar.gz
chromium_src-37177e0e2e5a6fa7b67976f757279adf6c36f5ca.tar.bz2
Views-implementation of AutocompleteEditView.
This is based on GTK implementation. Please see the header file for features that are not implemented yet. Textfield changes (files under views/controls/textfield) are being reviewed by Ben in separate CL (http://codereview.chromium.org/6314012/), so you don't have to review them (but you're welcome to do so). * Updated factory method in AutocompleteEditViewGtk to return views-implementation when TextfieldViews is enabled. * Added new option to FillLayout so that it lays out its child inside border. * Added missing GD_PK_Delete to keycode conversion. * Enabled tests in autodomplete_edit_view_browsertests for views-implementation as well. I moved the test body to the class and then called them from each test class to avoid having another test configuration on bots. Let me know if there is better way. BUG=none TEST=Enabled autocomplete_edit_view_browsertest for views-implementation. Review URL: http://codereview.chromium.org/6245003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/base/keycodes/keyboard_code_conversion_gtk.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/base/keycodes/keyboard_code_conversion_gtk.cc b/ui/base/keycodes/keyboard_code_conversion_gtk.cc
index f2e65a5..6545d7e 100644
--- a/ui/base/keycodes/keyboard_code_conversion_gtk.cc
+++ b/ui/base/keycodes/keyboard_code_conversion_gtk.cc
@@ -149,6 +149,7 @@ KeyboardCode WindowsKeyCodeForGdkKeyCode(int keycode) {
case GDK_Insert:
return VKEY_INSERT; // (2D) INS key
case GDK_Delete:
+ case GDK_KP_Delete:
return VKEY_DELETE; // (2E) DEL key
case GDK_Help:
return VKEY_HELP; // (2F) HELP key