Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.h

Issue 2478463003: Revert of Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 HitTestBehavior); 42 HitTestBehavior);
43 ScrollbarThemeOverlay(int thumbThickness, 43 ScrollbarThemeOverlay(int thumbThickness,
44 int scrollbarMargin, 44 int scrollbarMargin,
45 HitTestBehavior, 45 HitTestBehavior,
46 Color); 46 Color);
47 ~ScrollbarThemeOverlay() override {} 47 ~ScrollbarThemeOverlay() override {}
48 48
49 int scrollbarThickness(ScrollbarControlSize) override; 49 int scrollbarThickness(ScrollbarControlSize) override;
50 int scrollbarMargin() const override; 50 int scrollbarMargin() const override;
51 bool usesOverlayScrollbars() const override; 51 bool usesOverlayScrollbars() const override;
52 double overlayScrollbarFadeOutDelaySeconds() const override;
53 double overlayScrollbarFadeOutDurationSeconds() const override;
54 52
55 int thumbPosition(const ScrollbarThemeClient&, float scrollPosition) override; 53 int thumbPosition(const ScrollbarThemeClient&, float scrollPosition) override;
56 int thumbLength(const ScrollbarThemeClient&) override; 54 int thumbLength(const ScrollbarThemeClient&) override;
57 55
58 bool hasButtons(const ScrollbarThemeClient&) override { return false; } 56 bool hasButtons(const ScrollbarThemeClient&) override { return false; }
59 bool hasThumb(const ScrollbarThemeClient&) override; 57 bool hasThumb(const ScrollbarThemeClient&) override;
60 58
61 IntRect backButtonRect(const ScrollbarThemeClient&, 59 IntRect backButtonRect(const ScrollbarThemeClient&,
62 ScrollbarPart, 60 ScrollbarPart,
63 bool painting = false) override; 61 bool painting = false) override;
(...skipping 14 matching lines...) Expand all
78 int m_thumbThickness; 76 int m_thumbThickness;
79 int m_scrollbarMargin; 77 int m_scrollbarMargin;
80 HitTestBehavior m_allowHitTest; 78 HitTestBehavior m_allowHitTest;
81 Color m_color; 79 Color m_color;
82 const bool m_useSolidColor; 80 const bool m_useSolidColor;
83 }; 81 };
84 82
85 } // namespace blink 83 } // namespace blink
86 84
87 #endif 85 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698