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

Side by Side Diff: ash/system/chromeos/screen_security/screen_tray_item.h

Issue 684253002: Provide default implementations for NotificationDelegate methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SCREEN_TRAY_ITEM_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_
7 7
8 #include "ash/system/tray/system_tray.h" 8 #include "ash/system/tray/system_tray.h"
9 #include "ash/system/tray/system_tray_item.h" 9 #include "ash/system/tray/system_tray_item.h"
10 #include "ash/system/tray/system_tray_notifier.h" 10 #include "ash/system/tray/system_tray_notifier.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 base::string16 stop_button_text_; 66 base::string16 stop_button_text_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ScreenStatusView); 68 DISALLOW_COPY_AND_ASSIGN(ScreenStatusView);
69 }; 69 };
70 70
71 class ScreenNotificationDelegate : public message_center::NotificationDelegate { 71 class ScreenNotificationDelegate : public message_center::NotificationDelegate {
72 public: 72 public:
73 explicit ScreenNotificationDelegate(ScreenTrayItem* screen_tray); 73 explicit ScreenNotificationDelegate(ScreenTrayItem* screen_tray);
74 74
75 // message_center::NotificationDelegate overrides: 75 // message_center::NotificationDelegate overrides:
76 virtual void Display() override;
77 virtual void Error() override;
78 virtual void Close(bool by_user) override;
79 virtual void Click() override;
80 virtual void ButtonClick(int button_index) override; 76 virtual void ButtonClick(int button_index) override;
81 77
82 protected: 78 protected:
83 virtual ~ScreenNotificationDelegate(); 79 virtual ~ScreenNotificationDelegate();
84 80
85 private: 81 private:
86 ScreenTrayItem* screen_tray_; 82 ScreenTrayItem* screen_tray_;
87 83
88 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationDelegate); 84 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationDelegate);
89 }; 85 };
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 tray::ScreenStatusView* default_view_; 131 tray::ScreenStatusView* default_view_;
136 bool is_started_; 132 bool is_started_;
137 base::Closure stop_callback_; 133 base::Closure stop_callback_;
138 134
139 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); 135 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem);
140 }; 136 };
141 137
142 } // namespace ash 138 } // namespace ash
143 139
144 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ 140 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698