OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 #include "ui/gfx/geometry/rect_conversions.h" | 31 #include "ui/gfx/geometry/rect_conversions.h" |
32 #include "ui/gfx/geometry/vector2d_conversions.h" | 32 #include "ui/gfx/geometry/vector2d_conversions.h" |
33 | 33 |
34 using cc::Layer; | 34 using cc::Layer; |
35 using blink::WebLayer; | 35 using blink::WebLayer; |
36 using blink::WebFloatPoint; | 36 using blink::WebFloatPoint; |
37 using blink::WebVector; | 37 using blink::WebVector; |
38 using blink::WebRect; | 38 using blink::WebRect; |
39 using blink::WebSize; | 39 using blink::WebSize; |
40 using blink::WebColor; | 40 using blink::WebColor; |
| 41 using blink::WebScrollBoundaryBehavior; |
41 | 42 |
42 namespace cc_blink { | 43 namespace cc_blink { |
43 | 44 |
44 WebLayerImpl::WebLayerImpl() | 45 WebLayerImpl::WebLayerImpl() |
45 : layer_(Layer::Create()), contents_opaque_is_fixed_(false) {} | 46 : layer_(Layer::Create()), contents_opaque_is_fixed_(false) {} |
46 | 47 |
47 WebLayerImpl::WebLayerImpl(scoped_refptr<Layer> layer) | 48 WebLayerImpl::WebLayerImpl(scoped_refptr<Layer> layer) |
48 : layer_(layer), contents_opaque_is_fixed_(false) { | 49 : layer_(layer), contents_opaque_is_fixed_(false) { |
49 } | 50 } |
50 | 51 |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 blink::WebScrollBoundaryBehavior behavior) { |
| 496 layer_->SetScrollBoundaryBehavior( |
| 497 static_cast<cc::ScrollBoundaryBehavior>(behavior)); |
| 498 } |
| 499 |
493 } // namespace cc_blink | 500 } // namespace cc_blink |
OLD | NEW |