Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: views/controls/menu/menu_item_view_win.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
12 #include "app/l10n_util.h" 11 #include "app/l10n_util.h"
12 #include "gfx/canvas.h"
13 #include "gfx/native_theme_win.h" 13 #include "gfx/native_theme_win.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
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
OLDNEW
« no previous file with comments | « views/controls/menu/menu_item_view_gtk.cc ('k') | views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698