summaryrefslogtreecommitdiff
path: root/chromium/cc/trees/browser_controls_params.cc
blob: 4c762b335b26159bb85fc8d7122149ff0c1bc705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cc/trees/browser_controls_params.h"

namespace cc {

bool BrowserControlsParams::operator==(
    const BrowserControlsParams& other) const {
  return top_controls_height == other.top_controls_height &&
         top_controls_min_height == other.top_controls_min_height &&
         bottom_controls_height == other.bottom_controls_height &&
         bottom_controls_min_height == other.bottom_controls_min_height &&
         animate_browser_controls_height_changes ==
             other.animate_browser_controls_height_changes &&
         browser_controls_shrink_blink_size ==
             other.browser_controls_shrink_blink_size;
}

bool BrowserControlsParams::operator!=(
    const BrowserControlsParams& other) const {
  return !(*this == other);
}

}  // namespace cc