summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* + This CL pulls in all the PDF code (i.e. we are now compiling the PDF ↵vandebo@chromium.org2011-04-083-0/+244
| | | | | | | | | | | | | | | | | backend on Chrome). + Add a Metafile to contain Skia PDF content. + Add a VectorPlatformDevice for use with the Skia PDF backend. BUG=62889 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80841 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=80857 Review URL: http://codereview.chromium.org/6499024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80873 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 80841 - + This CL pulls in all the PDF code (i.e. we are now ↵vandebo@chromium.org2011-04-073-244/+0
| | | | | | | | | compiling the PDF backend on Chrome).+ Add a Metafile to contain Skia PDF content.+ Add a VectorPlatformDevice for use with the Skia PDF backend.BUG=62889TEST=NONEReview URL: http://codereview.chromium.org/6499024 TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/6814028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80857 0039d316-1c4b-4281-b951-d872f2087c98
* + This CL pulls in all the PDF code (i.e. we are now compiling the PDF ↵vandebo@chromium.org2011-04-073-0/+244
| | | | | | | | | | | | | | backend on Chrome). + Add a Metafile to contain Skia PDF content. + Add a VectorPlatformDevice for use with the Skia PDF backend. BUG=62889 TEST=NONE Review URL: http://codereview.chromium.org/6499024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80841 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Set the duplex setting in print ticket.kmadhusu@chromium.org2011-04-074-1/+21
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6792061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80789 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Set the specified orientation in the print ticket.kmadhusu@chromium.org2011-04-052-2/+20
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6764006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80514 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Set number of copies and collate in print ticket.kmadhusu@chromium.org2011-04-058-27/+51
| | | | | | | | | BUG=none TEST=Enable print preview on mac. Print preview a webpage. Change the number of copies and collate setting values. Print the preview data. Review URL: http://codereview.chromium.org/6780001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80499 0039d316-1c4b-4281-b951-d872f2087c98
* Rename some printing classes and minor cleanups.vandebo@chromium.org2011-04-0410-92/+92
| | | | | | | | | | | | | | | | Rename: PdfPsMetafile -> PdfMetafileCairo PdfMetafile -> PdfMetafileCg (Mac) VectorPlatformDevice -> VectorPlatformDeviceEmf/Cairo (Windows/Linux varients) This is in preparation for VectorPlatformDeviceSkia. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6783036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80390 0039d316-1c4b-4281-b951-d872f2087c98
* roll skiareed@google.com2011-04-011-8/+8
| | | | | | Review URL: http://codereview.chromium.org/6771051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80206 0039d316-1c4b-4281-b951-d872f2087c98
* Added a DCHECK to validate the metafile page count while handling alpha ↵kmadhusu@chromium.org2011-04-013-3/+6
| | | | | | | | | | | | | blend transparency. Added a member variable |page_count_| in emf_win.h to track the pages count. BUG=none TEST=windows printing works after code changes. Review URL: http://codereview.chromium.org/6790002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80167 0039d316-1c4b-4281-b951-d872f2087c98
* Preselecting default printer in print preview tab drop down list in Linux, ↵dpapad@chromium.org2011-04-013-0/+10
| | | | | | | | | | | Mac, Win. BUG=76290 TEST=Set default printer. Open chrome with --enable-print-preview, hit ctrl+p, the default printer should appear selected in the drop-down list. Close the print preview tab. Change default printer and hit ctrl+p again. The new default printer should be selected. Review URL: http://codereview.chromium.org/6670099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80111 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Added a helper function to get print job settings from dictionary.kmadhusu@chromium.org2011-03-315-12/+31
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6758014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80008 0039d316-1c4b-4281-b951-d872f2087c98
* Adding "Print to PDF" functionality in the print preview tab.dpapad@chromium.org2011-03-312-0/+4
| | | | | | | | | BUG=69508 TEST=Linux, Mac only: Run chrome with flag --enable-print-preview, hit ctrl+p, select Print to PDF from the printer list and hit the print button, select a filename and save. A pdf file should be generated at the specified location. Review URL: http://codereview.chromium.org/6698074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79941 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Add a print job constant for "printerName".kmadhusu@chromium.org2011-03-303-1/+5
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6756016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79843 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Implement basic settings.thestig@chromium.org2011-03-2910-5/+83
| | | | | | | | BUG=57902 TEST=Run with --enable-print-preview, make sure orientation and color settings work. Review URL: http://codereview.chromium.org/6736014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79655 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Remove NOTIMPLEMENTED() function call in ↵kmadhusu@chromium.org2011-03-281-3/+4
| | | | | | | | | | | | | PrintingContextWin::UpdatePrintSettings(). In r79315, Code changes were made to pass the default options on first preview generation ie., UpdatePrintSettings() function is called while generating the print preview. Because of the NOTIMPLEMENTED() function call in that function, we are seeing a crash in debug builds while generating print preview. BUG=77473 TEST= none Review URL: http://codereview.chromium.org/6727032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79622 0039d316-1c4b-4281-b951-d872f2087c98
* Add the ability to write comments to PNGCodec::Encode.tony@chromium.org2011-03-281-2/+2
| | | | | | | | | I'm going to use this to write layout test checksums to the expected png files. Review URL: http://codereview.chromium.org/6696085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79592 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-2811-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Adding CreateFromData to NativeMetafileFactorydpapad@chromium.org2011-03-263-4/+37
| | | | | | | | | | | | | | Also making Create method calling Init on the metafile before returning it. Usually clients of the NativeMetafileFactory call Create and the Init or InitFromData on the object to initialize it. Now the returned object will already be initialized. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6696076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79475 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Remove NOTIMPLEMENTED() function call in ↵kmadhusu@chromium.org2011-03-251-2/+3
| | | | | | | | | | | | | PrintingContextCairo::UpdatePrintSettings(). In r79315, Code changes were made to pass the default options on first preview generation ie., UpdatePrintSettings() function is called while generating the print preview. Because of the NOTIMPLEMENTED() function call in that function, we are seeing a crash in debug builds while generating print preview. BUG=none TEST= Enable print preview on linux. Press Ctrl+p on any webpage. Print Preview is generated successfully. Review URL: http://codereview.chromium.org/6747003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79441 0039d316-1c4b-4281-b951-d872f2087c98
* Make PluginInstance::PrintPDFOutput metafile-implementation agnostic on Linux.vandebo@chromium.org2011-03-256-17/+93
| | | | | | | | | | | PluginInstance::PrintPDFOutput wants to set the PDF bits in the metafile. This change makes it agnostic to the implementation of NativeMetafile in use by using the SkRefDict in SkDevice (and removes the old mechanism). BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6733036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79412 0039d316-1c4b-4281-b951-d872f2087c98
* Removing GetData helper from NativeMetafile interface and also renaming it ↵dpapad@chromium.org2011-03-244-10/+12
| | | | | | | | | | | | | to GetDataAsVector to avoid overloading. Also making it private since it is only used internally. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6713081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79343 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Added a helper function 'SetPrinter' in ↵kmadhusu@chromium.org2011-03-232-10/+20
| | | | | | | | | | | printing/printing_context_mac.h BUG=76123 TEST=Preview printing works after code changes. Review URL: http://codereview.chromium.org/6708074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79135 0039d316-1c4b-4281-b951-d872f2087c98
* Removing method printing::PdfPsMetafile::SetRawData().dpapad@chromium.org2011-03-234-57/+34
| | | | | | | | | | | | Its functionality is now served from InitFromData. This results in having no ifdef for Linux in the NativeMetafile interface. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6712039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79126 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup NativeMetafile (win) interface and EMF class.vandebo@chromium.org2011-03-224-117/+78
| | | | | | | | | | | | | | | | | - Rename CreateDc to Init() and remove unused argument (all non-test calls were CreateDc(NULL, NULL). [This matches cross platform interface.] - Remove CreateFileBackedDc from the NativeMetafile interface and make InitToFile() in the EMF class. - Remove CreateFromFile from the NativeMetafile interface and make it InitFromFile() in the EMF class. - Move the CloseEmf method into the destructor, making the Emf class a use once class (matches actual use). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78666 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78669 Review URL: http://codereview.chromium.org/6695013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78969 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Use const reference instead of a const pointer.thestig@chromium.org2011-03-227-8/+8
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6675013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78955 0039d316-1c4b-4281-b951-d872f2087c98
* Unfork VectorPlatformCanvas.vandebo@chromium.org2011-03-217-1/+53
| | | | | | | | | | | | | | | | | | | | Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78662 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78663 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78812 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78815 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78859 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78860 Review URL: http://codereview.chromium.org/6665046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78935 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Set the selected printer for the current print job.kmadhusu@chromium.org2011-03-217-20/+54
| | | | | | | | | BUG=76123 TEST=Enable print preview on mac. Press ctrl+p to print a page. On print preview tab, select a printer and press print button. Review URL: http://codereview.chromium.org/6698013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78919 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 78859 - Unfork VectorPlatformCanvas.vandebo@chromium.org2011-03-217-53/+1
| | | | | | | | | | | | | | | | | | | | Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78662 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78663 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78812 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78815 Review URL: http://codereview.chromium.org/6665046 TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/6711067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78860 0039d316-1c4b-4281-b951-d872f2087c98
* Unfork VectorPlatformCanvas.vandebo@chromium.org2011-03-217-1/+53
| | | | | | | | | | | | | | | | | Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78662 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78663 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78812 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78815 Review URL: http://codereview.chromium.org/6665046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78859 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 78812 - Unfork VectorPlatformCanvas.vandebo@chromium.org2011-03-197-53/+1
| | | | | | | | | | | | | | | | | Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78662 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78663 Review URL: http://codereview.chromium.org/6665046 TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/6708046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78815 0039d316-1c4b-4281-b951-d872f2087c98
* Unfork VectorPlatformCanvas.vandebo@chromium.org2011-03-197-1/+53
| | | | | | | | | | | | | | Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78662 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78663 Review URL: http://codereview.chromium.org/6665046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78812 0039d316-1c4b-4281-b951-d872f2087c98
* Renaming NativeMetafile related methods to more appropriate names.dpapad@chromium.org2011-03-1913-16/+16
| | | | | | | | | | | | 1) Renaming Close() to FinishDocument() 2) Renaming NativeMetafileFactory::CreateMetafile() to Create(), since the name of the class already implies what is being created BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6674037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78788 0039d316-1c4b-4281-b951-d872f2087c98
* Unifying StartPage across all platformsdpapad@chromium.org2011-03-189-46/+54
| | | | | | | | | | | Since there is already a getter method for retrieving the context, there is no reason for StartPage to return it. Also the parameter list can be uniform across all platforms. Some arguments are unused in order to achieve this. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6667069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78717 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 78666 - Cleanup NativeMetafile (win) interface and EMF class.vandebo@chromium.org2011-03-184-78/+117
| | | | | | | | | | | | | | | | | - Rename CreateDc to Init() and remove unused argument (all non-test calls were CreateDc(NULL, NULL). [This matches cross platform interface.] - Remove CreateFileBackedDc from the NativeMetafile interface and make InitToFile() in the EMF class. - Remove CreateFromFile from the NativeMetafile interface and make it InitFromFile() in the EMF class. - Move the CloseEmf method into the destructor, making the Emf class a use once class (matches actual use). BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6695013 TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/6712030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78669 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup NativeMetafile (win) interface and EMF class.vandebo@chromium.org2011-03-184-117/+78
| | | | | | | | | | | | | | - Rename CreateDc to Init() and remove unused argument (all non-test calls were CreateDc(NULL, NULL). [This matches cross platform interface.] - Remove CreateFileBackedDc from the NativeMetafile interface and make InitToFile() in the EMF class. - Remove CreateFromFile from the NativeMetafile interface and make it InitFromFile() in the EMF class. - Move the CloseEmf method into the destructor, making the Emf class a use once class (matches actual use). BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6695013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78666 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 78662 - Unfork VectorPlatformCanvas.vandebo@chromium.org2011-03-187-55/+0
| | | | | | | | | | | | | | Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices). BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6665046 TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/6713029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78663 0039d316-1c4b-4281-b951-d872f2087c98
* Unfork VectorPlatformCanvas.vandebo@chromium.org2011-03-187-0/+55
| | | | | | | | | | | Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices). BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6665046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78662 0039d316-1c4b-4281-b951-d872f2087c98
* Stop overloading Init() in NativeMetafile.vandebo@chromium.org2011-03-1711-16/+17
| | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6709009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78625 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Disable printing the header/footer on Windows.thestig@chromium.org2011-03-161-0/+5
| | | | | | | | BUG=none TEST=Print output on Windows no longer includes header/footer. Review URL: http://codereview.chromium.org/6682034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78403 0039d316-1c4b-4281-b951-d872f2087c98
* Move Start/EndPage() from NewPage/PageDone()dpapad@chromium.org2011-03-161-6/+5
| | | | | | | | | | | to inside the metafile. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6673035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78399 0039d316-1c4b-4281-b951-d872f2087c98
* Unifying NativeMetafile class interface (as much as possible) for Linux, ↵dpapad@chromium.org2011-03-1616-500/+330
| | | | | | | | | | | Mac, Win BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6611032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78320 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Modify 'NSPrintInfo' raw pointer to a scoped_nsobject.kmadhusu@chromium.org2011-03-152-19/+16
| | | | | | | | | BUG=none TEST=printing works after code change. Review URL: http://codereview.chromium.org/6698035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78298 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Move the default margin constants out of PdfPsMetafile.thestig@chromium.org2011-03-155-36/+24
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6694005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78266 0039d316-1c4b-4281-b951-d872f2087c98
* Remove wstrings from ui/base/text_elider.h functions.tony@chromium.org2011-03-081-1/+1
| | | | | | | | | | | The last param is for languages, which is already a std::string in most places. BUG=23581 Review URL: http://codereview.chromium.org/6627061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77219 0039d316-1c4b-4281-b951-d872f2087c98
* (1) Hook up the print button to send the pages to the default printer for ↵kmadhusu@chromium.org2011-03-057-4/+46
| | | | | | | | | | | | | printing without displaying a native dialog. (2) Made code changes to accept a print page range from the user and to print only those specified pages. BUG=none TEST=Enable print preview on mac, provide a valid page range and make sure print button in print preview works. Review URL: http://codereview.chromium.org/6533006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77003 0039d316-1c4b-4281-b951-d872f2087c98
* Linux Printing: Properly print a subset of all pages.thestig@chromium.org2011-03-033-7/+23
| | | | | | | | BUG=59732 TEST=Open a 10 PDF, print pages 6,7,8 or pages 6-8. Review URL: http://codereview.chromium.org/6592093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76835 0039d316-1c4b-4281-b951-d872f2087c98
* Applying factory pattern (through NativeMetafileFactory class). It is used ↵dpapad@chromium.org2011-03-0217-121/+473
| | | | | | | | | | | | | | | to retrieve different printing contexts (based on the platform and user preferences). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76553 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=76555 Review URL: http://codereview.chromium.org/6544028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76581 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 76553 - Applying factory pattern (through NativeMetafileFactory ↵jam@chromium.org2011-03-0217-473/+121
| | | | | | | | | | | | | | class). It is used to retrieve different printing contexts (based on the platform and user preferences). BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6544028 TBR=dpapad@chromium.org Review URL: http://codereview.chromium.org/6594121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76555 0039d316-1c4b-4281-b951-d872f2087c98
* Applying factory pattern (through NativeMetafileFactory class). It is used ↵dpapad@chromium.org2011-03-0217-121/+473
| | | | | | | | | | | to retrieve different printing contexts (based on the platform and user preferences). BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6544028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76553 0039d316-1c4b-4281-b951-d872f2087c98
* Removing PS option from PdsPsMetafiledpapad@chromium.org2011-02-253-122/+28
| | | | | | | | | | | Also removing PS unit test. BUG=NONE TEST= tested on Linux Review URL: http://codereview.chromium.org/6576058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76053 0039d316-1c4b-4281-b951-d872f2087c98