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

Side by Side Diff: chrome/browser/printing/print_view_manager.h

Issue 10483006: Print support for Windows Metro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to ToT... Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Same as PrintNow(), but for the case where a user prints with the system 45 // Same as PrintNow(), but for the case where a user prints with the system
46 // dialog from print preview. 46 // dialog from print preview.
47 bool PrintForSystemDialogNow(); 47 bool PrintForSystemDialogNow();
48 48
49 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to 49 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to
50 // show the native system dialog. This can happen from both initiator tab and 50 // show the native system dialog. This can happen from both initiator tab and
51 // preview tab. 51 // preview tab.
52 bool AdvancedPrintNow(); 52 bool AdvancedPrintNow();
53 53
54 // Same as PrintNow(), but for the case where we want to send the result to
55 // another destination.
56 // TODO(mad) Add an argument so we can pass the destination interface.
57 bool PrintToDestination();
58
54 // Initiate print preview of the current document by first notifying the 59 // Initiate print preview of the current document by first notifying the
55 // renderer. Since this happens asynchronous, the print preview tab creation 60 // renderer. Since this happens asynchronous, the print preview tab creation
56 // will not be completed on the return of this function. Returns false if 61 // will not be completed on the return of this function. Returns false if
57 // print preview is impossible at the moment. 62 // print preview is impossible at the moment.
58 bool PrintPreviewNow(); 63 bool PrintPreviewNow();
59 64
60 // Notify PrintViewManager that print preview is starting in the renderer for 65 // Notify PrintViewManager that print preview is starting in the renderer for
61 // a particular WebNode. 66 // a particular WebNode.
62 void PrintPreviewForWebNode(); 67 void PrintPreviewForWebNode();
63 68
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 203
199 // Keeps track of the pending callback during scripted print preview. 204 // Keeps track of the pending callback during scripted print preview.
200 content::RenderProcessHost* scripted_print_preview_rph_; 205 content::RenderProcessHost* scripted_print_preview_rph_;
201 206
202 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 207 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
203 }; 208 };
204 209
205 } // namespace printing 210 } // namespace printing
206 211
207 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 212 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698