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

Unified Diff: ash/common/system/cast/tray_cast.h

Issue 2463163002: Update chromeos system menu buttons for MD. (Closed)
Patch Set: boxlayout has some annoying dchecks 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/system/cast/tray_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/cast/tray_cast.h
diff --git a/ash/common/system/cast/tray_cast.h b/ash/common/system/cast/tray_cast.h
deleted file mode 100644
index ce889959211063075efe5aa1ccb517d7b799fe51..0000000000000000000000000000000000000000
--- a/ash/common/system/cast/tray_cast.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_SYSTEM_CAST_TRAY_CAST_H_
-#define ASH_COMMON_SYSTEM_CAST_TRAY_CAST_H_
-
-#include "ash/common/cast_config_delegate.h"
-#include "ash/common/shell_observer.h"
-#include "ash/common/system/tray/system_tray_item.h"
-#include "base/macros.h"
-
-namespace ash {
-namespace tray {
-class CastTrayView;
-class CastSelectDefaultView;
-class CastDetailedView;
-class CastDuplexView;
-} // namespace tray
-
-class ASH_EXPORT TrayCast : public SystemTrayItem,
- public ShellObserver,
- public CastConfigDelegate::Observer {
- public:
- explicit TrayCast(SystemTray* system_tray);
- ~TrayCast() override;
-
- private:
- // Helper/utility methods for testing.
- friend class TrayCastTestAPI;
- void StartCastForTest(const std::string& receiver_id);
- void StopCastForTest();
- // Returns the id of the item we are currently displaying in the cast view.
- // This assumes that the cast view is active.
- const std::string& GetDisplayedCastId();
- const views::View* GetDefaultView() const;
- enum ChildViewId { TRAY_VIEW = 1, SELECT_VIEW, CAST_VIEW };
-
- // Overridden from SystemTrayItem.
- views::View* CreateTrayView(LoginStatus status) override;
- views::View* CreateDefaultView(LoginStatus status) override;
- views::View* CreateDetailedView(LoginStatus status) override;
- void DestroyTrayView() override;
- void DestroyDefaultView() override;
- void DestroyDetailedView() override;
-
- // Overridden from ShellObserver.
- void OnCastingSessionStartedOrStopped(bool started) override;
-
- // Overridden from CastConfigDelegate::Observer.
- void OnDevicesUpdated(
- const CastConfigDelegate::ReceiversAndActivities& devices) override;
-
- // Returns true if the cast extension was detected.
- bool HasCastExtension();
-
- // This makes sure that the current view displayed in the tray is the correct
- // one, depending on if we are currently casting. If we're casting, then a
- // view with a stop button is displayed; otherwise, a view that links to a
- // detail view is displayed instead that allows the user to easily begin a
- // casting session.
- void UpdatePrimaryView();
-
- CastConfigDelegate::ReceiversAndActivities receivers_and_activities_;
- bool is_casting_ = false;
-
- bool added_observer_ = false;
-
- // Not owned.
- tray::CastTrayView* tray_ = nullptr;
- tray::CastDuplexView* default_ = nullptr;
- tray::CastDetailedView* detailed_ = nullptr;
-
- DISALLOW_COPY_AND_ASSIGN(TrayCast);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_CAST_TRAY_CAST_H_
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/system/cast/tray_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698