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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/google_now/google_now_notification_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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