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

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

Issue 1118613003: Add UI for cast system tray integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Show different active cast titles based on if we are casting a tab or the desktop Created 5 years, 7 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_CAST_TRAY_CAST_H_
6 #define ASH_SYSTEM_CAST_TRAY_CAST_H_
7
8 #include "ash/shell_observer.h"
9 #include "ash/system/cast/cast_observer.h"
10 #include "ash/system/tray/system_tray_item.h"
11
12 namespace ash {
13 namespace tray {
14 class CastTrayView;
15 class CastSelectDefaultView;
16 class CastDetailedView;
17 class CastDuplexView;
18 }
19
20 class CastConfigDelegate;
21
22 class TrayCast : public SystemTrayItem,
23 public CastObserver,
24 public ShellObserver {
25 public:
26 explicit TrayCast(SystemTray* system_tray);
27 ~TrayCast() override;
28
29 private:
30 bool HasCastExtension();
31
32 // Overridden from CastObserver.
33 void OnCastRefresh() override;
34
35 // Overridden from SystemTrayItem.
36 views::View* CreateTrayView(user::LoginStatus status) override;
37 views::View* CreateDefaultView(user::LoginStatus status) override;
38 views::View* CreateDetailedView(user::LoginStatus status) override;
39 void DestroyTrayView() override;
40 void DestroyDefaultView() override;
41 void DestroyDetailedView() override;
42 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
43
44 // Overridden from ShellObserver.
45 void OnCastingSessionStartedOrStopped(bool started) override;
46
47 void UpdatePrimaryView();
48
49 bool is_casting_;
50
51 // Not owned.
52 tray::CastTrayView* tray_;
53 tray::CastDuplexView* default_;
54 tray::CastDetailedView* detailed_;
55 CastConfigDelegate* cast_config_delegate_;
56
57 DISALLOW_COPY_AND_ASSIGN(TrayCast);
58 };
59
60 } // namespace ash
61
62 #endif // ASH_SYSTEM_CAST_TRAY_CAST_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/system/cast/tray_cast.cc » ('j') | ash/system/cast/tray_cast.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698