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

Unified Diff: ui/arc/notification/arc_custom_notification_item.h

Issue 2066853002: arc: Show custom notification via notification surface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notification-exo
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « ui/arc/notification/DEPS ('k') | ui/arc/notification/arc_custom_notification_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_custom_notification_item.h
diff --git a/ui/arc/notification/arc_custom_notification_item.h b/ui/arc/notification/arc_custom_notification_item.h
new file mode 100644
index 0000000000000000000000000000000000000000..54c35ab0eb32038b1f75ccfb1d7fd36df10faa5e
--- /dev/null
+++ b/ui/arc/notification/arc_custom_notification_item.h
@@ -0,0 +1,37 @@
+// Copyright 2016 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 UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_
+#define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_
+
+#include "base/macros.h"
+#include "ui/arc/notification/arc_notification_item.h"
+#include "ui/arc/notification/arc_notification_surface_manager.h"
+
+namespace arc {
+
+class ArcCustomNotificationItem
+ : public ArcNotificationItem,
+ public ArcNotificationSurfaceManager::Observer {
+ public:
+ ArcCustomNotificationItem(ArcNotificationManager* manager,
+ message_center::MessageCenter* message_center,
+ const std::string& notification_key,
+ const AccountId& profile_id);
+ ~ArcCustomNotificationItem() override;
+
+ void UpdateWithArcNotificationData(
+ const mojom::ArcNotificationData& data) override;
+
+ private:
+ // ArcNotificationSurfaceManager::Observer:
+ void OnNotificationSurfaceAdded(exo::NotificationSurface* surface) override;
+ void OnNotificationSurfaceRemoved(exo::NotificationSurface* surface) override;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem);
+};
+
+} // namespace arc
+
+#endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_
« no previous file with comments | « ui/arc/notification/DEPS ('k') | ui/arc/notification/arc_custom_notification_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698