Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / ui / kiosk_external_update_notification.h
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  private:
24   friend class KioskExternalUpdateNotificationView;
25   void Dismiss();
26   void CreateAndShowNotificationView(const base::string16& message);
27
28   KioskExternalUpdateNotificationView* view_;  // Owned by views hierarchy.
29
30   DISALLOW_COPY_AND_ASSIGN(KioskExternalUpdateNotification);
31 };
32
33 }  // namespace chromeos
34
35 #endif  // CHROME_BROWSER_CHROMEOS_UI_KIOSK_EXTERNAL_UPDATE_NOTIFICATION_H_