summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/printing/prefs_util.h
blob: 8220362ac293a3e7797a19f02abd47062f3de9f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_PRINTING_PREFS_UTIL_H_
#define CHROME_BROWSER_PRINTING_PREFS_UTIL_H_

#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/gfx/geometry/size.h"

class PrefService;

namespace printing {

// Parse the printing.paper_size_default preference.
absl::optional<gfx::Size> ParsePaperSizeDefault(const PrefService& prefs);

}  // namespace printing

#endif  // CHROME_BROWSER_PRINTING_PREFS_UTIL_H_