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

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

Issue 687183004: Remove the OnError method from notification delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 76 virtual void Display() override;
77 virtual void Error() override;
78 virtual void Close(bool by_user) override; 77 virtual void Close(bool by_user) override;
79 virtual void Click() override; 78 virtual void Click() override;
80 virtual void ButtonClick(int button_index) override; 79 virtual void ButtonClick(int button_index) override;
81 80
82 protected: 81 protected:
83 virtual ~ScreenNotificationDelegate(); 82 virtual ~ScreenNotificationDelegate();
84 83
85 private: 84 private:
86 ScreenTrayItem* screen_tray_; 85 ScreenTrayItem* screen_tray_;
87 86
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 tray::ScreenStatusView* default_view_; 134 tray::ScreenStatusView* default_view_;
136 bool is_started_; 135 bool is_started_;
137 base::Closure stop_callback_; 136 base::Closure stop_callback_;
138 137
139 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); 138 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem);
140 }; 139 };
141 140
142 } // namespace ash 141 } // namespace ash
143 142
144 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ 143 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698