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

Side by Side Diff: printing/page_setup.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/printing/page_setup.h" 5 #include "printing/page_setup.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace printing { 9 namespace printing {
10 10
11 PageMargins::PageMargins() 11 PageMargins::PageMargins()
12 : header(0), 12 : header(0),
13 footer(0), 13 footer(0),
14 left(0), 14 left(0),
15 right(0), 15 right(0),
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 content_area_.y())); 117 content_area_.y()));
118 } 118 }
119 119
120 void PageSetup::SetRequestedMargins(const PageMargins& requested_margins) { 120 void PageSetup::SetRequestedMargins(const PageMargins& requested_margins) {
121 requested_margins_ = requested_margins; 121 requested_margins_ = requested_margins;
122 if (physical_size_.width() && physical_size_.height()) 122 if (physical_size_.width() && physical_size_.height())
123 Init(physical_size_, printable_area_, text_height_); 123 Init(physical_size_, printable_area_, text_height_);
124 } 124 }
125 125
126 } // namespace printing 126 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698