OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // Prints the current document immediately. Since the rendering is | 40 // Prints the current document immediately. Since the rendering is |
41 // asynchronous, the actual printing will not be completed on the return of | 41 // asynchronous, the actual printing will not be completed on the return of |
42 // this function. Returns false if printing is impossible at the moment. | 42 // this function. Returns false if printing is impossible at the moment. |
43 bool PrintNow(); | 43 bool PrintNow(); |
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 |
| 50 // show the native system dialog. This can happen from both initiator tab and |
| 51 // preview tab. |
| 52 bool AdvancedPrintNow(); |
| 53 |
49 // Initiate print preview of the current document by first notifying the | 54 // Initiate print preview of the current document by first notifying the |
50 // renderer. Since this happens asynchronous, the print preview tab creation | 55 // renderer. Since this happens asynchronous, the print preview tab creation |
51 // will not be completed on the return of this function. Returns false if | 56 // will not be completed on the return of this function. Returns false if |
52 // print preview is impossible at the moment. | 57 // print preview is impossible at the moment. |
53 bool PrintPreviewNow(); | 58 bool PrintPreviewNow(); |
54 | 59 |
55 // Handles cancelled preview printing request. | 60 // Handles cancelled preview printing request. |
56 void PreviewPrintingRequestCancelled(); | 61 void PreviewPrintingRequestCancelled(); |
57 | 62 |
58 // Sets |observer| as the current PrintViewManagerObserver. Pass in NULL to | 63 // Sets |observer| as the current PrintViewManagerObserver. Pass in NULL to |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 179 |
175 // The document cookie of the current PrinterQuery. | 180 // The document cookie of the current PrinterQuery. |
176 int cookie_; | 181 int cookie_; |
177 | 182 |
178 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); | 183 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); |
179 }; | 184 }; |
180 | 185 |
181 } // namespace printing | 186 } // namespace printing |
182 | 187 |
183 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ | 188 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ |
OLD | NEW |