Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_SYSTEM_CAST_TRAY_CAST_H_ | |
| 6 #define ASH_SYSTEM_CAST_TRAY_CAST_H_ | |
| 7 | |
| 8 #include "ash/shell_observer.h" | |
| 9 #include "ash/system/cast/cast_observer.h" | |
| 10 #include "ash/system/tray/system_tray_item.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 namespace tray { | |
| 14 class CastTrayView; | |
| 15 class CastSelectDefaultView; | |
| 16 class CastDetailedView; | |
| 17 class CastDuplexView; | |
| 18 } | |
| 19 | |
| 20 class CastConfigDelegate; | |
| 21 | |
| 22 class TrayCast : public SystemTrayItem, | |
| 23 public CastObserver, | |
| 24 public ShellObserver { | |
| 25 public: | |
| 26 explicit TrayCast(SystemTray* system_tray); | |
| 27 ~TrayCast() override; | |
| 28 | |
| 29 // Overridden from CastObserver. | |
|
achuithb
2015/04/30 00:03:33
Make this private
jdufault
2015/04/30 21:51:04
Done.
| |
| 30 void OnCastRefresh() override; | |
| 31 | |
| 32 private: | |
| 33 bool HasCastExtension(); | |
| 34 | |
| 35 // Overridden from SystemTrayItem. | |
| 36 views::View* CreateTrayView(user::LoginStatus status) override; | |
| 37 views::View* CreateDefaultView(user::LoginStatus status) override; | |
| 38 views::View* CreateDetailedView(user::LoginStatus status) override; | |
| 39 void DestroyTrayView() override; | |
| 40 void DestroyDefaultView() override; | |
| 41 void DestroyDetailedView() override; | |
| 42 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override; | |
| 43 | |
| 44 // Overridden from ShellObserver. | |
| 45 void OnCastingSessionStartedOrStopped(bool started) override; | |
| 46 | |
| 47 void UpdatePrimaryView(); | |
| 48 | |
| 49 bool is_casting_; | |
| 50 | |
| 51 // Not owned. | |
| 52 tray::CastTrayView* tray_; | |
| 53 tray::CastDuplexView* default_; | |
| 54 tray::CastDetailedView* detailed_; | |
| 55 CastConfigDelegate* cast_config_delegate_; | |
| 56 | |
| 57 DISALLOW_COPY_AND_ASSIGN(TrayCast); | |
| 58 }; | |
| 59 | |
| 60 } // namespace ash | |
| 61 | |
| 62 #endif // ASH_SYSTEM_CAST_TRAY_CAST_H_ | |
| OLD | NEW |