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/pref_member.h" | 9 #include "base/prefs/pref_member.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // Prints the current document immediately. Since the rendering is | 39 // Prints the current document immediately. Since the rendering is |
40 // asynchronous, the actual printing will not be completed on the return of | 40 // asynchronous, the actual printing will not be completed on the return of |
41 // this function. Returns false if printing is impossible at the moment. | 41 // this function. Returns false if printing is impossible at the moment. |
42 bool PrintNow(); | 42 bool PrintNow(); |
43 | 43 |
44 // Same as PrintNow(), but for the case where a user prints with the system | 44 // Same as PrintNow(), but for the case where a user prints with the system |
45 // dialog from print preview. | 45 // dialog from print preview. |
46 bool PrintForSystemDialogNow(); | 46 bool PrintForSystemDialogNow(); |
47 | 47 |
48 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to | 48 // Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to |
49 // show the native system dialog. This can happen from both initiator tab and | 49 // show the native system dialog. This can happen from both initiator and |
50 // preview dialog. | 50 // preview dialog. |
51 bool AdvancedPrintNow(); | 51 bool AdvancedPrintNow(); |
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 |
(...skipping 152 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 |