| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_item_view.h" | 5 #include "views/controls/menu/menu_item_view.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <uxtheme.h> | 8 #include <uxtheme.h> |
| 9 #include <Vssym32.h> | 9 #include <Vssym32.h> |
| 10 | 10 |
| 11 #include "app/gfx/canvas.h" | 11 #include "app/gfx/canvas.h" |
| 12 #include "base/gfx/native_theme.h" | 12 #include "app/gfx/native_theme_win.h" |
| 13 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
| 14 #include "grit/app_strings.h" | 14 #include "grit/app_strings.h" |
| 15 #include "views/controls/menu/menu_config.h" | 15 #include "views/controls/menu/menu_config.h" |
| 16 #include "views/controls/menu/submenu_view.h" | 16 #include "views/controls/menu/submenu_view.h" |
| 17 | 17 |
| 18 using gfx::NativeTheme; | 18 using gfx::NativeTheme; |
| 19 | 19 |
| 20 namespace views { | 20 namespace views { |
| 21 | 21 |
| 22 gfx::Size MenuItemView::GetPreferredSize() { | 22 gfx::Size MenuItemView::GetPreferredSize() { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 RECT arrow_rect = arrow_bounds.ToRECT(); | 142 RECT arrow_rect = arrow_bounds.ToRECT(); |
| 143 NativeTheme::instance()->PaintMenuArrow( | 143 NativeTheme::instance()->PaintMenuArrow( |
| 144 NativeTheme::MENU, dc, MENU_POPUPSUBMENU, state_id, &arrow_rect, | 144 NativeTheme::MENU, dc, MENU_POPUPSUBMENU, state_id, &arrow_rect, |
| 145 arrow_direction, render_selection); | 145 arrow_direction, render_selection); |
| 146 } | 146 } |
| 147 canvas->endPlatformPaint(); | 147 canvas->endPlatformPaint(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace views | 150 } // namespace views |
| OLD | NEW |