OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "platform/scroll/ScrollbarThemeMacCommon.h" | 34 #include "platform/scroll/ScrollbarThemeMacCommon.h" |
35 | 35 |
36 typedef id ScrollbarPainter; | 36 typedef id ScrollbarPainter; |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class PLATFORM_EXPORT ScrollbarThemeMacOverlayAPI : public ScrollbarThemeMacComm
on { | 40 class PLATFORM_EXPORT ScrollbarThemeMacOverlayAPI : public ScrollbarThemeMacComm
on { |
41 public: | 41 public: |
42 bool shouldRepaintAllPartsOnInvalidation() const override { return false; } | 42 bool shouldRepaintAllPartsOnInvalidation() const override { return false; } |
| 43 ScrollbarPart invalidateOnThumbPositionChange( |
| 44 const ScrollbarThemeClient&, float oldPosition, float newPosition) const
override; |
43 void updateEnabledState(const ScrollbarThemeClient&) override; | 45 void updateEnabledState(const ScrollbarThemeClient&) override; |
44 int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override; | 46 int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override; |
45 bool usesOverlayScrollbars() const override; | 47 bool usesOverlayScrollbars() const override; |
46 void updateScrollbarOverlayStyle(const ScrollbarThemeClient&) override; | 48 void updateScrollbarOverlayStyle(const ScrollbarThemeClient&) override; |
47 WebScrollbarButtonsPlacement buttonsPlacement() const override; | 49 WebScrollbarButtonsPlacement buttonsPlacement() const override; |
48 | 50 |
49 void registerScrollbar(ScrollbarThemeClient&) override; | 51 void registerScrollbar(ScrollbarThemeClient&) override; |
50 void unregisterScrollbar(ScrollbarThemeClient&) override; | 52 void unregisterScrollbar(ScrollbarThemeClient&) override; |
51 | 53 |
52 void setNewPainterForScrollbar(ScrollbarThemeClient&, ScrollbarPainter); | 54 void setNewPainterForScrollbar(ScrollbarThemeClient&, ScrollbarPainter); |
(...skipping 11 matching lines...) Expand all Loading... |
64 | 66 |
65 bool hasButtons(const ScrollbarThemeClient&) override { return false; } | 67 bool hasButtons(const ScrollbarThemeClient&) override { return false; } |
66 bool hasThumb(const ScrollbarThemeClient&) override; | 68 bool hasThumb(const ScrollbarThemeClient&) override; |
67 | 69 |
68 int minimumThumbLength(const ScrollbarThemeClient&) override; | 70 int minimumThumbLength(const ScrollbarThemeClient&) override; |
69 }; | 71 }; |
70 | 72 |
71 } | 73 } |
72 | 74 |
73 #endif | 75 #endif |
OLD | NEW |