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

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

Issue 2974183002: Remove bad CallJavascriptFunctionUnsafe call from PrintPreviewUI (Closed)
Patch Set: Rebase Created 3 years, 5 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
OLDNEW
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_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Called when print preview is cancelled due to a new request. 80 // Called when print preview is cancelled due to a new request.
81 void OnPrintPreviewCancelled(); 81 void OnPrintPreviewCancelled();
82 82
83 // Called when printer settings were invalid. 83 // Called when printer settings were invalid.
84 void OnInvalidPrinterSettings(); 84 void OnInvalidPrinterSettings();
85 85
86 // Called when print preview is ready. 86 // Called when print preview is ready.
87 void OnPrintPreviewReady(int preview_uid, int request_id); 87 void OnPrintPreviewReady(int preview_uid, int request_id);
88 88
89 // Called when a print request is cancelled due to its initiator closing.
90 void OnPrintRequestCancelled();
91
89 // Send the print preset options from the document. 92 // Send the print preset options from the document.
90 void SendPrintPresetOptions(bool disable_scaling, int copies, int duplex); 93 void SendPrintPresetOptions(bool disable_scaling, int copies, int duplex);
91 94
92 // Send the print preview page count and fit to page scaling 95 // Send the print preview page count and fit to page scaling
93 void SendPageCountReady(int page_count, 96 void SendPageCountReady(int page_count,
94 int request_id, 97 int request_id,
95 int fit_to_page_scaling); 98 int fit_to_page_scaling);
96 99
97 // Send the default page layout 100 // Send the default page layout
98 void SendPageLayoutReady(const base::DictionaryValue& layout, 101 void SendPageLayoutReady(const base::DictionaryValue& layout,
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 // Proxy for calls to the print backend. Lazily initialized since web_ui() is 471 // Proxy for calls to the print backend. Lazily initialized since web_ui() is
469 // not available at construction time. 472 // not available at construction time.
470 std::unique_ptr<printing::PrinterBackendProxy> printer_backend_proxy_; 473 std::unique_ptr<printing::PrinterBackendProxy> printer_backend_proxy_;
471 474
472 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; 475 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_;
473 476
474 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 477 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
475 }; 478 };
476 479
477 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 480 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/background_printing_manager.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698