OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void paintButton(GraphicsContext&, | 64 void paintButton(GraphicsContext&, |
65 const Scrollbar&, | 65 const Scrollbar&, |
66 const IntRect&, | 66 const IntRect&, |
67 ScrollbarPart) override; | 67 ScrollbarPart) override; |
68 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; | 68 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; |
69 | 69 |
70 bool shouldRepaintAllPartsOnInvalidation() const override; | 70 bool shouldRepaintAllPartsOnInvalidation() const override; |
71 ScrollbarPart invalidateOnThumbPositionChange( | 71 ScrollbarPart invalidateOnThumbPositionChange( |
72 const ScrollbarThemeClient&, | 72 const ScrollbarThemeClient&, |
73 float oldPosition, | 73 float oldPosition, |
74 float newPosition) const override; | 74 float newPosition, |
| 75 bool hitBeginOrEndChanged) const override; |
75 | 76 |
76 private: | 77 private: |
77 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, ButtonSizeHorizontal); | 78 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, ButtonSizeHorizontal); |
78 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, ButtonSizeVertical); | 79 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, ButtonSizeVertical); |
79 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, NoButtonsReturnsSize0); | 80 FRIEND_TEST_ALL_PREFIXES(ScrollbarThemeAuraTest, NoButtonsReturnsSize0); |
80 | 81 |
81 virtual bool hasScrollbarButtons(ScrollbarOrientation) const; | 82 virtual bool hasScrollbarButtons(ScrollbarOrientation) const; |
82 IntSize buttonSize(const ScrollbarThemeClient&); | 83 IntSize buttonSize(const ScrollbarThemeClient&); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace blink | 86 } // namespace blink |
86 | 87 |
87 #endif | 88 #endif |
OLD | NEW |