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

Unified Diff: ui/arc/notification/arc_custom_notification_view.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
Index: ui/arc/notification/arc_custom_notification_view.h
diff --git a/ui/arc/notification/arc_custom_notification_view.h b/ui/arc/notification/arc_custom_notification_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..e5de7e93e56835ddabb980b7ebf4a2d74fd11f78
--- /dev/null
+++ b/ui/arc/notification/arc_custom_notification_view.h
@@ -0,0 +1,36 @@
+// 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_VIEW_H_
+#define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "ui/views/controls/native/native_view_host.h"
+
+namespace exo {
+class NotificationSurface;
+}
+
+namespace arc {
+
+class ArcCustomNotificationView : public views::NativeViewHost {
+ public:
+ explicit ArcCustomNotificationView(exo::NotificationSurface* surface);
+ ~ArcCustomNotificationView() override;
+
+ private:
+ // views::NativeViewHost
+ void ViewHierarchyChanged(
+ const ViewHierarchyChangedDetails& details) override;
+
+ exo::NotificationSurface* const surface_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView);
+};
+
+} // namespace arc
+
+#endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_
« no previous file with comments | « ui/arc/notification/arc_custom_notification_item.cc ('k') | ui/arc/notification/arc_custom_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698