| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_CAST_TRAY_CAST_H_ | 5 #ifndef ASH_SYSTEM_CAST_TRAY_CAST_H_ |
| 6 #define ASH_SYSTEM_CAST_TRAY_CAST_H_ | 6 #define ASH_SYSTEM_CAST_TRAY_CAST_H_ |
| 7 | 7 |
| 8 #include "ash/cast_config_delegate.h" | 8 #include "ash/cast_config_delegate.h" |
| 9 #include "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
| 10 #include "ash/system/tray/system_tray_item.h" | 10 #include "ash/system/tray/system_tray_item.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 friend class TrayCastTestAPI; | 30 friend class TrayCastTestAPI; |
| 31 void StartCastForTest(const std::string& receiver_id); | 31 void StartCastForTest(const std::string& receiver_id); |
| 32 void StopCastForTest(); | 32 void StopCastForTest(); |
| 33 // Returns the id of the item we are currently displaying in the cast view. | 33 // Returns the id of the item we are currently displaying in the cast view. |
| 34 // This assumes that the cast view is active. | 34 // This assumes that the cast view is active. |
| 35 const std::string& GetDisplayedCastId(); | 35 const std::string& GetDisplayedCastId(); |
| 36 const views::View* GetDefaultView() const; | 36 const views::View* GetDefaultView() const; |
| 37 enum ChildViewId { TRAY_VIEW = 1, SELECT_VIEW, CAST_VIEW }; | 37 enum ChildViewId { TRAY_VIEW = 1, SELECT_VIEW, CAST_VIEW }; |
| 38 | 38 |
| 39 // Overridden from SystemTrayItem. | 39 // Overridden from SystemTrayItem. |
| 40 views::View* CreateTrayView(user::LoginStatus status) override; | 40 views::View* CreateTrayView(LoginStatus status) override; |
| 41 views::View* CreateDefaultView(user::LoginStatus status) override; | 41 views::View* CreateDefaultView(LoginStatus status) override; |
| 42 views::View* CreateDetailedView(user::LoginStatus status) override; | 42 views::View* CreateDetailedView(LoginStatus status) override; |
| 43 void DestroyTrayView() override; | 43 void DestroyTrayView() override; |
| 44 void DestroyDefaultView() override; | 44 void DestroyDefaultView() override; |
| 45 void DestroyDetailedView() override; | 45 void DestroyDetailedView() override; |
| 46 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override; | 46 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override; |
| 47 | 47 |
| 48 // Overridden from ShellObserver. | 48 // Overridden from ShellObserver. |
| 49 void OnCastingSessionStartedOrStopped(bool started) override; | 49 void OnCastingSessionStartedOrStopped(bool started) override; |
| 50 | 50 |
| 51 // Overridden from CastConfigDelegate::Observer. | 51 // Overridden from CastConfigDelegate::Observer. |
| 52 void OnDevicesUpdated( | 52 void OnDevicesUpdated( |
| (...skipping 18 matching lines...) Expand all Loading... |
| 71 tray::CastTrayView* tray_ = nullptr; | 71 tray::CastTrayView* tray_ = nullptr; |
| 72 tray::CastDuplexView* default_ = nullptr; | 72 tray::CastDuplexView* default_ = nullptr; |
| 73 tray::CastDetailedView* detailed_ = nullptr; | 73 tray::CastDetailedView* detailed_ = nullptr; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(TrayCast); | 75 DISALLOW_COPY_AND_ASSIGN(TrayCast); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace ash | 78 } // namespace ash |
| 79 | 79 |
| 80 #endif // ASH_SYSTEM_CAST_TRAY_CAST_H_ | 80 #endif // ASH_SYSTEM_CAST_TRAY_CAST_H_ |
| OLD | NEW |