| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 int WebScrollbarImpl::totalSize() const | 69 int WebScrollbarImpl::totalSize() const |
| 70 { | 70 { |
| 71 return m_scrollbar->totalSize(); | 71 return m_scrollbar->totalSize(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 bool WebScrollbarImpl::isScrollableAreaActive() const | 74 bool WebScrollbarImpl::isScrollableAreaActive() const |
| 75 { | 75 { |
| 76 return m_scrollbar->isScrollableAreaActive(); | 76 return m_scrollbar->isScrollableAreaActive(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void WebScrollbarImpl::getTickmarks(WebVector<WebRect>& webTickmarks) const | |
| 80 { | |
| 81 Vector<IntRect> tickmarks; | |
| 82 m_scrollbar->getTickmarks(tickmarks); | |
| 83 | |
| 84 WebVector<WebRect> result(tickmarks.size()); | |
| 85 for (size_t i = 0; i < tickmarks.size(); ++i) | |
| 86 result[i] = tickmarks[i]; | |
| 87 | |
| 88 webTickmarks.swap(result); | |
| 89 } | |
| 90 | |
| 91 WebScrollbar::ScrollbarPart WebScrollbarImpl::pressedPart() const | 79 WebScrollbar::ScrollbarPart WebScrollbarImpl::pressedPart() const |
| 92 { | 80 { |
| 93 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->pressedPart()); | 81 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->pressedPart()); |
| 94 } | 82 } |
| 95 | 83 |
| 96 WebScrollbar::ScrollbarPart WebScrollbarImpl::hoveredPart() const | 84 WebScrollbar::ScrollbarPart WebScrollbarImpl::hoveredPart() const |
| 97 { | 85 { |
| 98 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->hoveredPart()); | 86 return static_cast<WebScrollbar::ScrollbarPart>(m_scrollbar->hoveredPart()); |
| 99 } | 87 } |
| 100 | 88 |
| 101 WebScrollbar::ScrollbarOverlayStyle WebScrollbarImpl::scrollbarOverlayStyle() co
nst | 89 WebScrollbar::ScrollbarOverlayStyle WebScrollbarImpl::scrollbarOverlayStyle() co
nst |
| 102 { | 90 { |
| 103 return static_cast<WebScrollbar::ScrollbarOverlayStyle>(m_scrollbar->scrollb
arOverlayStyle()); | 91 return static_cast<WebScrollbar::ScrollbarOverlayStyle>(m_scrollbar->scrollb
arOverlayStyle()); |
| 104 } | 92 } |
| 105 | 93 |
| 106 WebScrollbar::Orientation WebScrollbarImpl::orientation() const | 94 WebScrollbar::Orientation WebScrollbarImpl::orientation() const |
| 107 { | 95 { |
| 108 return static_cast<WebScrollbar::Orientation>(m_scrollbar->orientation()); | 96 return static_cast<WebScrollbar::Orientation>(m_scrollbar->orientation()); |
| 109 } | 97 } |
| 110 | 98 |
| 111 bool WebScrollbarImpl::isLeftSideVerticalScrollbar() const | 99 bool WebScrollbarImpl::isLeftSideVerticalScrollbar() const |
| 112 { | 100 { |
| 113 return m_scrollbar->isLeftSideVerticalScrollbar(); | 101 return m_scrollbar->isLeftSideVerticalScrollbar(); |
| 114 } | 102 } |
| 115 | 103 |
| 116 } // namespace blink | 104 } // namespace blink |
| OLD | NEW |