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

Unified Diff: ash/system/network/tray_sms.h

Issue 10443004: Move common notification layout to base class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 months 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
Index: ash/system/network/tray_sms.h
diff --git a/ash/system/network/tray_sms.h b/ash/system/network/tray_sms.h
index fcdd99352e4b553990fc3d2fe6d2e627f8c30762..e6861f4d5811889ffdb5d24bd9886a0a4a5ff317 100644
--- a/ash/system/network/tray_sms.h
+++ b/ash/system/network/tray_sms.h
@@ -6,13 +6,15 @@
#define ASH_SYSTEM_NETWORK_TRAY_SMS_H
#pragma once
-#include "ash/system/tray/tray_image_item.h"
+#include <string>
+
+#include "ash/system/tray/system_tray_item.h"
#include "base/memory/scoped_ptr.h"
namespace ash {
namespace internal {
-class TraySms : public TrayImageItem {
+class TraySms : public SystemTrayItem {
public:
TraySms();
virtual ~TraySms();
@@ -36,6 +38,10 @@ class TraySms : public TrayImageItem {
class SmsNotificationView;
class SmsObserver;
+ // Gets the most recent message. Returns false if no messages or unable to
+ // retrieve the numebr and text from the message.
+ bool GetLatestMessage(size_t* index, std::string* number, std::string* text);
+
// Called when sms messages have changed (by tray::SmsObserver).
void Update(bool notify);

Powered by Google App Engine
This is Rietveld 408576698