chromeos: dbus: add Bluetooth properties support
[chromium-blink-merge.git] / content / common / page_zoom.cc
blob889d2e4ce38fa90d1af6c05ee471d4086b869427
1 // Copyright (c) 2011 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.
5 #include <cmath>
7 #include "content/public/common/page_zoom.h"
9 namespace content {
11 const double kMinimumZoomFactor = 0.25;
12 const double kMaximumZoomFactor = 5.0;
13 const double kEpsilon = 0.001;
15 bool ZoomValuesEqual(double value_a, double value_b) {
16 return (std::fabs(value_a - value_b) <= kEpsilon);
19 } // namespace content