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

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 614363002: Added Aura notification that relaunch and powerwash is required in case of downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring of SystemTrayDelegate(Windows|Linux) is delayed. 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_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 ~IMEInfo(); 68 ~IMEInfo();
69 69
70 bool selected; 70 bool selected;
71 bool third_party; 71 bool third_party;
72 std::string id; 72 std::string id;
73 base::string16 name; 73 base::string16 name;
74 base::string16 medium_name; 74 base::string16 medium_name;
75 base::string16 short_name; 75 base::string16 short_name;
76 }; 76 };
77 77
78 struct ASH_EXPORT UpdateInfo {
79 enum UpdateSeverity {
80 UPDATE_NORMAL,
81 UPDATE_LOW_GREEN,
82 UPDATE_HIGH_ORANGE,
83 UPDATE_SEVERE_RED,
84 };
85
86 UpdateInfo();
87 ~UpdateInfo();
88
89 UpdateSeverity severity;
90 bool update_required;
91 bool factory_reset_required;
92 };
93
78 typedef std::vector<IMEInfo> IMEInfoList; 94 typedef std::vector<IMEInfo> IMEInfoList;
79 95
80 class VolumeControlDelegate; 96 class VolumeControlDelegate;
81 97
82 namespace tray { 98 namespace tray {
83 class UserAccountsDelegate; 99 class UserAccountsDelegate;
84 } // namespace tray 100 } // namespace tray
85 101
86 class ASH_EXPORT SystemTrayDelegate { 102 class ASH_EXPORT SystemTrayDelegate {
87 public: 103 public:
(...skipping 26 matching lines...) Expand all
114 130
115 // Returns the name of the user that manages the current supervised user. 131 // Returns the name of the user that manages the current supervised user.
116 virtual const base::string16 GetSupervisedUserManagerName() const = 0; 132 virtual const base::string16 GetSupervisedUserManagerName() const = 0;
117 133
118 // Returns the notification for supervised users. 134 // Returns the notification for supervised users.
119 virtual const base::string16 GetSupervisedUserMessage() const = 0; 135 virtual const base::string16 GetSupervisedUserMessage() const = 0;
120 136
121 // Returns true if the current user is supervised. 137 // Returns true if the current user is supervised.
122 virtual bool IsUserSupervised() const = 0; 138 virtual bool IsUserSupervised() const = 0;
123 139
124 // Returns whether a system upgrade is available. 140 // Fills |info| structure with current update info.
125 virtual bool SystemShouldUpgrade() const = 0; 141 virtual void GetSystemUpdateInfo(UpdateInfo* info) const = 0;
126 142
127 // Returns the desired hour clock type. 143 // Returns the desired hour clock type.
128 virtual base::HourClockType GetHourClockType() const = 0; 144 virtual base::HourClockType GetHourClockType() const = 0;
129 145
130 // Shows settings. 146 // Shows settings.
131 virtual void ShowSettings() = 0; 147 virtual void ShowSettings() = 0;
132 148
133 // Returns true if settings menu item should appear. 149 // Returns true if settings menu item should appear.
134 virtual bool ShouldShowSettings() = 0; 150 virtual bool ShouldShowSettings() = 0;
135 151
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 virtual bool IsSearchKeyMappedToCapsLock() = 0; 309 virtual bool IsSearchKeyMappedToCapsLock() = 0;
294 310
295 // Returns accounts delegate for given user. 311 // Returns accounts delegate for given user.
296 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( 312 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate(
297 const std::string& user_id) = 0; 313 const std::string& user_id) = 0;
298 }; 314 };
299 315
300 } // namespace ash 316 } // namespace ash
301 317
302 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 318 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/default_system_tray_delegate.cc ('k') | ash/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698