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

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

Issue 12177009: Printing selection from context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/prefs/public/pref_member.h" 9 #include "base/prefs/public/pref_member.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Same as PrintNow(), but for the case where we want to send the result to 53 // Same as PrintNow(), but for the case where we want to send the result to
54 // another destination. 54 // another destination.
55 // TODO(mad) Add an argument so we can pass the destination interface. 55 // TODO(mad) Add an argument so we can pass the destination interface.
56 bool PrintToDestination(); 56 bool PrintToDestination();
57 57
58 // Initiate print preview of the current document by first notifying the 58 // Initiate print preview of the current document by first notifying the
59 // renderer. Since this happens asynchronous, the print preview dialog 59 // renderer. Since this happens asynchronous, the print preview dialog
60 // creation will not be completed on the return of this function. Returns 60 // creation will not be completed on the return of this function. Returns
61 // false if print preview is impossible at the moment. 61 // false if print preview is impossible at the moment.
62 bool PrintPreviewNow(); 62 bool PrintPreviewNow(bool selection_only);
63 63
64 // Notify PrintViewManager that print preview is starting in the renderer for 64 // Notify PrintViewManager that print preview is starting in the renderer for
65 // a particular WebNode. 65 // a particular WebNode.
66 void PrintPreviewForWebNode(); 66 void PrintPreviewForWebNode();
67 67
68 // Notify PrintViewManager that print preview has finished. Unfreeze the 68 // Notify PrintViewManager that print preview has finished. Unfreeze the
69 // renderer in the case of scripted print preview. 69 // renderer in the case of scripted print preview.
70 void PrintPreviewDone(); 70 void PrintPreviewDone();
71 71
72 // Whether to block scripted printing for our tab or not. 72 // Whether to block scripted printing for our tab or not.
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 // Whether our content is in blocked state. 213 // Whether our content is in blocked state.
214 bool tab_content_blocked_; 214 bool tab_content_blocked_;
215 215
216 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 216 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
217 }; 217 };
218 218
219 } // namespace printing 219 } // namespace printing
220 220
221 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 221 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698