From f31a2ac27252c6a08aed21671d41307d7bc640fa Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 30 Jun 2009 19:45:38 +0000 Subject: 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 --- views/controls/combobox/native_combobox_gtk.cc | 4 ++++ views/controls/combobox/native_combobox_gtk.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'views') 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_; -- cgit v1.1