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

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

Issue 2579663002: Update comments about scrollbar thickness. (Closed)
Patch Set: _ Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // which are explicitly invalidated will be repainted. 52 // which are explicitly invalidated will be repainted.
53 virtual bool shouldRepaintAllPartsOnInvalidation() const { return true; } 53 virtual bool shouldRepaintAllPartsOnInvalidation() const { return true; }
54 54
55 virtual void updateEnabledState(const ScrollbarThemeClient&) {} 55 virtual void updateEnabledState(const ScrollbarThemeClient&) {}
56 56
57 virtual bool paint(const Scrollbar&, GraphicsContext&, const CullRect&); 57 virtual bool paint(const Scrollbar&, GraphicsContext&, const CullRect&);
58 58
59 virtual ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&); 59 virtual ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&);
60 60
61 // This returns a fixed value regardless of device-scale-factor. 61 // This returns a fixed value regardless of device-scale-factor.
62 // This returns thickness when scrollbar is painted. i.e. It's not 0 even in
63 // overlay scrollbar mode.
62 // See also Scrollbar::scrollbarThickness(). 64 // See also Scrollbar::scrollbarThickness().
63 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) { 65 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) {
64 return 0; 66 return 0;
65 } 67 }
66 virtual int scrollbarMargin() const { return 0; } 68 virtual int scrollbarMargin() const { return 0; }
67 69
68 virtual WebScrollbarButtonsPlacement buttonsPlacement() const { 70 virtual WebScrollbarButtonsPlacement buttonsPlacement() const {
69 return WebScrollbarButtonsPlacementSingle; 71 return WebScrollbarButtonsPlacementSingle;
70 } 72 }
71 73
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); 192 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart);
191 193
192 private: 194 private:
193 static ScrollbarTheme& 195 static ScrollbarTheme&
194 nativeTheme(); // Must be implemented to return the correct theme subclass. 196 nativeTheme(); // Must be implemented to return the correct theme subclass.
195 static bool gMockScrollbarsEnabled; 197 static bool gMockScrollbarsEnabled;
196 }; 198 };
197 199
198 } // namespace blink 200 } // namespace blink
199 #endif 201 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698