summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/ui/kiosk_external_update_notification.h
blob: e8e3acb3eeb051a3af201377354ce748eae2e281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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_