OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_ |
| 7 |
| 8 #include "chrome/browser/notifications/notification_delegate.h" |
| 9 |
| 10 // Delegate for Google Now notifications. |
| 11 class GoogleNowNotificationDelegate : public NotificationDelegate { |
| 12 public: |
| 13 GoogleNowNotificationDelegate(); |
| 14 |
| 15 // NotificationDelegate |
| 16 virtual void Display() OVERRIDE {} |
| 17 virtual void Error() OVERRIDE {} |
| 18 virtual void Close(bool by_user) OVERRIDE {} |
| 19 virtual void Click() OVERRIDE {} |
| 20 virtual std::string id() const OVERRIDE; |
| 21 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE; |
| 22 |
| 23 private: |
| 24 virtual ~GoogleNowNotificationDelegate() {} |
| 25 |
| 26 // Generator of unique numbers for notification identifiers. |
| 27 static uint64 next_id_; |
| 28 // Unique identifier of this notification delegate. |
| 29 const std::string id_; |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_ |
OLD | NEW |