summaryrefslogtreecommitdiffstats
path: root/base/gfx/native_theme.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 22:17:26 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 22:17:26 +0000
commit96ebac8cd728bf544a341c666a8533398858d48d (patch)
tree83549a4dfa62d1699e40cad0cdb211658cd9a97f /base/gfx/native_theme.h
parenta720c07753462c0b8597bacb052ea9a354713dda (diff)
downloadchromium_src-96ebac8cd728bf544a341c666a8533398858d48d.zip
chromium_src-96ebac8cd728bf544a341c666a8533398858d48d.tar.gz
chromium_src-96ebac8cd728bf544a341c666a8533398858d48d.tar.bz2
Reorder some stuff to be in alphabetical order in preparation for adding more. No functional change.
Review URL: http://codereview.chromium.org/42418 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/native_theme.h')
-rw-r--r--base/gfx/native_theme.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/base/gfx/native_theme.h b/base/gfx/native_theme.h
index 9822187..2e923d4 100644
--- a/base/gfx/native_theme.h
+++ b/base/gfx/native_theme.h
@@ -34,14 +34,14 @@ class NativeTheme {
public:
enum ThemeName {
BUTTON,
- TEXTFIELD,
+ LIST,
+ MENU,
MENULIST,
SCROLLBAR,
STATUS,
- MENU,
- WINDOW,
TAB,
- LIST,
+ TEXTFIELD,
+ WINDOW,
LAST
};
@@ -100,38 +100,9 @@ class NativeTheme {
int classic_state,
RECT* rect) const;
- HRESULT PaintTextField(HDC hdc,
- int part_id,
- int state_id,
- int classic_state,
- RECT* rect,
- COLORREF color,
- bool fill_content_area,
- bool draw_edges) const;
-
- HRESULT PaintMenuList(HDC hdc,
- int part_id,
- int state_id,
- int classic_state,
- RECT* rect) const;
-
- // Paints a scrollbar arrow. |classic_state| should have the appropriate
- // classic part number ORed in already.
- HRESULT PaintScrollbarArrow(HDC hdc,
- int state_id,
- int classic_state,
- RECT* rect) const;
+ HRESULT PaintDialogBackground(HDC dc, bool active, RECT* rect) const;
- // Paints a scrollbar track section. |align_rect| is only used in classic
- // mode, and makes sure the checkerboard pattern in |target_rect| is aligned
- // with one presumed to be in |align_rect|.
- HRESULT PaintScrollbarTrack(HDC hdc,
- int part_id,
- int state_id,
- int classic_state,
- RECT* target_rect,
- RECT* align_rect,
- skia::PlatformCanvasWin* canvas) const;
+ HRESULT PaintListBackground(HDC dc, bool enabled, RECT* rect) const;
// |arrow_direction| determines whether the arrow is pointing to the left or
// to the right. In RTL locales, sub-menus open from right to left and
@@ -168,11 +139,6 @@ class NativeTheme {
int state_id,
RECT* rect) const;
- HRESULT PaintMenuSeparator(HDC hdc,
- int part_id,
- int state_id,
- RECT* rect) const;
-
HRESULT PaintMenuItemBackground(ThemeName theme,
HDC hdc,
int part_id,
@@ -180,6 +146,35 @@ class NativeTheme {
bool selected,
RECT* rect) const;
+ HRESULT PaintMenuList(HDC hdc,
+ int part_id,
+ int state_id,
+ int classic_state,
+ RECT* rect) const;
+
+ HRESULT PaintMenuSeparator(HDC hdc,
+ int part_id,
+ int state_id,
+ RECT* rect) const;
+
+ // Paints a scrollbar arrow. |classic_state| should have the appropriate
+ // classic part number ORed in already.
+ HRESULT PaintScrollbarArrow(HDC hdc,
+ int state_id,
+ int classic_state,
+ RECT* rect) const;
+
+ // Paints a scrollbar track section. |align_rect| is only used in classic
+ // mode, and makes sure the checkerboard pattern in |target_rect| is aligned
+ // with one presumed to be in |align_rect|.
+ HRESULT PaintScrollbarTrack(HDC hdc,
+ int part_id,
+ int state_id,
+ int classic_state,
+ RECT* target_rect,
+ RECT* align_rect,
+ skia::PlatformCanvasWin* canvas) const;
+
// Paints a scrollbar thumb or gripper.
HRESULT PaintScrollbarThumb(HDC hdc,
int part_id,
@@ -193,11 +188,16 @@ class NativeTheme {
int classic_state,
RECT* rect) const;
- HRESULT PaintDialogBackground(HDC dc, bool active, RECT* rect) const;
-
HRESULT PaintTabPanelBackground(HDC dc, RECT* rect) const;
- HRESULT PaintListBackground(HDC dc, bool enabled, RECT* rect) const;
+ HRESULT PaintTextField(HDC hdc,
+ int part_id,
+ int state_id,
+ int classic_state,
+ RECT* rect,
+ COLORREF color,
+ bool fill_content_area,
+ bool draw_edges) const;
bool IsThemingActive() const;