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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual int scrollbarMargin() const { return 0; } | 63 virtual int scrollbarMargin() const { return 0; } |
64 | 64 |
65 virtual WebScrollbarButtonsPlacement buttonsPlacement() const { return WebSc
rollbarButtonsPlacementSingle; } | 65 virtual WebScrollbarButtonsPlacement buttonsPlacement() const { return WebSc
rollbarButtonsPlacementSingle; } |
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 virtual ScrollbarPart invalidateOnThumbPositionChange(const ScrollbarThemeCl
ient&, float oldPosition, float newPosition) const { return AllParts; } | |
74 | 73 |
75 virtual void paintScrollCorner(GraphicsContext&, const DisplayItemClient&, c
onst IntRect& cornerRect); | 74 virtual void paintScrollCorner(GraphicsContext&, const DisplayItemClient&, c
onst IntRect& cornerRect); |
76 virtual void paintTickmarks(GraphicsContext&, const ScrollbarThemeClient&, c
onst IntRect&) { } | 75 virtual void paintTickmarks(GraphicsContext&, const ScrollbarThemeClient&, c
onst IntRect&) { } |
77 | 76 |
78 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient&, const Platform
MouseEvent&); | 77 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient&, const Platform
MouseEvent&); |
79 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient&, const P
latformMouseEvent&); | 78 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient&, const P
latformMouseEvent&); |
80 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, c
onst PlatformMouseEvent&) { return false; } | 79 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, c
onst PlatformMouseEvent&) { return false; } |
81 | 80 |
82 // The position of the thumb relative to the track. | 81 // The position of the thumb relative to the track. |
83 virtual int thumbPosition(const ScrollbarThemeClient&); | 82 virtual int thumbPosition(const ScrollbarThemeClient&); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); | 129 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); |
131 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 130 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
132 | 131 |
133 private: | 132 private: |
134 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. |
135 static bool gMockScrollbarsEnabled; | 134 static bool gMockScrollbarsEnabled; |
136 }; | 135 }; |
137 | 136 |
138 } | 137 } |
139 #endif | 138 #endif |
OLD | NEW |