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

Side by Side Diff: chrome/browser/printing/printed_page.cc

Issue 149181: Move Emf class to the printing library. Also creates a platform agnostic Nat... (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/printed_page.h" 5 #include "chrome/browser/printing/printed_page.h"
6 6
7 #include "chrome/common/gfx/emf.h"
8
9 namespace printing { 7 namespace printing {
10 8
11 PrintedPage::PrintedPage(int page_number, 9 PrintedPage::PrintedPage(int page_number,
12 gfx::Emf* emf, 10 NativeMetafile* native_metafile,
13 const gfx::Size& page_size) 11 const gfx::Size& page_size)
14 : page_number_(page_number), 12 : page_number_(page_number),
15 emf_(emf), 13 native_metafile_(native_metafile),
16 page_size_(page_size) { 14 page_size_(page_size) {
17 } 15 }
18 16
19 PrintedPage::~PrintedPage() { 17 PrintedPage::~PrintedPage() {
20 } 18 }
21 19
22 const gfx::Emf* PrintedPage::emf() const { 20 const NativeMetafile* PrintedPage::native_metafile() const {
23 return emf_.get(); 21 return native_metafile_.get();
24 } 22 }
25 23
26 } // namespace printing 24 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/browser/printing/printed_page.h ('k') | chrome/browser/printing/printing_layout_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698