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

Side by Side Diff: chrome/browser/chromeos/notifications/system_notification.h

Issue 10537158: Add support for Ash to Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental UserManagerImpl change Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_H_
6 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_H_ 6 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 private: 71 private:
72 class Delegate : public NotificationDelegate { 72 class Delegate : public NotificationDelegate {
73 public: 73 public:
74 explicit Delegate(const std::string& id); 74 explicit Delegate(const std::string& id);
75 virtual void Display() OVERRIDE {} 75 virtual void Display() OVERRIDE {}
76 virtual void Error() OVERRIDE {} 76 virtual void Error() OVERRIDE {}
77 virtual void Close(bool by_user) OVERRIDE {} 77 virtual void Close(bool by_user) OVERRIDE {}
78 virtual void Click() OVERRIDE {} 78 virtual void Click() OVERRIDE {}
79 virtual std::string id() const OVERRIDE; 79 virtual std::string id() const OVERRIDE;
80 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE;
80 81
81 private: 82 private:
82 std::string id_; 83 std::string id_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(Delegate); 85 DISALLOW_COPY_AND_ASSIGN(Delegate);
85 }; 86 };
86 87
87 void Init(int icon_resource_id); 88 void Init(int icon_resource_id);
88 void ShowNotification(const Notification& notify); 89 void ShowNotification(const Notification& notify);
89 90
90 Profile* profile_; 91 Profile* profile_;
91 BalloonCollectionImplAsh* collection_; 92 BalloonCollectionImplAsh* collection_;
92 scoped_refptr<NotificationDelegate> delegate_; 93 scoped_refptr<NotificationDelegate> delegate_;
93 string16 message_; 94 string16 message_;
94 string16 link_; 95 string16 link_;
95 BalloonViewHost::MessageCallback callback_; 96 BalloonViewHost::MessageCallback callback_;
96 GURL icon_; 97 GURL icon_;
97 string16 title_; 98 string16 title_;
98 bool visible_; 99 bool visible_;
99 bool sticky_; 100 bool sticky_;
100 bool urgent_; 101 bool urgent_;
101 bool show_on_unlock_; 102 bool show_on_unlock_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(SystemNotification); 104 DISALLOW_COPY_AND_ASSIGN(SystemNotification);
104 }; 105 };
105 106
106 } // namespace chromeos 107 } // namespace chromeos
107 108
108 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_H_ 109 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/locale_change_guard.cc ('k') | chrome/browser/chromeos/notifications/system_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698