OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ | |
6 #define CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ | |
7 | |
8 #include "chrome/browser/notifications/notification_delegate.h" | |
9 | |
10 namespace notifier { | |
11 | |
12 // ChromeNotifierDelegate is a NotificationDelegate which catches | |
13 // responses from the NotificationUIManager when a notification | |
14 // has been closed. | |
15 | |
16 class ChromeNotifierDelegate : public NotificationDelegate { | |
17 public: | |
18 explicit ChromeNotifierDelegate(const std::string& id); | |
dcheng
2013/01/23 18:39:43
Formatting.
Pete Williamson
2013/01/24 01:48:11
Done.
| |
19 | |
20 // NotificationDelegate interface. | |
21 virtual void Display() OVERRIDE {} | |
22 virtual void Error() OVERRIDE {} | |
23 virtual void Close(bool by_user) OVERRIDE; | |
24 virtual void Click() OVERRIDE {} | |
25 virtual std::string id() const OVERRIDE { return id_; } | |
26 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE { | |
27 return NULL; | |
28 } | |
29 | |
30 private: | |
31 virtual ~ChromeNotifierDelegate(); | |
32 | |
33 const std::string id_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierDelegate); | |
36 }; | |
37 | |
38 } // namespace notifier | |
39 | |
40 #endif // CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ | |
OLD | NEW |