OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |