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_win.h" | 5 #include "views/controls/combobox/native_combobox_win.h" |
6 | 6 |
7 #include "app/combobox_model.h" | 7 #include "app/combobox_model.h" |
8 #include "app/gfx/font.h" | 8 #include "app/gfx/font.h" |
| 9 #include "app/gfx/native_theme_win.h" |
9 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
11 #include "base/gfx/native_theme.h" | |
12 #include "views/controls/combobox/combobox.h" | 12 #include "views/controls/combobox/combobox.h" |
13 #include "views/widget/widget.h" | 13 #include "views/widget/widget.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 // Limit how small a combobox can be. | 17 // Limit how small a combobox can be. |
18 static const int kMinComboboxWidth = 148; | 18 static const int kMinComboboxWidth = 148; |
19 | 19 |
20 // Add a couple extra pixels to the widths of comboboxes and combobox | 20 // Add a couple extra pixels to the widths of comboboxes and combobox |
21 // dropdowns so that text isn't too crowded. | 21 // dropdowns so that text isn't too crowded. |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 //////////////////////////////////////////////////////////////////////////////// | 188 //////////////////////////////////////////////////////////////////////////////// |
189 // NativeComboboxWrapper, public: | 189 // NativeComboboxWrapper, public: |
190 | 190 |
191 // static | 191 // static |
192 NativeComboboxWrapper* NativeComboboxWrapper::CreateWrapper( | 192 NativeComboboxWrapper* NativeComboboxWrapper::CreateWrapper( |
193 Combobox* combobox) { | 193 Combobox* combobox) { |
194 return new NativeComboboxWin(combobox); | 194 return new NativeComboboxWin(combobox); |
195 } | 195 } |
196 | 196 |
197 } // namespace views | 197 } // namespace views |
OLD | NEW |