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

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

Issue 2063813002: mash: Move SystemTrayImage and TrayImageItem to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wmnotifier
Patch Set: rebase 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
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/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/system/tray/tray_image_item.h"
9 #include "ash/common/system/update/update_observer.h" 10 #include "ash/common/system/update/update_observer.h"
10 #include "ash/system/tray/tray_image_item.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 12
13 namespace views { 13 namespace views {
14 class View; 14 class View;
15 } 15 }
16 16
17 namespace ash { 17 namespace ash {
18 18
19 // The system update tray item. Exported for test. 19 // The system update tray item. Exported for test.
20 class ASH_EXPORT TrayUpdate : public TrayImageItem, public UpdateObserver { 20 class ASH_EXPORT TrayUpdate : public TrayImageItem, public UpdateObserver {
21 public: 21 public:
22 explicit TrayUpdate(SystemTray* system_tray); 22 explicit TrayUpdate(SystemTray* system_tray);
23 ~TrayUpdate() override; 23 ~TrayUpdate() override;
24 24
25 private: 25 private:
26 // Overridden from TrayImageItem. 26 // Overridden from TrayImageItem.
27 bool GetInitialVisibility() override; 27 bool GetInitialVisibility() override;
28 views::View* CreateDefaultView(LoginStatus status) override; 28 views::View* CreateDefaultView(LoginStatus status) override;
29 29
30 // Overridden from UpdateObserver. 30 // Overridden from UpdateObserver.
31 void OnUpdateRecommended(const UpdateInfo& info) override; 31 void OnUpdateRecommended(const UpdateInfo& info) override;
32 32
33 DISALLOW_COPY_AND_ASSIGN(TrayUpdate); 33 DISALLOW_COPY_AND_ASSIGN(TrayUpdate);
34 }; 34 };
35 35
36 } // namespace ash 36 } // namespace ash
37 37
38 #endif // ASH_SYSTEM_TRAY_UPDATE_H_ 38 #endif // ASH_SYSTEM_TRAY_UPDATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698