Chromium Code Reviews| Index: ash/system/cast/tray_cast.h |
| diff --git a/ash/system/cast/tray_cast.h b/ash/system/cast/tray_cast.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..572622e1e07a37e5ad048f5617c4dd8a8e957f05 |
| --- /dev/null |
| +++ b/ash/system/cast/tray_cast.h |
| @@ -0,0 +1,62 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_SYSTEM_CAST_TRAY_CAST_H_ |
| +#define ASH_SYSTEM_CAST_TRAY_CAST_H_ |
| + |
| +#include "ash/shell_observer.h" |
| +#include "ash/system/cast/cast_observer.h" |
| +#include "ash/system/tray/system_tray_item.h" |
| + |
| +namespace ash { |
| +namespace tray { |
| +class CastTrayView; |
| +class CastSelectDefaultView; |
| +class CastDetailedView; |
| +class CastDuplexView; |
| +} |
|
achuithb
2015/05/06 20:02:32
// namespace tray
jdufault
2015/05/06 21:17:32
Done.
|
| + |
| +class CastConfigDelegate; |
| + |
| +class TrayCast : public SystemTrayItem, |
| + public CastObserver, |
| + public ShellObserver { |
| + public: |
| + explicit TrayCast(SystemTray* system_tray); |
| + ~TrayCast() override; |
| + |
| + private: |
| + bool HasCastExtension(); |
| + |
| + // Overridden from CastObserver. |
| + void OnCastRefresh() override; |
| + |
| + // Overridden from SystemTrayItem. |
| + views::View* CreateTrayView(user::LoginStatus status) override; |
| + views::View* CreateDefaultView(user::LoginStatus status) override; |
| + views::View* CreateDetailedView(user::LoginStatus status) override; |
| + void DestroyTrayView() override; |
| + void DestroyDefaultView() override; |
| + void DestroyDetailedView() override; |
| + void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override; |
| + |
| + // Overridden from ShellObserver. |
| + void OnCastingSessionStartedOrStopped(bool started) override; |
| + |
| + void UpdatePrimaryView(); |
|
achuithb
2015/05/06 20:02:32
Fn comment
jdufault
2015/05/06 21:17:32
Done.
|
| + |
| + bool is_casting_; |
|
achuithb
2015/05/06 20:02:32
default
jdufault
2015/05/06 21:17:32
Done.
|
| + |
| + // Not owned. |
| + tray::CastTrayView* tray_; |
| + tray::CastDuplexView* default_; |
| + tray::CastDetailedView* detailed_; |
| + CastConfigDelegate* cast_config_delegate_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(TrayCast); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_SYSTEM_CAST_TRAY_CAST_H_ |