Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: views/controls/combobox/native_combobox_gtk.h

Issue 113991: Make Combobox portable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/combobox/combobox.cc ('k') | views/controls/combobox/native_combobox_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/combobox/native_combobox_gtk.h
===================================================================
--- views/controls/combobox/native_combobox_gtk.h (revision 0)
+++ views/controls/combobox/native_combobox_gtk.h (revision 0)
@@ -0,0 +1,43 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+// source code is governed by a BSD-style license that can be found in the
+// LICENSE file.
+
+#ifndef VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_GTK_H_
+#define VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_GTK_H_
+
+#include "views/controls/combobox/native_combobox_wrapper.h"
+#include "views/controls/native_control_gtk.h"
+
+namespace views {
+
+class NativeComboboxGtk : public NativeControlGtk,
+ public NativeComboboxWrapper {
+ public:
+ explicit NativeComboboxGtk(Combobox* combobox);
+ virtual ~NativeComboboxGtk();
+
+ // Overridden from NativeComboboxWrapper:
+ virtual void UpdateFromModel();
+ virtual void UpdateSelectedItem();
+ virtual void UpdateEnabled();
+ virtual int GetSelectedItem() const;
+ virtual bool IsDropdownOpen() const;
+ virtual gfx::Size GetPreferredSize() const;
+ virtual View* GetView();
+ virtual void SetFocus();
+
+ protected:
+ // Overridden from NativeControlGtk:
+ virtual void CreateNativeControl();
+ virtual void NativeControlCreated(GtkWidget* widget);
+
+ private:
+ // The combobox we are bound to.
+ Combobox* combobox_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeComboboxGtk);
+};
+
+} // namespace views
+
+#endif // VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_GTK_H_
« no previous file with comments | « views/controls/combobox/combobox.cc ('k') | views/controls/combobox/native_combobox_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698