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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.h

Issue 2631113003: Add metric to know how user use scrollbar (Closed)
Patch Set: rebase Created 3 years, 11 months 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintInvalidationCapableScrollableArea_h 5 #ifndef PaintInvalidationCapableScrollableArea_h
6 #define PaintInvalidationCapableScrollableArea_h 6 #define PaintInvalidationCapableScrollableArea_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/geometry/LayoutRect.h" 9 #include "platform/geometry/LayoutRect.h"
10 #include "platform/scroll/ScrollableArea.h" 10 #include "platform/scroll/ScrollableArea.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // Should be called when the previous visual rects are no longer valid. 34 // Should be called when the previous visual rects are no longer valid.
35 void clearPreviousVisualRects(); 35 void clearPreviousVisualRects();
36 36
37 virtual IntRect scrollCornerAndResizerRect() const { 37 virtual IntRect scrollCornerAndResizerRect() const {
38 return scrollCornerRect(); 38 return scrollCornerRect();
39 } 39 }
40 40
41 LayoutRect visualRectForScrollbarParts() const override; 41 LayoutRect visualRectForScrollbarParts() const override;
42 42
43 void didScrollWithScrollbar(ScrollbarPart, ScrollbarOrientation) override;
44
43 private: 45 private:
44 virtual LayoutScrollbarPart* scrollCorner() const = 0; 46 virtual LayoutScrollbarPart* scrollCorner() const = 0;
45 virtual LayoutScrollbarPart* resizer() const = 0; 47 virtual LayoutScrollbarPart* resizer() const = 0;
46 48
47 void scrollControlWasSetNeedsPaintInvalidation() override; 49 void scrollControlWasSetNeedsPaintInvalidation() override;
48 50
49 bool m_horizontalScrollbarPreviouslyWasOverlay; 51 bool m_horizontalScrollbarPreviouslyWasOverlay;
50 bool m_verticalScrollbarPreviouslyWasOverlay; 52 bool m_verticalScrollbarPreviouslyWasOverlay;
51 LayoutRect m_horizontalScrollbarPreviousVisualRect; 53 LayoutRect m_horizontalScrollbarPreviousVisualRect;
52 LayoutRect m_verticalScrollbarPreviousVisualRect; 54 LayoutRect m_verticalScrollbarPreviousVisualRect;
53 LayoutRect m_scrollCornerAndResizerPreviousVisualRect; 55 LayoutRect m_scrollCornerAndResizerPreviousVisualRect;
54 }; 56 };
55 57
56 } // namespace blink 58 } // namespace blink
57 59
58 #endif // PaintInvalidationCapableScrollableArea_h 60 #endif // PaintInvalidationCapableScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698