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_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom); | 73 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom); |
74 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault); | 74 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault); |
75 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, | 75 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, |
76 StickyMarginsCustomThenDefault); | 76 StickyMarginsCustomThenDefault); |
77 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, | 77 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, |
78 GetLastUsedMarginSettingsCustom); | 78 GetLastUsedMarginSettingsCustom); |
79 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, | 79 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, |
80 GetLastUsedMarginSettingsDefault); | 80 GetLastUsedMarginSettingsDefault); |
81 | 81 |
82 TabContentsWrapper* preview_tab_wrapper() const; | 82 TabContentsWrapper* preview_tab_wrapper() const; |
83 TabContents* preview_tab() const; | 83 content::WebContents* preview_tab() const; |
84 | 84 |
85 // Gets the list of printers. |args| is unused. | 85 // Gets the list of printers. |args| is unused. |
86 void HandleGetPrinters(const base::ListValue* args); | 86 void HandleGetPrinters(const base::ListValue* args); |
87 | 87 |
88 // Asks the initiator renderer to generate a preview. First element of |args| | 88 // Asks the initiator renderer to generate a preview. First element of |args| |
89 // is a job settings JSON string. | 89 // is a job settings JSON string. |
90 void HandleGetPreview(const base::ListValue* args); | 90 void HandleGetPreview(const base::ListValue* args); |
91 | 91 |
92 // Gets the job settings from Web UI and initiate printing. First element of | 92 // Gets the job settings from Web UI and initiate printing. First element of |
93 // |args| is a job settings JSON string. | 93 // |args| is a job settings JSON string. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 bool has_logged_printers_count_; | 207 bool has_logged_printers_count_; |
208 | 208 |
209 // Holds the path to the print to pdf request. It is empty if no such request | 209 // Holds the path to the print to pdf request. It is empty if no such request |
210 // exists. | 210 // exists. |
211 scoped_ptr<FilePath> print_to_pdf_path_; | 211 scoped_ptr<FilePath> print_to_pdf_path_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 213 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
214 }; | 214 }; |
215 | 215 |
216 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 216 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
OLD | NEW |