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

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

Issue 6759044: Prepopulating "Print To PDF" select file dialog with a suggested filename and path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Getting print job title in a different way. Created 9 years, 8 months 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 "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 15 matching lines...) Expand all
26 PrintPreviewHandler(); 26 PrintPreviewHandler();
27 virtual ~PrintPreviewHandler(); 27 virtual ~PrintPreviewHandler();
28 28
29 // WebUIMessageHandler implementation. 29 // WebUIMessageHandler implementation.
30 virtual void RegisterMessages(); 30 virtual void RegisterMessages();
31 31
32 // SelectFileDialog::Listener implementation. 32 // SelectFileDialog::Listener implementation.
33 virtual void FileSelected(const FilePath& path, int index, void* params); 33 virtual void FileSelected(const FilePath& path, int index, void* params);
34 34
35 // Displays a modal dialog, prompting the user to select a file. 35 // Displays a modal dialog, prompting the user to select a file.
36 void SelectFile(); 36 void SelectFile(const FilePath& default_path);
37 37
38 private: 38 private:
39 friend class EnumeratePrintersTaskProxy; 39 friend class EnumeratePrintersTaskProxy;
40 40
41 // Get the list of printers. |args| is unused. 41 // Get the list of printers. |args| is unused.
42 void HandleGetPrinters(const ListValue* args); 42 void HandleGetPrinters(const ListValue* args);
43 43
44 // Ask the initiator renderer to generate a preview. 44 // Ask the initiator renderer to generate a preview.
45 // First element of |args| is a job settings JSON string. 45 // First element of |args| is a job settings JSON string.
46 void HandleGetPreview(const ListValue* args); 46 void HandleGetPreview(const ListValue* args);
(...skipping 24 matching lines...) Expand all
71 // Set to true if the preview should be landscape. 71 // Set to true if the preview should be landscape.
72 bool landscape_; 72 bool landscape_;
73 73
74 // The underlying dialog object. 74 // The underlying dialog object.
75 scoped_refptr<SelectFileDialog> select_file_dialog_; 75 scoped_refptr<SelectFileDialog> select_file_dialog_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 77 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
78 }; 78 };
79 79
80 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 80 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698