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

Side by Side Diff: ash/common/system/chromeos/screen_security/screen_share_tray_item.h

Issue 2465403002: Some more fixes to cros system tray icons (esp. screen tray items) (Closed)
Patch Set: commentary Created 4 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_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_SHARE_TRAY_ITEM_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_SHARE_TRAY_ITEM_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_SHARE_TRAY_ITEM_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_SHARE_TRAY_ITEM_H_
7 7
8 #include "ash/common/system/chromeos/screen_security/screen_share_observer.h" 8 #include "ash/common/system/chromeos/screen_security/screen_share_observer.h"
9 #include "ash/common/system/chromeos/screen_security/screen_tray_item.h" 9 #include "ash/common/system/chromeos/screen_security/screen_tray_item.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 ASH_EXPORT ScreenShareTrayItem : public ScreenTrayItem, 18 class ASH_EXPORT ScreenShareTrayItem : public ScreenTrayItem,
19 public ScreenShareObserver { 19 public ScreenShareObserver {
20 public: 20 public:
21 explicit ScreenShareTrayItem(SystemTray* system_tray); 21 explicit ScreenShareTrayItem(SystemTray* system_tray);
22 ~ScreenShareTrayItem() override; 22 ~ScreenShareTrayItem() override;
23 23
24 private: 24 private:
25 // Overridden from SystemTrayItem. 25 // Overridden from SystemTrayItem.
26 views::View* CreateTrayView(LoginStatus status) override;
27 views::View* CreateDefaultView(LoginStatus status) override; 26 views::View* CreateDefaultView(LoginStatus status) override;
28 27
29 // Overridden from ScreenTrayItem. 28 // Overridden from ScreenTrayItem.
30 void CreateOrUpdateNotification() override; 29 void CreateOrUpdateNotification() override;
31 std::string GetNotificationId() override; 30 std::string GetNotificationId() override;
32 void RecordStoppedFromDefaultViewMetric() override; 31 void RecordStoppedFromDefaultViewMetric() override;
33 void RecordStoppedFromNotificationViewMetric() override; 32 void RecordStoppedFromNotificationViewMetric() override;
34 33
35 // Overridden from ScreenShareObserver. 34 // Overridden from ScreenShareObserver.
36 void OnScreenShareStart(const base::Closure& stop_callback, 35 void OnScreenShareStart(const base::Closure& stop_callback,
37 const base::string16& helper_name) override; 36 const base::string16& helper_name) override;
38 void OnScreenShareStop() override; 37 void OnScreenShareStop() override;
39 38
40 base::string16 helper_name_; 39 base::string16 helper_name_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(ScreenShareTrayItem); 41 DISALLOW_COPY_AND_ASSIGN(ScreenShareTrayItem);
43 }; 42 };
44 43
45 } // namespace ash 44 } // namespace ash
46 45
47 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_SHARE_TRAY_ITEM_H_ 46 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_SHARE_TRAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698