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

Side by Side Diff: Source/web/WebPluginScrollbarImpl.cpp

Issue 648913002: Clean up vestiges of ScrollView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebPluginScrollbarImpl.h ('k') | public/platform/WebScrollbar.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/web/WebPluginScrollbarImpl.h ('k') | public/platform/WebScrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698