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

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

Issue 2318463002: arc: Make ChromeVox read an ARC custom notification (Closed)
Patch Set: rebase and update comments Created 4 years, 3 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_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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Increment |window_ref_count_| and a CreateNotificationWindow request 43 // Increment |window_ref_count_| and a CreateNotificationWindow request
44 // is sent when |window_ref_count_| goes from zero to one. 44 // is sent when |window_ref_count_| goes from zero to one.
45 void IncrementWindowRefCount(); 45 void IncrementWindowRefCount();
46 46
47 // Decrement |window_ref_count_| and a CloseNotificationWindow request 47 // Decrement |window_ref_count_| and a CloseNotificationWindow request
48 // is sent when |window_ref_count_| goes from one to zero. 48 // is sent when |window_ref_count_| goes from one to zero.
49 void DecrementWindowRefCount(); 49 void DecrementWindowRefCount();
50 50
51 bool pinned() const { return pinned_; } 51 bool pinned() const { return pinned_; }
52 const gfx::ImageSkia& snapshot() const { return snapshot_; } 52 const gfx::ImageSkia& snapshot() const { return snapshot_; }
53 const base::string16& accessibile_name() const { return accessible_name_; }
53 54
54 private: 55 private:
55 bool pinned_ = false; 56 bool pinned_ = false;
56 gfx::ImageSkia snapshot_; 57 gfx::ImageSkia snapshot_;
57 int window_ref_count_ = 0; 58 int window_ref_count_ = 0;
59 base::string16 accessible_name_;
58 60
59 base::ObserverList<Observer> observers_; 61 base::ObserverList<Observer> observers_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem); 63 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem);
62 }; 64 };
63 65
64 } // namespace arc 66 } // namespace arc
65 67
66 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ 68 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698