| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |