summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_error_dialog.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-30 19:21:18 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-30 19:21:18 +0000
commitbab4326dcf49aeab45abf7214b08ee486cba0842 (patch)
treee4464c45edbef876a32a5d2a853803c33a2e209c /chrome/browser/printing/print_error_dialog.h
parent99aace34fc2b2ed5f2f62ca4dd61b6d81da9a13d (diff)
downloadchromium_src-bab4326dcf49aeab45abf7214b08ee486cba0842.zip
chromium_src-bab4326dcf49aeab45abf7214b08ee486cba0842.tar.gz
chromium_src-bab4326dcf49aeab45abf7214b08ee486cba0842.tar.bz2
Clean up display of print errors to avoid use of BrowserList::GetLastActive().
http://crbug.com/129187 TEST=none Review URL: https://chromiumcodereview.appspot.com/10449058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing/print_error_dialog.h')
-rw-r--r--chrome/browser/printing/print_error_dialog.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/printing/print_error_dialog.h b/chrome/browser/printing/print_error_dialog.h
new file mode 100644
index 0000000..6538033
--- /dev/null
+++ b/chrome/browser/printing/print_error_dialog.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PRINTING_PRINT_ERROR_DIALOG_H_
+#define CHROME_BROWSER_PRINTING_PRINT_ERROR_DIALOG_H_
+#pragma once
+
+#include "ui/gfx/native_widget_types.h"
+
+namespace browser {
+
+// Shows a window-modal error that printing failed for some unknown reason.
+void ShowPrintErrorDialog(gfx::NativeWindow parent);
+
+} // namespace browser
+
+#endif // CHROME_BROWSER_PRINTING_PRINT_ERROR_DIALOG_H_