summaryrefslogtreecommitdiffstats
path: root/WebKit/chromium/public/WebThemeEngine.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/chromium/public/WebThemeEngine.h')
-rw-r--r--WebKit/chromium/public/WebThemeEngine.h41
1 files changed, 4 insertions, 37 deletions
diff --git a/WebKit/chromium/public/WebThemeEngine.h b/WebKit/chromium/public/WebThemeEngine.h
index 1fccb0e..606de09 100644
--- a/WebKit/chromium/public/WebThemeEngine.h
+++ b/WebKit/chromium/public/WebThemeEngine.h
@@ -75,45 +75,12 @@ public:
virtual void paintTrackbar(
WebCanvas*, int part, int state, int classicState,
const WebRect&) = 0;
-#endif
-
- // WebThemeEngine was originally used only on Windows, hence its platform-
- // specific parameters. This is new cross-platform theming API, and we'll
- // switch the code to using these APIs on all platforms instead.
- enum Part {
- PartScrollbarDownArrow,
- PartScrollbarLeftArrow,
- PartScrollbarRightArrow,
- PartScrollbarUpArrow,
- PartScrollbarHorizontalThumb,
- PartScrollbarVerticalThumb,
- PartScrollbarHoriztonalTrack,
- PartScrollbarVerticalTrack,
- };
-
- enum State {
- StateDisabled,
- StateHot,
- StateHover,
- StateNormal,
- StatePressed,
- };
- struct ScrollbarTrackExtraParams {
- int alignX;
- int alignY;
- };
+ virtual void paintProgressBar(
+ WebCanvas*, const WebRect& barRect,
+ int valuePart, const WebRect& valueRect) {}
- union ExtraParams {
- ScrollbarTrackExtraParams scrollbarTrack;
- };
-
- // Gets the size of the given theme component. For variable sized items
- // like vertical scrollbar tracks, the width will be the required width of
- // the track while the height will be the minimum height.
- virtual void getSize(Part, WebSize*) {}
- virtual void paint(
- WebCanvas*, Part, State, const WebRect&, const ExtraParams&) {}
+#endif
};
} // namespace WebKit