OLD | NEW |
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_SHARE_SCREEN_SHARE_TRAY_ITEM_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_SHARE_SCREEN_SHARE_TRAY_ITEM_H_ |
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_SHARE_SCREEN_SHARE_TRAY_ITEM_H_ | 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_SHARE_SCREEN_SHARE_TRAY_ITEM_H_ |
7 | 7 |
8 #include "ash/system/chromeos/screen_security/screen_share_observer.h" | 8 #include "ash/system/chromeos/screen_security/screen_share_observer.h" |
9 #include "ash/system/chromeos/screen_security/screen_tray_item.h" | 9 #include "ash/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(user::LoginStatus status) override; | 26 views::View* CreateTrayView(LoginStatus status) override; |
27 views::View* CreateDefaultView(user::LoginStatus status) override; | 27 views::View* CreateDefaultView(LoginStatus status) override; |
28 | 28 |
29 // Overridden from ScreenTrayItem. | 29 // Overridden from ScreenTrayItem. |
30 void CreateOrUpdateNotification() override; | 30 void CreateOrUpdateNotification() override; |
31 std::string GetNotificationId() override; | 31 std::string GetNotificationId() override; |
32 | 32 |
33 // Overridden from ScreenShareObserver. | 33 // Overridden from ScreenShareObserver. |
34 void OnScreenShareStart(const base::Closure& stop_callback, | 34 void OnScreenShareStart(const base::Closure& stop_callback, |
35 const base::string16& helper_name) override; | 35 const base::string16& helper_name) override; |
36 void OnScreenShareStop() override; | 36 void OnScreenShareStop() override; |
37 | 37 |
38 base::string16 helper_name_; | 38 base::string16 helper_name_; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(ScreenShareTrayItem); | 40 DISALLOW_COPY_AND_ASSIGN(ScreenShareTrayItem); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace ash | 43 } // namespace ash |
44 | 44 |
45 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_SHARE_SCREEN_SHARE_TRAY_ITEM_H_ | 45 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_SHARE_SCREEN_SHARE_TRAY_ITEM_H_ |
OLD | NEW |