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

Side by Side Diff: ui/native_theme/native_theme_base.h

Issue 12041085: Fix menu corners: the menu background was being painted as a rect when in fact, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 10 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/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_base.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) 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 #ifndef UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "skia/ext/platform_canvas.h" 10 #include "skia/ext/platform_canvas.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 State state, 79 State state,
80 const gfx::Rect& rect, 80 const gfx::Rect& rect,
81 const TextFieldExtraParams& text) const; 81 const TextFieldExtraParams& text) const;
82 82
83 virtual void PaintMenuList( 83 virtual void PaintMenuList(
84 SkCanvas* canvas, 84 SkCanvas* canvas,
85 State state, 85 State state,
86 const gfx::Rect& rect, 86 const gfx::Rect& rect,
87 const MenuListExtraParams& menu_list) const; 87 const MenuListExtraParams& menu_list) const;
88 88
89 virtual void PaintMenuPopupBackground(SkCanvas* canvas, 89 virtual void PaintMenuPopupBackground(
90 const gfx::Size& size) const; 90 SkCanvas* canvas,
91 const gfx::Size& size,
92 const MenuBackgroundExtraParams& menu_background) const;
91 93
92 virtual void PaintMenuItemBackground( 94 virtual void PaintMenuItemBackground(
93 SkCanvas* canvas, 95 SkCanvas* canvas,
94 State state, 96 State state,
95 const gfx::Rect& rect, 97 const gfx::Rect& rect,
96 const MenuListExtraParams& menu_list) const; 98 const MenuListExtraParams& menu_list) const;
97 99
98 virtual void PaintSliderTrack( 100 virtual void PaintSliderTrack(
99 SkCanvas* canvas, 101 SkCanvas* canvas,
100 State state, 102 State state,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 192
191 unsigned int scrollbar_width_; 193 unsigned int scrollbar_width_;
192 unsigned int scrollbar_button_length_; 194 unsigned int scrollbar_button_length_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); 196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase);
195 }; 197 };
196 198
197 } // namespace ui 199 } // namespace ui
198 200
199 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ 201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698