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

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

Issue 11039034: Move ash/system/network to ash/system/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 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
deleted file mode 100644
index 198557e90cc78b48fde1e4820170ed89da0a207b..0000000000000000000000000000000000000000
--- a/ash/system/network/tray_sms.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// 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 ASH_SYSTEM_NETWORK_TRAY_SMS_H
-#define ASH_SYSTEM_NETWORK_TRAY_SMS_H
-
-#include <string>
-
-#include "ash/system/network/sms_observer.h"
-#include "ash/system/tray/system_tray_item.h"
-#include "base/values.h"
-
-namespace ash {
-namespace internal {
-
-class TraySms : public SystemTrayItem,
- public SmsObserver {
- public:
- TraySms();
- virtual ~TraySms();
-
- // Overridden from SystemTrayItem.
- virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
- virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
- virtual views::View* CreateNotificationView(
- user::LoginStatus status) OVERRIDE;
- virtual void DestroyDefaultView() OVERRIDE;
- virtual void DestroyDetailedView() OVERRIDE;
- virtual void DestroyNotificationView() OVERRIDE;
-
- // Overridden from SmsObserver.
- virtual void AddMessage(const base::DictionaryValue& message) OVERRIDE;
-
- protected:
- class SmsDefaultView;
- class SmsDetailedView;
- class SmsMessageView;
- class SmsNotificationView;
-
- // 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);
-
- // Removes message at |index| from message list.
- void RemoveMessage(size_t index);
-
- // Called when sms messages have changed (by tray::SmsObserver).
- void Update(bool notify);
-
- base::ListValue& messages() { return messages_; }
-
- private:
- SmsDefaultView* default_;
- SmsDetailedView* detailed_;
- SmsNotificationView* notification_;
- base::ListValue messages_;
-
- DISALLOW_COPY_AND_ASSIGN(TraySms);
-};
-
-} // namespace internal
-} // namespace ash
-
-#endif // ASH_SYSTEM_NETWORK_TRAY_SMS_H
« 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