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/public/platform/WebScrollbar.h

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: rename to ScrollbarOverlayColorTheme Created 4 years, 2 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 BackTrackPart = 1 << 2, 55 BackTrackPart = 1 << 2,
56 ThumbPart = 1 << 3, 56 ThumbPart = 1 << 3,
57 ForwardTrackPart = 1 << 4, 57 ForwardTrackPart = 1 << 4,
58 BackButtonEndPart = 1 << 5, 58 BackButtonEndPart = 1 << 5,
59 ForwardButtonEndPart = 1 << 6, 59 ForwardButtonEndPart = 1 << 6,
60 ScrollbarBGPart = 1 << 7, 60 ScrollbarBGPart = 1 << 7,
61 TrackBGPart = 1 << 8, 61 TrackBGPart = 1 << 8,
62 AllParts = 0xffffffff 62 AllParts = 0xffffffff
63 }; 63 };
64 64
65 enum ScrollbarOverlayStyle { 65 enum ScrollbarOverlayColorTheme {
66 ScrollbarOverlayStyleDefault, 66 ScrollbarOverlayColorThemeDefault,
67 ScrollbarOverlayStyleDark, 67 ScrollbarOverlayColorThemeDark,
68 ScrollbarOverlayStyleLight 68 ScrollbarOverlayColorThemeLight
69 }; 69 };
70 70
71 virtual ~WebScrollbar() {} 71 virtual ~WebScrollbar() {}
72 72
73 // Return true if this is an overlay scrollbar. 73 // Return true if this is an overlay scrollbar.
74 virtual bool isOverlay() const = 0; 74 virtual bool isOverlay() const = 0;
75 75
76 // Gets the current value (i.e. position inside the region). 76 // Gets the current value (i.e. position inside the region).
77 virtual int value() const = 0; 77 virtual int value() const = 0;
78 78
79 virtual WebPoint location() const = 0; 79 virtual WebPoint location() const = 0;
80 virtual WebSize size() const = 0; 80 virtual WebSize size() const = 0;
81 virtual bool enabled() const = 0; 81 virtual bool enabled() const = 0;
82 virtual int maximum() const = 0; 82 virtual int maximum() const = 0;
83 virtual int totalSize() const = 0; 83 virtual int totalSize() const = 0;
84 virtual bool isScrollableAreaActive() const = 0; 84 virtual bool isScrollableAreaActive() const = 0;
85 virtual void getTickmarks(WebVector<WebRect>& tickmarks) const = 0; 85 virtual void getTickmarks(WebVector<WebRect>& tickmarks) const = 0;
86 virtual ScrollbarControlSize controlSize() const = 0; 86 virtual ScrollbarControlSize controlSize() const = 0;
87 virtual ScrollbarPart pressedPart() const = 0; 87 virtual ScrollbarPart pressedPart() const = 0;
88 virtual ScrollbarPart hoveredPart() const = 0; 88 virtual ScrollbarPart hoveredPart() const = 0;
89 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const = 0; 89 virtual ScrollbarOverlayColorTheme scrollbarOverlayColorTheme() const = 0;
90 virtual bool isCustomScrollbar() const = 0; 90 virtual bool isCustomScrollbar() const = 0;
91 virtual Orientation orientation() const = 0; 91 virtual Orientation orientation() const = 0;
92 virtual bool isLeftSideVerticalScrollbar() const = 0; 92 virtual bool isLeftSideVerticalScrollbar() const = 0;
93 virtual float elasticOverscroll() const = 0; 93 virtual float elasticOverscroll() const = 0;
94 virtual void setElasticOverscroll(float) = 0; 94 virtual void setElasticOverscroll(float) = 0;
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif 99 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698