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

Unified Diff: chrome/browser/chromeos/printing/cups_print_job_notification.h

Issue 2708233006: Report print jobs that are aborted by CUPS as errors. (Closed)
Patch Set: address comments from xdai Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/printing/cups_print_job_notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/printing/cups_print_job_notification.h
diff --git a/chrome/browser/chromeos/printing/cups_print_job_notification.h b/chrome/browser/chromeos/printing/cups_print_job_notification.h
index a5f211d583fc7aa657161f9b2267293ce76e666e..c55486390ca7e775469a3cc952d3de05af6c2bcb 100644
--- a/chrome/browser/chromeos/printing/cups_print_job_notification.h
+++ b/chrome/browser/chromeos/printing/cups_print_job_notification.h
@@ -5,6 +5,10 @@
#ifndef CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_H_
#define CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_H_
+#include <memory>
+#include <string>
+#include <vector>
+
#include "chrome/browser/notifications/notification.h"
#include "chrome/browser/notifications/notification_delegate.h"
@@ -59,6 +63,10 @@ class CupsPrintJobNotification {
// and only show the print job done or failed notification.
bool closed_in_middle_ = false;
+ // If this is true, the user cancelled the job using the cancel button and
+ // should not be notified of events.
+ bool cancelled_by_user_ = false;
+
// Maintains a list of button actions according to the print job's current
// status.
std::unique_ptr<std::vector<ButtonCommand>> button_commands_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/printing/cups_print_job_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698