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

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: Rebase 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
« no previous file with comments | « ash/system/network/tray_network.cc ('k') | ash/system/network/tray_sms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0650b6d5187d4cd84eacebc456df98acd810d844 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();
@@ -26,9 +28,6 @@ class TraySms : public TrayImageItem {
virtual void DestroyDetailedView() OVERRIDE;
virtual void DestroyNotificationView() OVERRIDE;
- // Overridden from TrayImageItem.
- virtual bool GetInitialVisibility() OVERRIDE;
-
protected:
class SmsDefaultView;
class SmsDetailedView;
@@ -36,6 +35,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);
« no previous file with comments | « ash/system/network/tray_network.cc ('k') | ash/system/network/tray_sms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698