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

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

Issue 2478743003: add Tickmarks to aura overlay scrollbar (Closed)
Patch Set: typo 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) 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 protected: 84 protected:
85 int maxOverlapBetweenPages() override { return 40; } 85 int maxOverlapBetweenPages() override { return 40; }
86 86
87 bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, 87 bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&,
88 const PlatformMouseEvent&) override; 88 const PlatformMouseEvent&) override;
89 int scrollbarPartToHIPressedState(ScrollbarPart); 89 int scrollbarPartToHIPressedState(ScrollbarPart);
90 90
91 virtual void updateButtonPlacement(WebScrollbarButtonsPlacement) {} 91 virtual void updateButtonPlacement(WebScrollbarButtonsPlacement) {}
92 92
93 void paintGivenTickmarks(SkCanvas*,
94 const Scrollbar&,
95 const IntRect&,
96 const Vector<IntRect>&);
97
98 IntRect trackRect(const ScrollbarThemeClient&, 93 IntRect trackRect(const ScrollbarThemeClient&,
99 bool painting = false) override; 94 bool painting = false) override;
100 IntRect backButtonRect(const ScrollbarThemeClient&, 95 IntRect backButtonRect(const ScrollbarThemeClient&,
101 ScrollbarPart, 96 ScrollbarPart,
102 bool painting = false) override; 97 bool painting = false) override;
103 IntRect forwardButtonRect(const ScrollbarThemeClient&, 98 IntRect forwardButtonRect(const ScrollbarThemeClient&,
104 ScrollbarPart, 99 ScrollbarPart,
105 bool painting = false) override; 100 bool painting = false) override;
106 101
107 bool hasButtons(const ScrollbarThemeClient&) override { return false; } 102 bool hasButtons(const ScrollbarThemeClient&) override { return false; }
108 bool hasThumb(const ScrollbarThemeClient&) override; 103 bool hasThumb(const ScrollbarThemeClient&) override;
109 104
110 int minimumThumbLength(const ScrollbarThemeClient&) override; 105 int minimumThumbLength(const ScrollbarThemeClient&) override;
111 106
107 int tickmarkBorderWidth() override { return 1; }
108
112 RefPtr<Pattern> m_overhangPattern; 109 RefPtr<Pattern> m_overhangPattern;
113 }; 110 };
114 } 111 }
115 112
116 #endif // ScrollbarThemeMac_h 113 #endif // ScrollbarThemeMac_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698