blob: 1ca91ca35cfe3008ef2e16c3b9757471a89ab691 [file] [log] [blame]
// Copyright 2018 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 COMPONENTS_EXO_NOTIFICATION_H_
#define COMPONENTS_EXO_NOTIFICATION_H_
#include <string>
#include <vector>
#include "base/callback.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
namespace exo {
// Handles notification shown in message center.
class Notification {
public:
Notification(const std::string& title,
const std::string& message,
const std::string& display_source,
const std::string& notification_id,
const std::string& notifier_id,
const std::vector<std::string>& buttons,
const base::RepeatingCallback<void(bool)>& close_callback,
const base::RepeatingCallback<void(const absl::optional<int>&)>&
click_callback);
Notification(const Notification&) = delete;
Notification& operator=(const Notification&) = delete;
// Closes this notification.
void Close();
private:
const std::string notification_id_;
};
} // namespace exo
#endif // COMPONENTS_EXO_NOTIFICATION_H_