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

Side by Side Diff: ash/system/tray_update.h

Issue 2056823002: mash: Move SystemTrayDelegate and dependencies to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « ash/system/tray_accessibility.cc ('k') | ash/system/tray_update.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_UPDATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_UPDATE_H_
6 #define ASH_SYSTEM_TRAY_UPDATE_H_ 6 #define ASH_SYSTEM_TRAY_UPDATE_H_
7 7
8 #include "ash/common/system/update/update_observer.h"
8 #include "ash/system/tray/tray_image_item.h" 9 #include "ash/system/tray/tray_image_item.h"
9 #include "ash/system/user/update_observer.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace views { 12 namespace views {
13 class View; 13 class View;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 17
18 class TrayUpdate : public TrayImageItem, 18 class TrayUpdate : public TrayImageItem,
19 public UpdateObserver { 19 public UpdateObserver {
20 public: 20 public:
21 explicit TrayUpdate(SystemTray* system_tray); 21 explicit TrayUpdate(SystemTray* system_tray);
22 ~TrayUpdate() override; 22 ~TrayUpdate() override;
23 23
24 private: 24 private:
25 // Overridden from TrayImageItem. 25 // Overridden from TrayImageItem.
26 bool GetInitialVisibility() override; 26 bool GetInitialVisibility() override;
27 views::View* CreateDefaultView(LoginStatus status) override; 27 views::View* CreateDefaultView(LoginStatus status) override;
28 28
29 // Overridden from UpdateObserver. 29 // Overridden from UpdateObserver.
30 void OnUpdateRecommended(const UpdateInfo& info) override; 30 void OnUpdateRecommended(const UpdateInfo& info) override;
31 31
32 DISALLOW_COPY_AND_ASSIGN(TrayUpdate); 32 DISALLOW_COPY_AND_ASSIGN(TrayUpdate);
33 }; 33 };
34 34
35 } // namespace ash 35 } // namespace ash
36 36
37 #endif // ASH_SYSTEM_TRAY_UPDATE_H_ 37 #endif // ASH_SYSTEM_TRAY_UPDATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray_accessibility.cc ('k') | ash/system/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698