OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 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_CHROMEOS_UI_KIOSK_EXTERNAL_UPDATE_NOTIFICATION_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_UI_KIOSK_EXTERNAL_UPDATE_NOTIFICATION_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" |
| 10 |
| 11 namespace chromeos { |
| 12 |
| 13 class KioskExternalUpdateNotificationView; |
| 14 |
| 15 // Provides the UI showing kiosk external update status to admin. |
| 16 class KioskExternalUpdateNotification { |
| 17 public: |
| 18 explicit KioskExternalUpdateNotification(const base::string16& message); |
| 19 virtual ~KioskExternalUpdateNotification(); |
| 20 |
| 21 void ShowMessage(const base::string16& message); |
| 22 |
| 23 // Dismisses the notication UI. |
| 24 void Dismiss(); |
| 25 |
| 26 private: |
| 27 void CreateAndShowNotificationView(const base::string16& message); |
| 28 |
| 29 KioskExternalUpdateNotificationView* view_; // Owned by views hierarchy. |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(KioskExternalUpdateNotification); |
| 32 }; |
| 33 |
| 34 } // namespace chromeos |
| 35 |
| 36 #endif // CHROME_BROWSER_CHROMEOS_UI_KIOSK_EXTERNAL_UPDATE_NOTIFICATION_H_ |
OLD | NEW |