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 #include "chrome/browser/ui/google_now/google_now_notification_delegate.h" |
| 6 |
| 7 #include "base/string_number_conversions.h" |
| 8 |
| 9 using base::Uint64ToString; |
| 10 using content::RenderViewHost; |
| 11 |
| 12 namespace { |
| 13 // Prefix for identifiers for GoogleNowNotificationDelegate class. |
| 14 const char kGoogleNowNotificationPrefix[] = "google_now."; |
| 15 } |
| 16 |
| 17 uint64 GoogleNowNotificationDelegate::next_id_ = 0; |
| 18 |
| 19 GoogleNowNotificationDelegate::GoogleNowNotificationDelegate() |
| 20 : id_(kGoogleNowNotificationPrefix + Uint64ToString(next_id_++)) { |
| 21 } |
| 22 |
| 23 std::string GoogleNowNotificationDelegate::id() const { |
| 24 return id_; |
| 25 } |
| 26 |
| 27 RenderViewHost* GoogleNowNotificationDelegate::GetRenderViewHost() const { |
| 28 // TODO(vadimt): Return a non-NULL RenderViewHost for rendering icons. |
| 29 return NULL; |
| 30 } |
OLD | NEW |