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

Side by Side Diff: webkit/compositor_bindings/web_layer_impl.cc

Issue 11975007: Implement one-page-at-a-time mousewheel scrolling in the impl thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/compositor_bindings/web_layer_impl.h" 5 #include "webkit/compositor_bindings/web_layer_impl.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "cc/animation.h" 8 #include "cc/animation.h"
9 #include "cc/layer.h" 9 #include "cc/layer.h"
10 #include "cc/region.h" 10 #include "cc/region.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 void WebLayerImpl::setMaxScrollPosition(WebSize maxScrollPosition) 333 void WebLayerImpl::setMaxScrollPosition(WebSize maxScrollPosition)
334 { 334 {
335 m_layer->setMaxScrollOffset(maxScrollPosition); 335 m_layer->setMaxScrollOffset(maxScrollPosition);
336 } 336 }
337 337
338 WebSize WebLayerImpl::maxScrollPosition() const 338 WebSize WebLayerImpl::maxScrollPosition() const
339 { 339 {
340 return m_layer->maxScrollOffset(); 340 return m_layer->maxScrollOffset();
341 } 341 }
342 342
343 void WebLayerImpl::setVisibleScrollArea(WebSize scrollArea)
344 {
345 m_layer->setVisibleScrollArea(scrollArea);
346 }
347
348 WebSize WebLayerImpl::visibleScrollArea() const
349 {
350 return m_layer->visibleScrollArea();
351 }
352
343 void WebLayerImpl::setScrollable(bool scrollable) 353 void WebLayerImpl::setScrollable(bool scrollable)
344 { 354 {
345 m_layer->setScrollable(scrollable); 355 m_layer->setScrollable(scrollable);
346 } 356 }
347 357
348 bool WebLayerImpl::scrollable() const 358 bool WebLayerImpl::scrollable() const
349 { 359 {
350 return m_layer->scrollable(); 360 return m_layer->scrollable();
351 } 361 }
352 362
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 { 451 {
442 m_layer->setLayerScrollClient(scrollClient); 452 m_layer->setLayerScrollClient(scrollClient);
443 } 453 }
444 454
445 Layer* WebLayerImpl::layer() const 455 Layer* WebLayerImpl::layer() const
446 { 456 {
447 return m_layer.get(); 457 return m_layer.get();
448 } 458 }
449 459
450 } // namespace WebKit 460 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698