| 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 return 0; | 63 return 0; |
| 64 } | 64 } |
| 65 virtual int scrollbarMargin() const { return 0; } | 65 virtual int scrollbarMargin() const { return 0; } |
| 66 | 66 |
| 67 virtual WebScrollbarButtonsPlacement buttonsPlacement() const { | 67 virtual WebScrollbarButtonsPlacement buttonsPlacement() const { |
| 68 return WebScrollbarButtonsPlacementSingle; | 68 return WebScrollbarButtonsPlacementSingle; |
| 69 } | 69 } |
| 70 | 70 |
| 71 virtual bool supportsControlTints() const { return false; } | 71 virtual bool supportsControlTints() const { return false; } |
| 72 virtual bool usesOverlayScrollbars() const { return false; } | 72 virtual bool usesOverlayScrollbars() const { return false; } |
| 73 virtual void updateScrollbarOverlayStyle(const ScrollbarThemeClient&) {} | 73 virtual void updateScrollbarOverlayColorTheme(const ScrollbarThemeClient&) {} |
| 74 | 74 |
| 75 virtual bool invalidateOnMouseEnterExit() { return false; } | 75 virtual bool invalidateOnMouseEnterExit() { return false; } |
| 76 virtual bool invalidateOnWindowActiveChange() const { return false; } | 76 virtual bool invalidateOnWindowActiveChange() const { return false; } |
| 77 | 77 |
| 78 // Returns parts of the scrollbar which must be repainted following a change | 78 // Returns parts of the scrollbar which must be repainted following a change |
| 79 // in the thumb position, given scroll positions before and after. | 79 // in the thumb position, given scroll positions before and after. |
| 80 virtual ScrollbarPart invalidateOnThumbPositionChange( | 80 virtual ScrollbarPart invalidateOnThumbPositionChange( |
| 81 const ScrollbarThemeClient&, | 81 const ScrollbarThemeClient&, |
| 82 float oldPosition, | 82 float oldPosition, |
| 83 float newPosition) const { | 83 float newPosition) const { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 179 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
| 180 | 180 |
| 181 private: | 181 private: |
| 182 static ScrollbarTheme& | 182 static ScrollbarTheme& |
| 183 nativeTheme(); // Must be implemented to return the correct theme subclass. | 183 nativeTheme(); // Must be implemented to return the correct theme subclass. |
| 184 static bool gMockScrollbarsEnabled; | 184 static bool gMockScrollbarsEnabled; |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 } // namespace blink | 187 } // namespace blink |
| 188 #endif | 188 #endif |
| OLD | NEW |