OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/menu/menu_scroll_view_container.h" | 5 #include "views/controls/menu/menu_scroll_view_container.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <uxtheme.h> | 9 #include <uxtheme.h> |
10 #include <Vssym32.h> | 10 #include <Vssym32.h> |
11 #endif | 11 #endif |
12 | 12 |
13 #include "app/gfx/canvas.h" | 13 #include "gfx/canvas.h" |
14 #include "gfx/color_utils.h" | 14 #include "gfx/color_utils.h" |
15 #include "views/border.h" | 15 #include "views/border.h" |
16 #include "views/controls/menu/menu_config.h" | 16 #include "views/controls/menu/menu_config.h" |
17 #include "views/controls/menu/menu_controller.h" | 17 #include "views/controls/menu/menu_controller.h" |
18 #include "views/controls/menu/menu_item_view.h" | 18 #include "views/controls/menu/menu_item_view.h" |
19 #include "views/controls/menu/submenu_view.h" | 19 #include "views/controls/menu/submenu_view.h" |
20 | 20 |
21 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
22 #include "gfx/native_theme_win.h" | 22 #include "gfx/native_theme_win.h" |
23 #endif | 23 #endif |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 225 } |
226 | 226 |
227 gfx::Size MenuScrollViewContainer::GetPreferredSize() { | 227 gfx::Size MenuScrollViewContainer::GetPreferredSize() { |
228 gfx::Size prefsize = scroll_view_->GetContents()->GetPreferredSize(); | 228 gfx::Size prefsize = scroll_view_->GetContents()->GetPreferredSize(); |
229 gfx::Insets insets = GetInsets(); | 229 gfx::Insets insets = GetInsets(); |
230 prefsize.Enlarge(insets.width(), insets.height()); | 230 prefsize.Enlarge(insets.width(), insets.height()); |
231 return prefsize; | 231 return prefsize; |
232 } | 232 } |
233 | 233 |
234 } // namespace views | 234 } // namespace views |
OLD | NEW |