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

Unified Diff: chrome/browser/chromeos/ui/kiosk_external_update_notification.h

Issue 491403003: Update cached kiosk app crx from usb stick. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add back InformOwnerForDismiss in KioskExternalUpdateNotificationView. Created 6 years, 4 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
Index: chrome/browser/chromeos/ui/kiosk_external_update_notification.h
diff --git a/chrome/browser/chromeos/ui/kiosk_external_update_notification.h b/chrome/browser/chromeos/ui/kiosk_external_update_notification.h
new file mode 100644
index 0000000000000000000000000000000000000000..e8e3acb3eeb051a3af201377354ce748eae2e281
--- /dev/null
+++ b/chrome/browser/chromeos/ui/kiosk_external_update_notification.h
@@ -0,0 +1,35 @@
+// Copyright 2014 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_CHROMEOS_UI_KIOSK_EXTERNAL_UPDATE_NOTIFICATION_H_
+#define CHROME_BROWSER_CHROMEOS_UI_KIOSK_EXTERNAL_UPDATE_NOTIFICATION_H_
+
+#include "base/macros.h"
+#include "base/strings/string16.h"
+
+namespace chromeos {
+
+class KioskExternalUpdateNotificationView;
+
+// Provides the UI showing kiosk external update status to admin.
+class KioskExternalUpdateNotification {
+ public:
+ explicit KioskExternalUpdateNotification(const base::string16& message);
+ virtual ~KioskExternalUpdateNotification();
+
+ void ShowMessage(const base::string16& message);
+
+ private:
+ friend class KioskExternalUpdateNotificationView;
+ void Dismiss();
+ void CreateAndShowNotificationView(const base::string16& message);
+
+ KioskExternalUpdateNotificationView* view_; // Owned by views hierarchy.
+
+ DISALLOW_COPY_AND_ASSIGN(KioskExternalUpdateNotification);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_UI_KIOSK_EXTERNAL_UPDATE_NOTIFICATION_H_

Powered by Google App Engine
This is Rietveld 408576698