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

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

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: update 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) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 void finishCurrentScrollAnimations() const; 115 void finishCurrentScrollAnimations() const;
116 116
117 virtual void didAddScrollbar(Scrollbar&, ScrollbarOrientation); 117 virtual void didAddScrollbar(Scrollbar&, ScrollbarOrientation);
118 virtual void willRemoveScrollbar(Scrollbar&, ScrollbarOrientation); 118 virtual void willRemoveScrollbar(Scrollbar&, ScrollbarOrientation);
119 119
120 virtual void contentsResized(); 120 virtual void contentsResized();
121 121
122 bool hasOverlayScrollbars() const; 122 bool hasOverlayScrollbars() const;
123 void setScrollbarOverlayStyle(ScrollbarOverlayStyle); 123 void setScrollbarOverlayStyle(ScrollbarOverlayStyle);
124 void recalculateScrollbarOverlayStyle(Color); 124 static ScrollbarOverlayStyle calculateScrollbarOverlayStyle(
125 ScrollbarOverlayStyle getScrollbarOverlayStyle() const { 125 Color backgroundColor);
126 void recalculateScrollbarOverlayStyle(Color, bool isTransparent);
127 virtual ScrollbarOverlayStyle getScrollbarOverlayStyle() const {
126 return static_cast<ScrollbarOverlayStyle>(m_scrollbarOverlayStyle); 128 return static_cast<ScrollbarOverlayStyle>(m_scrollbarOverlayStyle);
127 } 129 }
128 130
129 // This getter will create a ScrollAnimatorBase if it doesn't already exist. 131 // This getter will create a ScrollAnimatorBase if it doesn't already exist.
130 ScrollAnimatorBase& scrollAnimator() const; 132 ScrollAnimatorBase& scrollAnimator() const;
131 133
132 // This getter will return null if the ScrollAnimatorBase hasn't been created 134 // This getter will return null if the ScrollAnimatorBase hasn't been created
133 // yet. 135 // yet.
134 ScrollAnimatorBase* existingScrollAnimator() const { 136 ScrollAnimatorBase* existingScrollAnimator() const {
135 return m_scrollAnimator; 137 return m_scrollAnimator;
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // vertical-lr / ltr NO NO 409 // vertical-lr / ltr NO NO
408 // vertical-lr / rtl NO YES 410 // vertical-lr / rtl NO YES
409 // vertical-rl / ltr YES NO 411 // vertical-rl / ltr YES NO
410 // vertical-rl / rtl YES YES 412 // vertical-rl / rtl YES YES
411 IntPoint m_scrollOrigin; 413 IntPoint m_scrollOrigin;
412 }; 414 };
413 415
414 } // namespace blink 416 } // namespace blink
415 417
416 #endif // ScrollableArea_h 418 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698