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

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

Issue 150127: Fix the Views combobox on GTK by adding a new function. (Closed)
Patch Set: Created 11 years, 5 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
« no previous file with comments | « views/controls/combobox/native_combobox_gtk.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 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 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "views/controls/combobox/native_combobox_gtk.h" 5 #include "views/controls/combobox/native_combobox_gtk.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "views/controls/combobox/combobox.h" 8 #include "views/controls/combobox/combobox.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 View* NativeComboboxGtk::GetView() { 52 View* NativeComboboxGtk::GetView() {
53 return this; 53 return this;
54 } 54 }
55 55
56 void NativeComboboxGtk::SetFocus() { 56 void NativeComboboxGtk::SetFocus() {
57 Focus(); 57 Focus();
58 } 58 }
59 59
60 gfx::NativeView NativeComboboxGtk::GetTestingHandle() const {
61 return native_view();
62 }
63
60 //////////////////////////////////////////////////////////////////////////////// 64 ////////////////////////////////////////////////////////////////////////////////
61 // NativeComboboxGtk, NativeControlGtk overrides: 65 // NativeComboboxGtk, NativeControlGtk overrides:
62 66
63 void NativeComboboxGtk::CreateNativeControl() { 67 void NativeComboboxGtk::CreateNativeControl() {
64 } 68 }
65 69
66 void NativeComboboxGtk::NativeControlCreated(GtkWidget* native_control) { 70 void NativeComboboxGtk::NativeControlCreated(GtkWidget* native_control) {
67 NativeControlGtk::NativeControlCreated(native_control); 71 NativeControlGtk::NativeControlCreated(native_control);
68 } 72 }
69 73
70 //////////////////////////////////////////////////////////////////////////////// 74 ////////////////////////////////////////////////////////////////////////////////
71 // NativeComboboxWrapper, public: 75 // NativeComboboxWrapper, public:
72 76
73 // static 77 // static
74 NativeComboboxWrapper* NativeComboboxWrapper::CreateWrapper( 78 NativeComboboxWrapper* NativeComboboxWrapper::CreateWrapper(
75 Combobox* combobox) { 79 Combobox* combobox) {
76 return new NativeComboboxGtk(combobox); 80 return new NativeComboboxGtk(combobox);
77 } 81 }
78 82
79 } // namespace views 83 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/combobox/native_combobox_gtk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698