OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 virtual ScrollbarButtonsPlacement buttonsPlacement() const { return Scrollba
rButtonsPlacementSingle; } | 65 virtual ScrollbarButtonsPlacement buttonsPlacement() const { return Scrollba
rButtonsPlacementSingle; } |
66 | 66 |
67 virtual bool supportsControlTints() const { return false; } | 67 virtual bool supportsControlTints() const { return false; } |
68 virtual bool usesOverlayScrollbars() const { return false; } | 68 virtual bool usesOverlayScrollbars() const { return false; } |
69 virtual void updateScrollbarOverlayStyle(const ScrollbarThemeClient*) { } | 69 virtual void updateScrollbarOverlayStyle(const ScrollbarThemeClient*) { } |
70 | 70 |
71 virtual bool invalidateOnMouseEnterExit() { return false; } | 71 virtual bool invalidateOnMouseEnterExit() { return false; } |
72 virtual bool invalidateOnWindowActiveChange() const { return false; } | 72 virtual bool invalidateOnWindowActiveChange() const { return false; } |
73 | 73 |
74 virtual void paintScrollCorner(GraphicsContext*, const DisplayItemClientWrap
per&, const IntRect& cornerRect); | 74 virtual void paintScrollCorner(GraphicsContext*, const DisplayItemClient&, c
onst IntRect& cornerRect); |
75 virtual void paintTickmarks(GraphicsContext*, const ScrollbarThemeClient*, c
onst IntRect&) { } | 75 virtual void paintTickmarks(GraphicsContext*, const ScrollbarThemeClient*, c
onst IntRect&) { } |
76 | 76 |
77 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient*, const Platform
MouseEvent&); | 77 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient*, const Platform
MouseEvent&); |
78 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient*, const P
latformMouseEvent&); | 78 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient*, const P
latformMouseEvent&); |
79 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient*, c
onst PlatformMouseEvent&) { return false; } | 79 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient*, c
onst PlatformMouseEvent&) { return false; } |
80 | 80 |
81 // The position of the thumb relative to the track. | 81 // The position of the thumb relative to the track. |
82 virtual int thumbPosition(const ScrollbarThemeClient*); | 82 virtual int thumbPosition(const ScrollbarThemeClient*); |
83 // The length of the thumb along the axis of the scrollbar. | 83 // The length of the thumb along the axis of the scrollbar. |
84 virtual int thumbLength(const ScrollbarThemeClient*); | 84 virtual int thumbLength(const ScrollbarThemeClient*); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); | 129 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); |
130 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 130 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
131 | 131 |
132 private: | 132 private: |
133 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. | 133 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. |
134 static bool gMockScrollbarsEnabled; | 134 static bool gMockScrollbarsEnabled; |
135 }; | 135 }; |
136 | 136 |
137 } | 137 } |
138 #endif | 138 #endif |
OLD | NEW |