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

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: add comment for use_custom_notification 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..8effae750c650af98fb7a5ed76ef4008f1e32829
--- /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* surface_;
Luis Héctor Chávez 2016/06/21 16:30:47 nit: can this be |exo::NotificationSurface* const
xiyuan 2016/06/21 19:39:33 Changed to a const ptr. However, did not use the s
+
+ DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView);
+};
+
+} // namespace arc
+
+#endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698