diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 19:45:38 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 19:45:38 +0000 |
commit | f31a2ac27252c6a08aed21671d41307d7bc640fa (patch) | |
tree | 9bed0c71445f3fef522fda10d813cbb8b39869f1 /views | |
parent | 7f63df86157b77e6aa88cbd9363cfe23731f5d0c (diff) | |
download | chromium_src-f31a2ac27252c6a08aed21671d41307d7bc640fa.zip chromium_src-f31a2ac27252c6a08aed21671d41307d7bc640fa.tar.gz chromium_src-f31a2ac27252c6a08aed21671d41307d7bc640fa.tar.bz2 |
Fix the Views combobox on GTK by adding a new function.
Review URL: http://codereview.chromium.org/150127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/combobox/native_combobox_gtk.cc | 4 | ||||
-rw-r--r-- | views/controls/combobox/native_combobox_gtk.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/views/controls/combobox/native_combobox_gtk.cc b/views/controls/combobox/native_combobox_gtk.cc index 3a3b6f1..e1a2917 100644 --- a/views/controls/combobox/native_combobox_gtk.cc +++ b/views/controls/combobox/native_combobox_gtk.cc @@ -57,6 +57,10 @@ void NativeComboboxGtk::SetFocus() { Focus(); } +gfx::NativeView NativeComboboxGtk::GetTestingHandle() const { + return native_view(); +} + //////////////////////////////////////////////////////////////////////////////// // NativeComboboxGtk, NativeControlGtk overrides: diff --git a/views/controls/combobox/native_combobox_gtk.h b/views/controls/combobox/native_combobox_gtk.h index 2405697..e1034d0 100644 --- a/views/controls/combobox/native_combobox_gtk.h +++ b/views/controls/combobox/native_combobox_gtk.h @@ -25,12 +25,13 @@ class NativeComboboxGtk : public NativeControlGtk, virtual gfx::Size GetPreferredSize() const; virtual View* GetView(); virtual void SetFocus(); + virtual gfx::NativeView GetTestingHandle() const; protected: // Overridden from NativeControlGtk: virtual void CreateNativeControl(); virtual void NativeControlCreated(GtkWidget* widget); - + private: // The combobox we are bound to. Combobox* combobox_; |