OLD | NEW |
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 Loading... |
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 |
OLD | NEW |