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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 tickmarks.resize(webTickmarks.size()); | 121 tickmarks.resize(webTickmarks.size()); |
122 for (size_t i = 0; i < webTickmarks.size(); ++i) | 122 for (size_t i = 0; i < webTickmarks.size(); ++i) |
123 tickmarks[i] = webTickmarks[i]; | 123 tickmarks[i] = webTickmarks[i]; |
124 } | 124 } |
125 | 125 |
126 bool WebScrollbarThemeClientImpl::isScrollableAreaActive() const | 126 bool WebScrollbarThemeClientImpl::isScrollableAreaActive() const |
127 { | 127 { |
128 return m_scrollbar->isScrollableAreaActive(); | 128 return m_scrollbar->isScrollableAreaActive(); |
129 } | 129 } |
130 | 130 |
131 IntPoint WebScrollbarThemeClientImpl::convertFromContainingWindow(const IntPoint
& windowPoint) const | 131 IntPoint WebScrollbarThemeClientImpl::convertFromRootFrame(const IntPoint& point
InRootFrame) const |
132 { | 132 { |
133 // Unused by Chromium scrollbar themes. | 133 // Unused by Chromium scrollbar themes. |
134 ASSERT_NOT_REACHED(); | 134 ASSERT_NOT_REACHED(); |
135 return windowPoint; | 135 return pointInRootFrame; |
136 } | 136 } |
137 | 137 |
138 bool WebScrollbarThemeClientImpl::isCustomScrollbar() const | 138 bool WebScrollbarThemeClientImpl::isCustomScrollbar() const |
139 { | 139 { |
140 return m_scrollbar->isCustomScrollbar(); | 140 return m_scrollbar->isCustomScrollbar(); |
141 } | 141 } |
142 | 142 |
143 ScrollbarOrientation WebScrollbarThemeClientImpl::orientation() const | 143 ScrollbarOrientation WebScrollbarThemeClientImpl::orientation() const |
144 { | 144 { |
145 return static_cast<ScrollbarOrientation>(m_scrollbar->orientation()); | 145 return static_cast<ScrollbarOrientation>(m_scrollbar->orientation()); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 ASSERT_NOT_REACHED(); | 259 ASSERT_NOT_REACHED(); |
260 return toDisplayItemClient(this); | 260 return toDisplayItemClient(this); |
261 } | 261 } |
262 | 262 |
263 String WebScrollbarThemeClientImpl::debugName() const | 263 String WebScrollbarThemeClientImpl::debugName() const |
264 { | 264 { |
265 return "WebScrollbarThemeClientImpl"; | 265 return "WebScrollbarThemeClientImpl"; |
266 } | 266 } |
267 | 267 |
268 } // namespace blink | 268 } // namespace blink |
OLD | NEW |