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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 int WebPluginScrollbarImpl::maximum() const | 137 int WebPluginScrollbarImpl::maximum() const |
138 { | 138 { |
139 return m_scrollbar->maximum(); | 139 return m_scrollbar->maximum(); |
140 } | 140 } |
141 | 141 |
142 int WebPluginScrollbarImpl::totalSize() const | 142 int WebPluginScrollbarImpl::totalSize() const |
143 { | 143 { |
144 return m_scrollbar->totalSize(); | 144 return m_scrollbar->totalSize(); |
145 } | 145 } |
146 | 146 |
147 bool WebPluginScrollbarImpl::isScrollViewScrollbar() const | |
148 { | |
149 return m_scrollbar->isScrollViewScrollbar(); | |
150 } | |
151 | |
152 bool WebPluginScrollbarImpl::isScrollableAreaActive() const | 147 bool WebPluginScrollbarImpl::isScrollableAreaActive() const |
153 { | 148 { |
154 return m_scrollbar->isScrollableAreaActive(); | 149 return m_scrollbar->isScrollableAreaActive(); |
155 } | 150 } |
156 | 151 |
157 void WebPluginScrollbarImpl::getTickmarks(WebVector<WebRect>& tickmarks) const | 152 void WebPluginScrollbarImpl::getTickmarks(WebVector<WebRect>& tickmarks) const |
158 { | 153 { |
159 m_client->getTickmarks(const_cast<WebPluginScrollbarImpl*>(this), &tickmarks
); | 154 m_client->getTickmarks(const_cast<WebPluginScrollbarImpl*>(this), &tickmarks
); |
160 } | 155 } |
161 | 156 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 blink::ScrollDirection scrollDirection; | 357 blink::ScrollDirection scrollDirection; |
363 blink::ScrollGranularity scrollGranularity; | 358 blink::ScrollGranularity scrollGranularity; |
364 if (WebViewImpl::mapKeyCodeForScroll(keyCode, &scrollDirection, &scrollGranu
larity)) { | 359 if (WebViewImpl::mapKeyCodeForScroll(keyCode, &scrollDirection, &scrollGranu
larity)) { |
365 // Will return false if scroll direction wasn't compatible with this scr
ollbar. | 360 // Will return false if scroll direction wasn't compatible with this scr
ollbar. |
366 return m_group->scroll(scrollDirection, scrollGranularity); | 361 return m_group->scroll(scrollDirection, scrollGranularity); |
367 } | 362 } |
368 return false; | 363 return false; |
369 } | 364 } |
370 | 365 |
371 } // namespace blink | 366 } // namespace blink |
OLD | NEW |