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

Unified Diff: chrome/browser/printing/page_range.h

Issue 149212: Move printing related stuff to the root printing project from the browser pro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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: chrome/browser/printing/page_range.h
===================================================================
--- chrome/browser/printing/page_range.h (revision 20026)
+++ chrome/browser/printing/page_range.h (working copy)
@@ -1,34 +0,0 @@
-// Copyright (c) 2006-2008 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 CHROME_BROWSER_PRINTING_PAGE_RANGE_H__
-#define CHROME_BROWSER_PRINTING_PAGE_RANGE_H__
-
-#include <vector>
-
-namespace printing {
-
-struct PageRange;
-
-typedef std::vector<PageRange> PageRanges;
-
-// Print range is inclusive. To select one page, set from == to.
-struct PageRange {
- int from;
- int to;
-
- bool operator==(const PageRange& rhs) const {
- return from == rhs.from && to == rhs.to;
- }
-
- // Retrieves the sorted list of unique pages in the page ranges.
- static std::vector<int> GetPages(const PageRanges& ranges);
-
- // Gets the total number of pages.
- static int GetTotalPages(const PageRanges& ranges);
-};
-
-} // namespace printing
-
-#endif // CHROME_BROWSER_PRINTING_PAGE_RANGE_H__

Powered by Google App Engine
This is Rietveld 408576698