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

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

Issue 118338: Add support for printing selection only flag. This only adds the flag to the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/browser/printing/printer_query.cc ('k') | chrome/browser/printing/win_printing_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/win_printing_context.h
===================================================================
--- chrome/browser/printing/win_printing_context.h (revision 17852)
+++ chrome/browser/printing/win_printing_context.h (working copy)
@@ -31,7 +31,7 @@
// Asks the user what printer and format should be used to print. Updates the
// context with the select device settings.
- Result AskUserForSettings(HWND window, int max_pages);
+ Result AskUserForSettings(HWND window, int max_pages, bool has_selection);
// Selects the user's default printer and format. Updates the context with the
// default device settings.
@@ -81,10 +81,10 @@
// temporary object used during the Print... dialog display.
class CallbackHandler;
- // Does bookeeping when an error occurs.
- PrintingContext::Result OnErrror();
+ // Does bookkeeping when an error occurs.
+ PrintingContext::Result OnError();
- // Used in response to the user cancelling the printing.
+ // Used in response to the user canceling the printing.
static BOOL CALLBACK AbortProc(HDC hdc, int nCode);
// Reads the settings from the selected device context. Updates settings_ and
@@ -92,7 +92,8 @@
bool InitializeSettings(const DEVMODE& dev_mode,
const std::wstring& new_device_name,
const PRINTPAGERANGE* ranges,
- int number_ranges);
+ int number_ranges,
+ bool selection_only);
// Retrieves the printer's default low-level settings. hdc_ is allocated with
// this call.
« no previous file with comments | « chrome/browser/printing/printer_query.cc ('k') | chrome/browser/printing/win_printing_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698