Skip to content

Commit

Permalink
Use chromium_src to replace the values used for Zoom
Browse files Browse the repository at this point in the history
Only updates one of the 3 places... (working through the other 2 now)
  • Loading branch information
bsclifton committed Nov 27, 2019
1 parent 612373f commit e3b534c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
21 changes: 21 additions & 0 deletions chromium_src/components/zoom/page_zoom_constants.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2015 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 "components/zoom/page_zoom_constants.h"

#include "base/stl_util.h"

namespace zoom {

// This list is duplicated in chrome/browser/resources/pdf/viewport.js and in
// chrome/browser/resources/settings/appearance_page/appearance_page.js. Please
// make sure the three match.
const double kPresetZoomFactors[] = {0.25, 1 / 3.0, 0.5, 2 / 3.0, 0.75, 0.8,
0.9, 1.0, 1.1, 1.25, 4 / 3.0, 7 / 5.0,
1.5, 1.75, 2.0, 2.5,
3.0, 4.0, 5.0};
const std::size_t kPresetZoomFactorsSize = base::size(kPresetZoomFactors);

} // namespace ui_zoom

2 changes: 1 addition & 1 deletion patches/chrome-VERSION.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/chrome/VERSION b/chrome/VERSION
index 177739cfcedccfa03e317b6863f3466070a427b7..17f62eb039b830bb616921ef2453bf0f55e43a42 100644
index 177739cfcedccfa03e317b6863f3466070a427b7..7262a5d9998a8c7711295d03833c35a23431c7f4 100644
--- a/chrome/VERSION
+++ b/chrome/VERSION
@@ -1,4 +1,4 @@
Expand Down
14 changes: 0 additions & 14 deletions patches/components-zoom-page_zoom_constants.cc.patch

This file was deleted.

0 comments on commit e3b534c

Please sign in to comment.