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