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

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

Issue 2466043002: Cleanup TrayCast with media-router only support in mind. (Closed)
Patch Set: Add TODO 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
« no previous file with comments | « ash/common/cast_config_delegate.h ('k') | ash/common/system/chromeos/cast/tray_cast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHROMEOS_CAST_TRAY_CAST_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_CAST_TRAY_CAST_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_CAST_TRAY_CAST_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void OnDevicesUpdated( 51 void OnDevicesUpdated(
52 const CastConfigDelegate::SinksAndRoutes& devices) override; 52 const CastConfigDelegate::SinksAndRoutes& devices) override;
53 53
54 // This makes sure that the current view displayed in the tray is the correct 54 // This makes sure that the current view displayed in the tray is the correct
55 // one, depending on if we are currently casting. If we're casting, then a 55 // one, depending on if we are currently casting. If we're casting, then a
56 // view with a stop button is displayed; otherwise, a view that links to a 56 // view with a stop button is displayed; otherwise, a view that links to a
57 // detail view is displayed instead that allows the user to easily begin a 57 // detail view is displayed instead that allows the user to easily begin a
58 // casting session. 58 // casting session.
59 void UpdatePrimaryView(); 59 void UpdatePrimaryView();
60 60
61 // Returns true if there is an active cast route. The route may be DIAL based,
62 // such as casting YouTube where the cast sink directly streams content from
63 // another server. In that case, is_mirror_casting_ will be false since this
64 // device is not actively transmitting information to the cast sink.
65 bool HasActiveRoute();
66
61 CastConfigDelegate::SinksAndRoutes sinks_and_routes_; 67 CastConfigDelegate::SinksAndRoutes sinks_and_routes_;
62 bool is_casting_ = false;
63 68
64 bool added_observer_ = false; 69 // True if there is a mirror-based cast session and the active-cast tray icon
70 // should be shown.
71 bool is_mirror_casting_ = false;
65 72
66 // Not owned. 73 // Not owned.
67 tray::CastTrayView* tray_ = nullptr; 74 tray::CastTrayView* tray_ = nullptr;
68 tray::CastDuplexView* default_ = nullptr; 75 tray::CastDuplexView* default_ = nullptr;
69 tray::CastDetailedView* detailed_ = nullptr; 76 tray::CastDetailedView* detailed_ = nullptr;
70 77
71 DISALLOW_COPY_AND_ASSIGN(TrayCast); 78 DISALLOW_COPY_AND_ASSIGN(TrayCast);
72 }; 79 };
73 80
74 } // namespace ash 81 } // namespace ash
75 82
76 #endif // ASH_COMMON_SYSTEM_CHROMEOS_CAST_TRAY_CAST_H_ 83 #endif // ASH_COMMON_SYSTEM_CHROMEOS_CAST_TRAY_CAST_H_
OLDNEW
« no previous file with comments | « ash/common/cast_config_delegate.h ('k') | ash/common/system/chromeos/cast/tray_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698