blob: 32da17924e9992829ad94e2b1540bafe75574b2a [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2012 The Chromium Authors
[email protected]bab43262012-05-30 19:21:182// 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]bab43262012-05-30 19:21:187
Alan Screend2260302022-10-27 23:03:478#include "base/functional/callback_forward.h"
9
[email protected]bab43262012-05-30 19:21:1810// Shows a window-modal error that printing failed for some unknown reason.
[email protected]f5a405ae2014-03-12 20:43:5011// TODO(vitalybuka, crbug.com/351550): Should be replaced with better UI.
12void ShowPrintErrorDialog();
[email protected]bab43262012-05-30 19:21:1813
Alan Screend2260302022-10-27 23:03:4714// 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.
17void SetShowPrintErrorDialogForTest(base::RepeatingClosure callback);
18
[email protected]bab43262012-05-30 19:21:1819#endif // CHROME_BROWSER_PRINTING_PRINT_ERROR_DIALOG_H_