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 25 matching lines...) Expand all Loading... |
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(user::LoginStatus status) override; |
41 views::View* CreateDefaultView(user::LoginStatus status) override; | 41 views::View* CreateDefaultView(user::LoginStatus status) override; |
42 views::View* CreateDetailedView(user::LoginStatus status) override; | 42 views::View* CreateDetailedView(user::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(wm::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( |
53 const CastConfigDelegate::ReceiversAndActivities& devices) override; | 53 const CastConfigDelegate::ReceiversAndActivities& devices) override; |
54 | 54 |
55 // Returns true if the cast extension was detected. | 55 // Returns true if the cast extension was detected. |
56 bool HasCastExtension(); | 56 bool HasCastExtension(); |
(...skipping 14 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 |