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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) { re
turn 0; } | 62 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) { re
turn 0; } |
63 virtual int scrollbarMargin() const { return 0; } | 63 virtual int scrollbarMargin() const { return 0; } |
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 | 73 |
73 virtual void paintScrollCorner(GraphicsContext*, const DisplayItemClientWrap
per&, const IntRect& cornerRect); | 74 virtual void paintScrollCorner(GraphicsContext*, const DisplayItemClientWrap
per&, const IntRect& cornerRect); |
74 virtual void paintTickmarks(GraphicsContext*, const ScrollbarThemeClient*, c
onst IntRect&) { } | 75 virtual void paintTickmarks(GraphicsContext*, const ScrollbarThemeClient*, c
onst IntRect&) { } |
75 | 76 |
76 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient*, const Platform
MouseEvent&); | 77 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient*, const Platform
MouseEvent&); |
77 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient*, const P
latformMouseEvent&); | 78 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient*, const P
latformMouseEvent&); |
78 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient*, c
onst PlatformMouseEvent&) { return false; } | 79 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient*, c
onst PlatformMouseEvent&) { return false; } |
79 | 80 |
80 // The position of the thumb relative to the track. | 81 // The position of the thumb relative to the track. |
81 virtual int thumbPosition(const ScrollbarThemeClient*); | 82 virtual int thumbPosition(const ScrollbarThemeClient*); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); | 129 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); |
129 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 130 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
130 | 131 |
131 private: | 132 private: |
132 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. |
133 static bool gMockScrollbarsEnabled; | 134 static bool gMockScrollbarsEnabled; |
134 }; | 135 }; |
135 | 136 |
136 } | 137 } |
137 #endif | 138 #endif |
OLD | NEW |