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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/combobox/combobox.cc ('k') | views/controls/combobox/native_combobox_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file.
4
5 #ifndef VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_GTK_H_
6 #define VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_GTK_H_
7
8 #include "views/controls/combobox/native_combobox_wrapper.h"
9 #include "views/controls/native_control_gtk.h"
10
11 namespace views {
12
13 class NativeComboboxGtk : public NativeControlGtk,
14 public NativeComboboxWrapper {
15 public:
16 explicit NativeComboboxGtk(Combobox* combobox);
17 virtual ~NativeComboboxGtk();
18
19 // Overridden from NativeComboboxWrapper:
20 virtual void UpdateFromModel();
21 virtual void UpdateSelectedItem();
22 virtual void UpdateEnabled();
23 virtual int GetSelectedItem() const;
24 virtual bool IsDropdownOpen() const;
25 virtual gfx::Size GetPreferredSize() const;
26 virtual View* GetView();
27 virtual void SetFocus();
28
29 protected:
30 // Overridden from NativeControlGtk:
31 virtual void CreateNativeControl();
32 virtual void NativeControlCreated(GtkWidget* widget);
33
34 private:
35 // The combobox we are bound to.
36 Combobox* combobox_;
37
38 DISALLOW_COPY_AND_ASSIGN(NativeComboboxGtk);
39 };
40
41 } // namespace views
42
43 #endif // VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_GTK_H_
OLDNEW
« 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