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

Side by Side Diff: cc/blink/web_layer_impl.cc

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Add documentation Created 3 years, 5 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
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/input/scroll_boundary_behavior.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "cc/blink/web_layer_impl.h" 5 #include "cc/blink/web_layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 21 matching lines...) Expand all
32 #include "ui/gfx/geometry/rect_conversions.h" 32 #include "ui/gfx/geometry/rect_conversions.h"
33 #include "ui/gfx/geometry/vector2d_conversions.h" 33 #include "ui/gfx/geometry/vector2d_conversions.h"
34 34
35 using cc::Layer; 35 using cc::Layer;
36 using blink::WebLayer; 36 using blink::WebLayer;
37 using blink::WebFloatPoint; 37 using blink::WebFloatPoint;
38 using blink::WebVector; 38 using blink::WebVector;
39 using blink::WebRect; 39 using blink::WebRect;
40 using blink::WebSize; 40 using blink::WebSize;
41 using blink::WebColor; 41 using blink::WebColor;
42 using blink::WebScrollBoundaryBehavior;
42 43
43 namespace cc_blink { 44 namespace cc_blink {
44 45
45 WebLayerImpl::WebLayerImpl() 46 WebLayerImpl::WebLayerImpl()
46 : layer_(Layer::Create()), contents_opaque_is_fixed_(false) {} 47 : layer_(Layer::Create()), contents_opaque_is_fixed_(false) {}
47 48
48 WebLayerImpl::WebLayerImpl(scoped_refptr<Layer> layer) 49 WebLayerImpl::WebLayerImpl(scoped_refptr<Layer> layer)
49 : layer_(layer), contents_opaque_is_fixed_(false) { 50 : layer_(layer), contents_opaque_is_fixed_(false) {
50 } 51 }
51 52
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 } 484 }
484 485
485 void WebLayerImpl::SetHasWillChangeTransformHint(bool has_will_change) { 486 void WebLayerImpl::SetHasWillChangeTransformHint(bool has_will_change) {
486 layer_->SetHasWillChangeTransformHint(has_will_change); 487 layer_->SetHasWillChangeTransformHint(has_will_change);
487 } 488 }
488 489
489 void WebLayerImpl::ShowScrollbars() { 490 void WebLayerImpl::ShowScrollbars() {
490 layer_->ShowScrollbars(); 491 layer_->ShowScrollbars();
491 } 492 }
492 493
494 void WebLayerImpl::SetScrollBoundaryBehavior(
495 const blink::WebScrollBoundaryBehavior& behavior) {
496 layer_->SetScrollBoundaryBehavior(
497 static_cast<cc::ScrollBoundaryBehavior>(behavior));
498 }
499
493 } // namespace cc_blink 500 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/input/scroll_boundary_behavior.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698