OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/layers/layer.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1604 SetNeedsPushProperties(); | 1604 SetNeedsPushProperties(); |
1605 } | 1605 } |
1606 | 1606 |
1607 void Layer::SetMayContainVideo(bool yes) { | 1607 void Layer::SetMayContainVideo(bool yes) { |
1608 if (may_contain_video_ == yes) | 1608 if (may_contain_video_ == yes) |
1609 return; | 1609 return; |
1610 may_contain_video_ = yes; | 1610 may_contain_video_ = yes; |
1611 SetNeedsPushProperties(); | 1611 SetNeedsPushProperties(); |
1612 } | 1612 } |
1613 | 1613 |
| 1614 void Layer::SetScrollbarsHiddenFromImplSide(bool hidden) { |
| 1615 if (inputs_.client) |
| 1616 inputs_.client->didChangeScrollbarsHidden(hidden); |
| 1617 } |
| 1618 |
1614 bool Layer::FilterIsAnimating() const { | 1619 bool Layer::FilterIsAnimating() const { |
1615 return GetAnimationHost()->IsAnimatingFilterProperty( | 1620 return GetAnimationHost()->IsAnimatingFilterProperty( |
1616 element_id(), GetElementTypeForAnimation()); | 1621 element_id(), GetElementTypeForAnimation()); |
1617 } | 1622 } |
1618 | 1623 |
1619 bool Layer::TransformIsAnimating() const { | 1624 bool Layer::TransformIsAnimating() const { |
1620 return GetAnimationHost()->IsAnimatingTransformProperty( | 1625 return GetAnimationHost()->IsAnimatingTransformProperty( |
1621 element_id(), GetElementTypeForAnimation()); | 1626 element_id(), GetElementTypeForAnimation()); |
1622 } | 1627 } |
1623 | 1628 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1889 | 1894 |
1890 LayerTree* Layer::GetLayerTree() const { | 1895 LayerTree* Layer::GetLayerTree() const { |
1891 return layer_tree_; | 1896 return layer_tree_; |
1892 } | 1897 } |
1893 | 1898 |
1894 void Layer::SetLayerIdForTesting(int id) { | 1899 void Layer::SetLayerIdForTesting(int id) { |
1895 inputs_.layer_id = id; | 1900 inputs_.layer_id = id; |
1896 } | 1901 } |
1897 | 1902 |
1898 } // namespace cc | 1903 } // namespace cc |
OLD | NEW |