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

Side by Side Diff: ash/system/chromeos/network/tray_sms.h

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/system/tray/system_tray_item.h" 10 #include "ash/system/tray/system_tray_item.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chromeos/network/network_sms_handler.h" 12 #include "chromeos/network/network_sms_handler.h"
13 13
14 namespace ash { 14 namespace ash {
15 15
16 class TraySms : public SystemTrayItem, 16 class TraySms : public SystemTrayItem,
17 public chromeos::NetworkSmsHandler::Observer { 17 public chromeos::NetworkSmsHandler::Observer {
18 public: 18 public:
19 explicit TraySms(SystemTray* system_tray); 19 explicit TraySms(SystemTray* system_tray);
20 virtual ~TraySms(); 20 virtual ~TraySms();
21 21
22 // Overridden from SystemTrayItem. 22 // Overridden from SystemTrayItem.
23 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; 23 virtual views::View* CreateDefaultView(user::LoginStatus status) override;
24 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; 24 virtual views::View* CreateDetailedView(user::LoginStatus status) override;
25 virtual views::View* CreateNotificationView( 25 virtual views::View* CreateNotificationView(
26 user::LoginStatus status) OVERRIDE; 26 user::LoginStatus status) override;
27 virtual void DestroyDefaultView() OVERRIDE; 27 virtual void DestroyDefaultView() override;
28 virtual void DestroyDetailedView() OVERRIDE; 28 virtual void DestroyDetailedView() override;
29 virtual void DestroyNotificationView() OVERRIDE; 29 virtual void DestroyNotificationView() override;
30 30
31 // Overridden from chromeos::NetworkSmsHandler::Observer. 31 // Overridden from chromeos::NetworkSmsHandler::Observer.
32 virtual void MessageReceived(const base::DictionaryValue& message) OVERRIDE; 32 virtual void MessageReceived(const base::DictionaryValue& message) override;
33 33
34 protected: 34 protected:
35 class SmsDefaultView; 35 class SmsDefaultView;
36 class SmsDetailedView; 36 class SmsDetailedView;
37 class SmsMessageView; 37 class SmsMessageView;
38 class SmsNotificationView; 38 class SmsNotificationView;
39 39
40 // Gets the most recent message. Returns false if no messages or unable to 40 // Gets the most recent message. Returns false if no messages or unable to
41 // retrieve the numebr and text from the message. 41 // retrieve the numebr and text from the message.
42 bool GetLatestMessage(size_t* index, std::string* number, std::string* text); 42 bool GetLatestMessage(size_t* index, std::string* number, std::string* text);
(...skipping 12 matching lines...) Expand all
55 SmsDetailedView* detailed_; 55 SmsDetailedView* detailed_;
56 SmsNotificationView* notification_; 56 SmsNotificationView* notification_;
57 base::ListValue messages_; 57 base::ListValue messages_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(TraySms); 59 DISALLOW_COPY_AND_ASSIGN(TraySms);
60 }; 60 };
61 61
62 } // namespace ash 62 } // namespace ash
63 63
64 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H 64 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H
OLDNEW
« no previous file with comments | « ash/system/chromeos/network/tray_network_state_observer.h ('k') | ash/system/chromeos/network/tray_sms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698