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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) { re
turn 0; } | 53 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) { re
turn 0; } |
54 virtual int scrollbarMargin() const { return 0; } | 54 virtual int scrollbarMargin() const { return 0; } |
55 | 55 |
56 virtual ScrollbarButtonsPlacement buttonsPlacement() const { return Scrollba
rButtonsPlacementSingle; } | 56 virtual ScrollbarButtonsPlacement buttonsPlacement() const { return Scrollba
rButtonsPlacementSingle; } |
57 | 57 |
58 virtual bool supportsControlTints() const { return false; } | 58 virtual bool supportsControlTints() const { return false; } |
59 virtual bool usesOverlayScrollbars() const { return false; } | 59 virtual bool usesOverlayScrollbars() const { return false; } |
60 virtual void updateScrollbarOverlayStyle(const ScrollbarThemeClient*) { } | 60 virtual void updateScrollbarOverlayStyle(const ScrollbarThemeClient*) { } |
61 | 61 |
62 virtual bool invalidateOnMouseEnterExit() { return false; } | 62 virtual bool invalidateOnMouseEnterExit() { return false; } |
| 63 virtual bool invalidateOnWindowActiveChange() const { return false; } |
63 | 64 |
64 void invalidateParts(ScrollbarThemeClient* scrollbar, ScrollbarControlPartMa
sk mask) | 65 void invalidateParts(ScrollbarThemeClient* scrollbar, ScrollbarControlPartMa
sk mask) |
65 { | 66 { |
66 if (mask & BackButtonStartPart) | 67 if (mask & BackButtonStartPart) |
67 invalidatePart(scrollbar, BackButtonStartPart); | 68 invalidatePart(scrollbar, BackButtonStartPart); |
68 if (mask & ForwardButtonStartPart) | 69 if (mask & ForwardButtonStartPart) |
69 invalidatePart(scrollbar, ForwardButtonStartPart); | 70 invalidatePart(scrollbar, ForwardButtonStartPart); |
70 if (mask & BackTrackPart) | 71 if (mask & BackTrackPart) |
71 invalidatePart(scrollbar, BackTrackPart); | 72 invalidatePart(scrollbar, BackTrackPart); |
72 if (mask & ThumbPart) | 73 if (mask & ThumbPart) |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); | 138 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); |
138 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 139 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
139 | 140 |
140 private: | 141 private: |
141 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. | 142 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. |
142 static bool gMockScrollbarsEnabled; | 143 static bool gMockScrollbarsEnabled; |
143 }; | 144 }; |
144 | 145 |
145 } | 146 } |
146 #endif | 147 #endif |
OLD | NEW |