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

Side by Side Diff: ui/arc/notification/arc_notification_item.h

Issue 2906323002: Rename ArcCustomNotificationView to ArcNotificationContentView (Closed)
Patch Set: Addressed comments Created 3 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ 5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_
6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/arc/common/notifications.mojom.h" 9 #include "components/arc/common/notifications.mojom.h"
10 #include "ui/gfx/image/image_skia.h" 10 #include "ui/gfx/image/image_skia.h"
(...skipping 24 matching lines...) Expand all
35 virtual void OnUpdatedFromAndroid(mojom::ArcNotificationDataPtr data) = 0; 35 virtual void OnUpdatedFromAndroid(mojom::ArcNotificationDataPtr data) = 0;
36 36
37 // Called when the notification is closed on Chrome-side. This is called from 37 // Called when the notification is closed on Chrome-side. This is called from
38 // ArcNotificationDelegate. 38 // ArcNotificationDelegate.
39 virtual void Close(bool by_user) = 0; 39 virtual void Close(bool by_user) = 0;
40 // Called when the notification is clicked by user. This is called from 40 // Called when the notification is clicked by user. This is called from
41 // ArcNotificationDelegate. 41 // ArcNotificationDelegate.
42 virtual void Click() = 0; 42 virtual void Click() = 0;
43 43
44 // Called when the user wants to open an intrinsic setting of notification. 44 // Called when the user wants to open an intrinsic setting of notification.
45 // This is called from ArcCustomNotificationView. 45 // This is called from ArcNotificationContentView.
46 virtual void OpenSettings() = 0; 46 virtual void OpenSettings() = 0;
47 // Called when the user wants to toggle expansio of notification. This is 47 // Called when the user wants to toggle expansio of notification. This is
48 // called from ArcCustomNotificationView. 48 // called from ArcNotificationContentView.
49 virtual void ToggleExpansion() = 0; 49 virtual void ToggleExpansion() = 0;
50 // Returns true if this notification has an intrinsic setting which shown 50 // Returns true if this notification has an intrinsic setting which shown
51 // inside the notification content area. This is called from 51 // inside the notification content area. This is called from
52 // ArcCustomNotificationView. 52 // ArcNotificationContentView.
53 virtual bool IsOpeningSettingsSupported() const = 0; 53 virtual bool IsOpeningSettingsSupported() const = 0;
54 54
55 // Adds an observer. 55 // Adds an observer.
56 virtual void AddObserver(Observer* observer) = 0; 56 virtual void AddObserver(Observer* observer) = 0;
57 // Removes the observer. 57 // Removes the observer.
58 virtual void RemoveObserver(Observer* observer) = 0; 58 virtual void RemoveObserver(Observer* observer) = 0;
59 59
60 // Increments |window_ref_count_| and a CreateNotificationWindow request 60 // Increments |window_ref_count_| and a CreateNotificationWindow request
61 // is sent when |window_ref_count_| goes from zero to one. 61 // is sent when |window_ref_count_| goes from zero to one.
62 virtual void IncrementWindowRefCount() = 0; 62 virtual void IncrementWindowRefCount() = 0;
(...skipping 14 matching lines...) Expand all
77 virtual const std::string& GetNotificationKey() const = 0; 77 virtual const std::string& GetNotificationKey() const = 0;
78 // Returns the notification ID used in the Chrome message center. 78 // Returns the notification ID used in the Chrome message center.
79 virtual const std::string& GetNotificationId() const = 0; 79 virtual const std::string& GetNotificationId() const = 0;
80 // Returnes the accessible name of the notification. 80 // Returnes the accessible name of the notification.
81 virtual const base::string16& GetAccessibleName() const = 0; 81 virtual const base::string16& GetAccessibleName() const = 0;
82 }; 82 };
83 83
84 } // namespace arc 84 } // namespace arc
85 85
86 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ 86 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_
OLDNEW
« no previous file with comments | « ui/arc/notification/arc_notification_delegate.cc ('k') | ui/arc/notification/arc_notification_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698