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

Side by Side Diff: ui/views/controls/menu/menu_separator_win.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 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
« no previous file with comments | « ui/views/controls/menu/menu_scroll_view_container.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/views/controls/menu/menu_separator.h" 5 #include "ui/views/controls/menu/menu_separator.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 "ui/gfx/canvas_skia.h" 11 #include "ui/gfx/canvas.h"
12 #include "ui/gfx/native_theme.h" 12 #include "ui/gfx/native_theme.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 #include "ui/views/controls/menu/menu_config.h" 14 #include "ui/views/controls/menu/menu_config.h"
15 #include "ui/views/controls/menu/menu_item_view.h" 15 #include "ui/views/controls/menu/menu_item_view.h"
16 16
17 namespace views { 17 namespace views {
18 18
19 void MenuSeparator::OnPaint(gfx::Canvas* canvas) { 19 void MenuSeparator::OnPaint(gfx::Canvas* canvas) {
20 const MenuConfig& config = MenuConfig::instance(); 20 const MenuConfig& config = MenuConfig::instance();
21 // The gutter is rendered before the background. 21 // The gutter is rendered before the background.
(...skipping 17 matching lines...) Expand all
39 theme->Paint(canvas->GetSkCanvas(), gfx::NativeTheme::kMenuPopupSeparator, 39 theme->Paint(canvas->GetSkCanvas(), gfx::NativeTheme::kMenuPopupSeparator,
40 gfx::NativeTheme::kNormal, separator_bounds, extra); 40 gfx::NativeTheme::kNormal, separator_bounds, extra);
41 } 41 }
42 42
43 gfx::Size MenuSeparator::GetPreferredSize() { 43 gfx::Size MenuSeparator::GetPreferredSize() {
44 return gfx::Size(10, // Just in case we're the only item in a menu. 44 return gfx::Size(10, // Just in case we're the only item in a menu.
45 MenuConfig::instance().separator_height); 45 MenuConfig::instance().separator_height);
46 } 46 }
47 47
48 } // namespace views 48 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_scroll_view_container.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698