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

Side by Side Diff: views/controls/combobox/native_combobox_gtk.cc

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
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 #include "views/controls/combobox/native_combobox_gtk.h"
6
7 #include "views/controls/combobox/combobox.h"
8
9 namespace views {
10
11 ////////////////////////////////////////////////////////////////////////////////
12 // NativeComboboxGtk, public:
13
14 NativeComboboxGtk::NativeComboboxGtk(Combobox* combobox)
15 : combobox_(combobox) {
16 }
17
18 NativeComboboxGtk::~NativeComboboxGtk() {
19 }
20
21 ////////////////////////////////////////////////////////////////////////////////
22 // NativeComboboxGtk, NativeComboboxWrapper implementation:
23
24 void NativeComboboxGtk::UpdateFromModel() {
25 NOTIMPLEMENTED();
26 }
27
28 void NativeComboboxGtk::UpdateSelectedItem() {
29 NOTIMPLEMENTED();
30 }
31
32 void NativeComboboxGtk::UpdateEnabled() {
33 NOTIMPLEMENTED();
34 }
35
36 int NativeComboboxGtk::GetSelectedItem() const {
37 NOTIMPLEMENTED();
38 return 0;
39 }
40
41 bool NativeComboboxGtk::IsDropdownOpen() const {
42 NOTIMPLEMENTED();
43 return false;
44 }
45
46 gfx::Size NativeComboboxGtk::GetPreferredSize() const {
47 NOTIMPLEMENTED();
48 return gfx::Size();
49 }
50
51 View* NativeComboboxGtk::GetView() {
52 return this;
53 }
54
55 void NativeComboboxGtk::SetFocus() {
56 Focus();
57 }
58
59 ////////////////////////////////////////////////////////////////////////////////
60 // NativeComboboxGtk, NativeControlGtk overrides:
61
62 void NativeComboboxGtk::CreateNativeControl() {
63 }
64
65 void NativeComboboxGtk::NativeControlCreated(GtkWidget* native_control) {
66 NativeControlGtk::NativeControlCreated(native_control);
67 }
68
69 ////////////////////////////////////////////////////////////////////////////////
70 // NativeComboboxWrapper, public:
71
72 // static
73 NativeComboboxWrapper* NativeComboboxWrapper::CreateWrapper(
74 Combobox* combobox) {
75 return new NativeComboboxGtk(combobox);
76 }
77
78 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/combobox/native_combobox_gtk.h ('k') | views/controls/combobox/native_combobox_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698