OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "views/controls/listbox/listbox.h" | 5 #include "views/controls/listbox/listbox.h" |
6 | 6 |
7 #include "views/controls/listbox/native_listbox_wrapper.h" | 7 #include "views/controls/listbox/native_listbox_wrapper.h" |
8 #include "views/controls/native/native_view_host.h" | 8 #include "views/controls/native/native_view_host.h" |
9 #include "views/fill_layout.h" | 9 #include "views/layout/fill_layout.h" |
10 | 10 |
11 namespace views { | 11 namespace views { |
12 | 12 |
13 // Listbox ------------------------------------------------------------------ | 13 // Listbox ------------------------------------------------------------------ |
14 | 14 |
15 Listbox::Listbox( | 15 Listbox::Listbox( |
16 const std::vector<string16>& strings, Listbox::Listener* listener) | 16 const std::vector<string16>& strings, Listbox::Listener* listener) |
17 : strings_(strings), | 17 : strings_(strings), |
18 listener_(listener), | 18 listener_(listener), |
19 native_wrapper_(NULL) { | 19 native_wrapper_(NULL) { |
(...skipping 29 matching lines...) Expand all Loading... |
49 } | 49 } |
50 | 50 |
51 //////////////////////////////////////////////////////////////////////////////// | 51 //////////////////////////////////////////////////////////////////////////////// |
52 // Listbox, protected: | 52 // Listbox, protected: |
53 | 53 |
54 NativeListboxWrapper* Listbox::CreateWrapper() { | 54 NativeListboxWrapper* Listbox::CreateWrapper() { |
55 return NativeListboxWrapper::CreateNativeWrapper(this, strings_, listener_); | 55 return NativeListboxWrapper::CreateNativeWrapper(this, strings_, listener_); |
56 } | 56 } |
57 | 57 |
58 } // namespace views | 58 } // namespace views |
OLD | NEW |