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

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

Issue 2478743003: add Tickmarks to aura overlay scrollbar (Closed)
Patch Set: add NOTREACHED check and remove useless head file 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 float oldPosition, 81 float oldPosition,
82 float newPosition) const { 82 float newPosition) const {
83 return AllParts; 83 return AllParts;
84 } 84 }
85 85
86 virtual void paintScrollCorner(GraphicsContext&, 86 virtual void paintScrollCorner(GraphicsContext&,
87 const DisplayItemClient&, 87 const DisplayItemClient&,
88 const IntRect& cornerRect); 88 const IntRect& cornerRect);
89 virtual void paintTickmarks(GraphicsContext&, 89 virtual void paintTickmarks(GraphicsContext&,
90 const Scrollbar&, 90 const Scrollbar&,
91 const IntRect&) {} 91 const IntRect&);
92 92
93 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient&, 93 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient&,
94 const PlatformMouseEvent&); 94 const PlatformMouseEvent&);
95 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient&, 95 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient&,
96 const PlatformMouseEvent&); 96 const PlatformMouseEvent&);
97 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, 97 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&,
98 const PlatformMouseEvent&) { 98 const PlatformMouseEvent&) {
99 return false; 99 return false;
100 } 100 }
101 101
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); 180 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart);
181 181
182 private: 182 private:
183 static ScrollbarTheme& 183 static ScrollbarTheme&
184 nativeTheme(); // Must be implemented to return the correct theme subclass. 184 nativeTheme(); // Must be implemented to return the correct theme subclass.
185 static bool gMockScrollbarsEnabled; 185 static bool gMockScrollbarsEnabled;
186 }; 186 };
187 187
188 } // namespace blink 188 } // namespace blink
189 #endif 189 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698