Skip to content

Commit

Permalink
Restored custom zoom values.
Browse files Browse the repository at this point in the history
#4092 was reverted in a separate
commit because it is now in Chromium:
https://chromium.googlesource.com/chromium/src/+/08b57c09851e2bdcb39ea70e46707f3bab6a0a4a

The only difference upstream is 2 additional zoom values we had in
Brave.

This readds those values (4 / 3.0 and 7 / 5.0).
  • Loading branch information
mkarolin committed Mar 19, 2020
1 parent 83cf96b commit 854dc28
Showing 1 changed file with 21 additions and 0 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 (c) 2020 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "components/zoom/page_zoom_constants.h"

#define kPresetZoomFactors kPresetZoomFactors_ChromiumImpl
#define kPresetZoomFactorsSize kPresetZoomFactorsSize_ChromiumImpl
#include "../../../../components/zoom/page_zoom_constants.cc"
#undef kPresetZoomFactors
#undef kPresetZoomFactorsSize

namespace zoom {

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 zoom

0 comments on commit 854dc28

Please sign in to comment.