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

Side by Side Diff: chrome/browser/ui/webui/print_preview_handler.h

Issue 8428005: Print Preview: Making margin selection sticky (part 1/2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 9 years, 1 month 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) 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Pointer to current print system. 182 // Pointer to current print system.
183 scoped_refptr<printing::PrintBackend> print_backend_; 183 scoped_refptr<printing::PrintBackend> print_backend_;
184 184
185 // The underlying dialog object. 185 // The underlying dialog object.
186 scoped_refptr<SelectFileDialog> select_file_dialog_; 186 scoped_refptr<SelectFileDialog> select_file_dialog_;
187 187
188 static FilePath* last_saved_path_; 188 static FilePath* last_saved_path_;
189 static std::string* last_used_printer_cloud_print_data_; 189 static std::string* last_used_printer_cloud_print_data_;
190 static std::string* last_used_printer_name_; 190 static std::string* last_used_printer_name_;
191 static printing::ColorModels last_used_color_model_; 191 static printing::ColorModels last_used_color_model_;
192 static printing::MarginType last_used_margins_type_;
192 193
193 // A count of how many requests received to regenerate preview data. 194 // A count of how many requests received to regenerate preview data.
194 // Initialized to 0 then incremented and emitted to a histogram. 195 // Initialized to 0 then incremented and emitted to a histogram.
195 int regenerate_preview_request_count_; 196 int regenerate_preview_request_count_;
196 197
197 // A count of how many requests received to show manage printers dialog. 198 // A count of how many requests received to show manage printers dialog.
198 int manage_printers_dialog_request_count_; 199 int manage_printers_dialog_request_count_;
199 200
200 // Whether we have already logged a failed print preview. 201 // Whether we have already logged a failed print preview.
201 bool reported_failed_preview_; 202 bool reported_failed_preview_;
202 203
203 // Whether we have already logged the number of printers this session. 204 // Whether we have already logged the number of printers this session.
204 bool has_logged_printers_count_; 205 bool has_logged_printers_count_;
205 206
206 // Holds the path to the print to pdf request. It is empty if no such request 207 // Holds the path to the print to pdf request. It is empty if no such request
207 // exists. 208 // exists.
208 scoped_ptr<FilePath> print_to_pdf_path_; 209 scoped_ptr<FilePath> print_to_pdf_path_;
209 210
210 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 211 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
211 }; 212 };
212 213
213 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 214 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview.js ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698