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

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

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
11 #include "base/compiler_specific.h"
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/string16.h" 13 #include "base/string16.h"
13 #include "chrome/browser/chromeos/notifications/balloon_view_host.h" // Message Callback 14 #include "chrome/browser/chromeos/notifications/balloon_view_host.h" // Message Callback
14 #include "chrome/browser/notifications/notification_delegate.h" 15 #include "chrome/browser/notifications/notification_delegate.h"
15 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
16 17
17 class Profile; 18 class Profile;
18 19
19 namespace chromeos { 20 namespace chromeos {
20 21
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Current visibility state for this notification. 60 // Current visibility state for this notification.
60 bool visible() const { return visible_; } 61 bool visible() const { return visible_; }
61 62
62 // Current urgent state for this notification. 63 // Current urgent state for this notification.
63 bool urgent() const { return urgent_; } 64 bool urgent() const { return urgent_; }
64 65
65 private: 66 private:
66 class Delegate : public NotificationDelegate { 67 class Delegate : public NotificationDelegate {
67 public: 68 public:
68 explicit Delegate(const std::string& id); 69 explicit Delegate(const std::string& id);
69 virtual void Display() {} 70 virtual void Display() OVERRIDE {}
70 virtual void Error() {} 71 virtual void Error() OVERRIDE {}
71 virtual void Close(bool by_user) {} 72 virtual void Close(bool by_user) OVERRIDE {}
72 virtual void Click() {} 73 virtual void Click() OVERRIDE {}
73 virtual std::string id() const; 74 virtual std::string id() const OVERRIDE;
74 75
75 private: 76 private:
76 std::string id_; 77 std::string id_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(Delegate); 79 DISALLOW_COPY_AND_ASSIGN(Delegate);
79 }; 80 };
80 81
81 void Init(int icon_resource_id); 82 void Init(int icon_resource_id);
82 83
83 Profile* profile_; 84 Profile* profile_;
84 BalloonCollectionImpl* collection_; 85 BalloonCollectionImpl* collection_;
85 scoped_refptr<NotificationDelegate> delegate_; 86 scoped_refptr<NotificationDelegate> delegate_;
86 GURL icon_; 87 GURL icon_;
87 string16 title_; 88 string16 title_;
88 bool visible_; 89 bool visible_;
89 bool urgent_; 90 bool urgent_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(SystemNotification); 92 DISALLOW_COPY_AND_ASSIGN(SystemNotification);
92 }; 93 };
93 94
94 } // namespace chromeos 95 } // namespace chromeos
95 96
96 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698