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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_
6 #define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "ui/views/controls/native/native_view_host.h"
12
13 namespace exo {
14 class NotificationSurface;
15 }
16
17 namespace arc {
18
19 class ArcCustomNotificationView : public views::NativeViewHost {
20 public:
21 explicit ArcCustomNotificationView(exo::NotificationSurface* surface);
22 ~ArcCustomNotificationView() override;
23
24 private:
25 // views::NativeViewHost
26 void ViewHierarchyChanged(
27 const ViewHierarchyChangedDetails& details) override;
28
29 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
30
31 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView);
32 };
33
34 } // namespace arc
35
36 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698