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

Unified Diff: chrome/browser/ui/google_now/google_now_notification_delegate.h

Issue 11633013: Parsing server response and showing notifications for Google Now (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/google_now/google_now_notification_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/google_now/google_now_notification_delegate.h
diff --git a/chrome/browser/ui/google_now/google_now_notification_delegate.h b/chrome/browser/ui/google_now/google_now_notification_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..58cd8c5208a3976abc592b9bd99c678928c38dee
--- /dev/null
+++ b/chrome/browser/ui/google_now/google_now_notification_delegate.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_
+#define CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_
+
+#include "chrome/browser/notifications/notification_delegate.h"
+
+// Delegate for Google Now notifications.
+class GoogleNowNotificationDelegate : public NotificationDelegate {
+ public:
+ GoogleNowNotificationDelegate();
+
+ // NotificationDelegate
+ virtual void Display() OVERRIDE {}
+ virtual void Error() OVERRIDE {}
+ virtual void Close(bool by_user) OVERRIDE {}
+ virtual void Click() OVERRIDE {}
+ virtual std::string id() const OVERRIDE;
+ virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE;
+
+ private:
+ virtual ~GoogleNowNotificationDelegate() {}
+
+ // Generator of unique numbers for notification identifiers.
+ static uint64 next_id_;
+ // Unique identifier of this notification delegate.
+ const std::string id_;
+};
+
+#endif // CHROME_BROWSER_UI_GOOGLE_NOW_GOOGLE_NOW_NOTIFICATION_DELEGATE_H_
« no previous file with comments | « no previous file | chrome/browser/ui/google_now/google_now_notification_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698