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

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

Issue 2747383002: Hide the settings button on a notification in MNC. (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « no previous file | ui/arc/notification/arc_custom_notification_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CUSTOM_NOTIFICATION_ITEM_H_ 5 #ifndef UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_
6 #define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ 6 #define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "ui/arc/notification/arc_notification_item.h" 10 #include "ui/arc/notification/arc_notification_item.h"
(...skipping 18 matching lines...) Expand all
29 ArcCustomNotificationItem(ArcNotificationManager* manager, 29 ArcCustomNotificationItem(ArcNotificationManager* manager,
30 message_center::MessageCenter* message_center, 30 message_center::MessageCenter* message_center,
31 const std::string& notification_key, 31 const std::string& notification_key,
32 const AccountId& profile_id); 32 const AccountId& profile_id);
33 ~ArcCustomNotificationItem() override; 33 ~ArcCustomNotificationItem() override;
34 34
35 void UpdateWithArcNotificationData( 35 void UpdateWithArcNotificationData(
36 mojom::ArcNotificationDataPtr data) override; 36 mojom::ArcNotificationDataPtr data) override;
37 37
38 void CloseFromCloseButton(); 38 void CloseFromCloseButton();
39 void OpenSettingsFromSettingsButton();
40 39
41 void AddObserver(Observer* observer); 40 void AddObserver(Observer* observer);
42 void RemoveObserver(Observer* observer); 41 void RemoveObserver(Observer* observer);
43 42
44 // Increment |window_ref_count_| and a CreateNotificationWindow request 43 // Increment |window_ref_count_| and a CreateNotificationWindow request
45 // is sent when |window_ref_count_| goes from zero to one. 44 // is sent when |window_ref_count_| goes from zero to one.
46 void IncrementWindowRefCount(); 45 void IncrementWindowRefCount();
47 46
48 // Decrement |window_ref_count_| and a CloseNotificationWindow request 47 // Decrement |window_ref_count_| and a CloseNotificationWindow request
49 // is sent when |window_ref_count_| goes from one to zero. 48 // is sent when |window_ref_count_| goes from one to zero.
50 void DecrementWindowRefCount(); 49 void DecrementWindowRefCount();
51 50
52 bool pinned() const { return pinned_; } 51 bool pinned() const { return pinned_; }
53 const gfx::ImageSkia& snapshot() const { return snapshot_; } 52 const gfx::ImageSkia& snapshot() const { return snapshot_; }
54 53
55 private: 54 private:
56 bool pinned_ = false; 55 bool pinned_ = false;
57 gfx::ImageSkia snapshot_; 56 gfx::ImageSkia snapshot_;
58 int window_ref_count_ = 0; 57 int window_ref_count_ = 0;
59 58
60 base::ObserverList<Observer> observers_; 59 base::ObserverList<Observer> observers_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem); 61 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem);
63 }; 62 };
64 63
65 } // namespace arc 64 } // namespace arc
66 65
67 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ 66 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_
OLDNEW
« no previous file with comments | « no previous file | ui/arc/notification/arc_custom_notification_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698