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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebScrollbarImpl.cpp

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: fix test 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) 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 WebScrollbar::ScrollbarPart WebScrollbarImpl::pressedPart() const { 83 WebScrollbar::ScrollbarPart WebScrollbarImpl::pressedPart() const {
84 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->pressedPart()); 84 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->pressedPart());
85 } 85 }
86 86
87 WebScrollbar::ScrollbarPart WebScrollbarImpl::hoveredPart() const { 87 WebScrollbar::ScrollbarPart WebScrollbarImpl::hoveredPart() const {
88 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->hoveredPart()); 88 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->hoveredPart());
89 } 89 }
90 90
91 WebScrollbar::ScrollbarOverlayStyle WebScrollbarImpl::scrollbarOverlayStyle() 91 WebScrollbarOverlayColorTheme WebScrollbarImpl::scrollbarOverlayColorTheme()
92 const { 92 const {
93 return static_cast<WebScrollbar::ScrollbarOverlayStyle>( 93 return static_cast<WebScrollbarOverlayColorTheme>(
94 m_scrollbar->getScrollbarOverlayStyle()); 94 m_scrollbar->getScrollbarOverlayColorTheme());
95 } 95 }
96 96
97 WebScrollbar::Orientation WebScrollbarImpl::orientation() const { 97 WebScrollbar::Orientation WebScrollbarImpl::orientation() const {
98 return static_cast<WebScrollbar::Orientation>(m_scrollbar->orientation()); 98 return static_cast<WebScrollbar::Orientation>(m_scrollbar->orientation());
99 } 99 }
100 100
101 bool WebScrollbarImpl::isLeftSideVerticalScrollbar() const { 101 bool WebScrollbarImpl::isLeftSideVerticalScrollbar() const {
102 return m_scrollbar->isLeftSideVerticalScrollbar(); 102 return m_scrollbar->isLeftSideVerticalScrollbar();
103 } 103 }
104 104
105 bool WebScrollbarImpl::isCustomScrollbar() const { 105 bool WebScrollbarImpl::isCustomScrollbar() const {
106 return m_scrollbar->isCustomScrollbar(); 106 return m_scrollbar->isCustomScrollbar();
107 } 107 }
108 108
109 float WebScrollbarImpl::elasticOverscroll() const { 109 float WebScrollbarImpl::elasticOverscroll() const {
110 return m_scrollbar->elasticOverscroll(); 110 return m_scrollbar->elasticOverscroll();
111 } 111 }
112 112
113 void WebScrollbarImpl::setElasticOverscroll(float elasticOverscroll) { 113 void WebScrollbarImpl::setElasticOverscroll(float elasticOverscroll) {
114 m_scrollbar->setElasticOverscroll(elasticOverscroll); 114 m_scrollbar->setElasticOverscroll(elasticOverscroll);
115 } 115 }
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698