Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: ash/common/system/cast/tray_cast.h

Issue 2424183002: Remove Chromecast extension support from cast system tray menu. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_COMMON_SYSTEM_CAST_TRAY_CAST_H_ 5 #ifndef ASH_COMMON_SYSTEM_CAST_TRAY_CAST_H_
6 #define ASH_COMMON_SYSTEM_CAST_TRAY_CAST_H_ 6 #define ASH_COMMON_SYSTEM_CAST_TRAY_CAST_H_
7 7
8 #include "ash/common/cast_config_delegate.h" 8 #include "ash/common/cast_config_delegate.h"
9 #include "ash/common/shell_observer.h" 9 #include "ash/common/shell_observer.h"
10 #include "ash/common/system/tray/system_tray_item.h" 10 #include "ash/common/system/tray/system_tray_item.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(
53 const CastConfigDelegate::ReceiversAndActivities& devices) override; 53 const CastConfigDelegate::ReceiversAndActivities& devices) override;
54 54
55 // Returns true if the cast extension was detected.
56 bool HasCastExtension();
57
58 // This makes sure that the current view displayed in the tray is the correct 55 // This makes sure that the current view displayed in the tray is the correct
59 // one, depending on if we are currently casting. If we're casting, then a 56 // one, depending on if we are currently casting. If we're casting, then a
60 // view with a stop button is displayed; otherwise, a view that links to a 57 // view with a stop button is displayed; otherwise, a view that links to a
61 // detail view is displayed instead that allows the user to easily begin a 58 // detail view is displayed instead that allows the user to easily begin a
62 // casting session. 59 // casting session.
63 void UpdatePrimaryView(); 60 void UpdatePrimaryView();
64 61
65 CastConfigDelegate::ReceiversAndActivities receivers_and_activities_; 62 CastConfigDelegate::ReceiversAndActivities receivers_and_activities_;
66 bool is_casting_ = false; 63 bool is_casting_ = false;
67 64
68 bool added_observer_ = false; 65 bool added_observer_ = false;
69 66
70 // Not owned. 67 // Not owned.
71 tray::CastTrayView* tray_ = nullptr; 68 tray::CastTrayView* tray_ = nullptr;
72 tray::CastDuplexView* default_ = nullptr; 69 tray::CastDuplexView* default_ = nullptr;
73 tray::CastDetailedView* detailed_ = nullptr; 70 tray::CastDetailedView* detailed_ = nullptr;
74 71
75 DISALLOW_COPY_AND_ASSIGN(TrayCast); 72 DISALLOW_COPY_AND_ASSIGN(TrayCast);
76 }; 73 };
77 74
78 } // namespace ash 75 } // namespace ash
79 76
80 #endif // ASH_COMMON_SYSTEM_CAST_TRAY_CAST_H_ 77 #endif // ASH_COMMON_SYSTEM_CAST_TRAY_CAST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698