| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/layers/snap_point_list.h" |
| 6 |
| 7 namespace cc { |
| 8 |
| 9 bool SnapPoint::operator==(const SnapPoint& other) const { |
| 10 return offset == other.offset && must_snap == other.must_snap && |
| 11 is_start == other.is_start && is_end == other.is_end; |
| 12 } |
| 13 |
| 14 bool SnapPoint::operator!=(const SnapPoint& other) const { |
| 15 return !(*this == other); |
| 16 } |
| 17 |
| 18 SnapPointList::SnapPointList() {} |
| 19 |
| 20 SnapPointList::SnapPointList(const SnapPointList& other) { |
| 21 horizontal = other.horizontal; |
| 22 vertical = other.vertical; |
| 23 } |
| 24 |
| 25 SnapPointList::~SnapPointList() {} |
| 26 |
| 27 bool SnapPointList::operator==(const SnapPointList& other) const { |
| 28 return horizontal == other.horizontal && vertical == other.vertical; |
| 29 } |
| 30 |
| 31 bool SnapPointList::operator!=(const SnapPointList& other) const { |
| 32 return !(*this == other); |
| 33 } |
| 34 |
| 35 } // namespace cc |
| OLD | NEW |