[Telemetry] Add SurfaceFlingerStats to timeline_based_measurement
[chromium-blink-merge.git] / printing / page_range.h
blob989c33c22f7eb1673dfd3f1ef7f19938d9de7d23
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 #ifndef PRINTING_PAGE_RANGE_H_
6 #define PRINTING_PAGE_RANGE_H_
8 #include <vector>
10 #include "printing_export.h"
12 namespace printing {
14 struct PageRange;
16 typedef std::vector<PageRange> PageRanges;
18 // Print range is inclusive. To select one page, set from == to.
19 struct PRINTING_EXPORT PageRange {
20 int from;
21 int to;
23 bool operator==(const PageRange& rhs) const {
24 return from == rhs.from && to == rhs.to;
27 // Retrieves the sorted list of unique pages in the page ranges.
28 static std::vector<int> GetPages(const PageRanges& ranges);
31 } // namespace printing
33 #endif // PRINTING_PAGE_RANGE_H_