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

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

Issue 1603753003: Support buttons on ARC Notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment Created 4 years, 10 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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 ~ArcNotificationItem(); 28 ~ArcNotificationItem();
29 29
30 void UpdateWithArcNotificationData(const ArcNotificationData& data); 30 void UpdateWithArcNotificationData(const ArcNotificationData& data);
31 31
32 // Methods called from ArcNotificationManager: 32 // Methods called from ArcNotificationManager:
33 void OnClosedFromAndroid(); 33 void OnClosedFromAndroid();
34 34
35 // Methods called from ArcNotificationItemDelegate: 35 // Methods called from ArcNotificationItemDelegate:
36 void Close(bool by_user); 36 void Close(bool by_user);
37 void Click(); 37 void Click();
38 void ButtonClick(int button_index);
38 39
39 private: 40 private:
40 void OnImageDecoded(const SkBitmap& bitmap); 41 void OnImageDecoded(const SkBitmap& bitmap);
41 42
42 ArcNotificationManager* const manager_; 43 ArcNotificationManager* const manager_;
43 message_center::MessageCenter* const message_center_; 44 message_center::MessageCenter* const message_center_;
44 const AccountId profile_id_; 45 const AccountId profile_id_;
45 46
46 const std::string notification_key_; 47 const std::string notification_key_;
47 const std::string notification_id_; 48 const std::string notification_id_;
(...skipping 16 matching lines...) Expand all
64 65
65 base::ThreadChecker thread_checker_; 66 base::ThreadChecker thread_checker_;
66 base::WeakPtrFactory<ArcNotificationItem> weak_ptr_factory_; 67 base::WeakPtrFactory<ArcNotificationItem> weak_ptr_factory_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(ArcNotificationItem); 69 DISALLOW_COPY_AND_ASSIGN(ArcNotificationItem);
69 }; 70 };
70 71
71 } // namespace arc 72 } // namespace arc
72 73
73 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ 74 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698