Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | bab4326 | 2012-05-30 19:21:18 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CHROME_BROWSER_PRINTING_PRINT_ERROR_DIALOG_H_ | ||||
6 | #define CHROME_BROWSER_PRINTING_PRINT_ERROR_DIALOG_H_ | ||||
[email protected] | bab4326 | 2012-05-30 19:21:18 | [diff] [blame] | 7 | |
Alan Screen | d226030 | 2022-10-27 23:03:47 | [diff] [blame^] | 8 | #include "base/functional/callback_forward.h" |
9 | |||||
[email protected] | bab4326 | 2012-05-30 19:21:18 | [diff] [blame] | 10 | // Shows a window-modal error that printing failed for some unknown reason. |
[email protected] | f5a405ae | 2014-03-12 20:43:50 | [diff] [blame] | 11 | // TODO(vitalybuka, crbug.com/351550): Should be replaced with better UI. |
12 | void ShowPrintErrorDialog(); | ||||
[email protected] | bab4326 | 2012-05-30 19:21:18 | [diff] [blame] | 13 | |
Alan Screen | d226030 | 2022-10-27 23:03:47 | [diff] [blame^] | 14 | // Provide callback for testing purposes. Allows test framework to be notified |
15 | // of a printer error dialog event without displaying a window-modal dialog | ||||
16 | // that would block testing completion. Must be called from the UI thread. | ||||
17 | void SetShowPrintErrorDialogForTest(base::RepeatingClosure callback); | ||||
18 | |||||
[email protected] | bab4326 | 2012-05-30 19:21:18 | [diff] [blame] | 19 | #endif // CHROME_BROWSER_PRINTING_PRINT_ERROR_DIALOG_H_ |