Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: components/ui/zoom/page_zoom_constants.h

Issue 847703003: Refactor to move chrome_page_zoom functions to components/ui/zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/ui/zoom/page_zoom_constants.h
diff --git a/components/ui/zoom/page_zoom_constants.h b/components/ui/zoom/page_zoom_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..52d22707c66f1782c3fbeeda047a0e35850d90ff
--- /dev/null
+++ b/components/ui/zoom/page_zoom_constants.h
@@ -0,0 +1,20 @@
+// 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.
+
+#ifndef COMPONENTS_UI_ZOOM_PAGE_ZOOM_CONSTANTS_H_
+#define COMPONENTS_UI_ZOOM_PAGE_ZOOM_CONSTANTS_H_
+
+#include <array>
+
+namespace ui_zoom {
+
+// Default zoom factors supported by ui_zoom.
+extern const double kPresetZoomFactors[];
+
+// Size of |kPresetZoomFactors|.
+extern const std::size_t kPresetZoomFactorsSize;
+
+} // namespace ui_zoom
+
+#endif // COMPONENTS_UI_ZOOM_PAGE_ZOOM_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698