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

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

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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.h" 11 #include "ui/gfx/canvas.h"
12 #include "ui/gfx/rect.h" 12 #include "ui/gfx/geometry/rect.h"
13 #include "ui/gfx/win/dpi.h" 13 #include "ui/gfx/win/dpi.h"
14 #include "ui/native_theme/native_theme.h" 14 #include "ui/native_theme/native_theme.h"
15 #include "ui/native_theme/native_theme_aura.h" 15 #include "ui/native_theme/native_theme_aura.h"
16 #include "ui/views/controls/menu/menu_config.h" 16 #include "ui/views/controls/menu/menu_config.h"
17 #include "ui/views/controls/menu/menu_item_view.h" 17 #include "ui/views/controls/menu/menu_item_view.h"
18 18
19 namespace views { 19 namespace views {
20 20
21 void MenuSeparator::OnPaint(gfx::Canvas* canvas) { 21 void MenuSeparator::OnPaint(gfx::Canvas* canvas) {
22 const MenuConfig& config = parent_menu_item_->GetMenuConfig(); 22 const MenuConfig& config = parent_menu_item_->GetMenuConfig();
(...skipping 15 matching lines...) Expand all
38 if (is_fractional_scale && separator_bounds.y() == 0) 38 if (is_fractional_scale && separator_bounds.y() == 0)
39 separator_bounds.set_y(1); 39 separator_bounds.set_y(1);
40 40
41 ui::NativeTheme::ExtraParams extra; 41 ui::NativeTheme::ExtraParams extra;
42 config.native_theme->Paint( 42 config.native_theme->Paint(
43 canvas->sk_canvas(), ui::NativeTheme::kMenuPopupSeparator, 43 canvas->sk_canvas(), ui::NativeTheme::kMenuPopupSeparator,
44 ui::NativeTheme::kNormal, separator_bounds, extra); 44 ui::NativeTheme::kNormal, separator_bounds, extra);
45 } 45 }
46 46
47 } // namespace views 47 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_host.h ('k') | ui/views/controls/scrollbar/base_scroll_bar_thumb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698