12345678910111213141516171819202122232425262728293031323334 |
- // Copyright 2018 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.
- #include "ash/system/cast/unified_cast_detailed_view_controller.h"
- #include "ash/shell.h"
- #include "ash/strings/grit/ash_strings.h"
- #include "ash/system/cast/tray_cast.h"
- #include "ash/system/tray/detailed_view_delegate.h"
- #include "ui/base/l10n/l10n_util.h"
- namespace ash {
- UnifiedCastDetailedViewController::UnifiedCastDetailedViewController(
- UnifiedSystemTrayController* tray_controller)
- : detailed_view_delegate_(
- std::make_unique<DetailedViewDelegate>(tray_controller)) {}
- UnifiedCastDetailedViewController::~UnifiedCastDetailedViewController() =
- default;
- views::View* UnifiedCastDetailedViewController::CreateView() {
- DCHECK(!view_);
- view_ = new CastDetailedView(detailed_view_delegate_.get());
- return view_;
- }
- std::u16string UnifiedCastDetailedViewController::GetAccessibleName() const {
- return l10n_util::GetStringUTF16(
- IDS_ASH_QUICK_SETTINGS_BUBBLE_CAST_SETTINGS_ACCESSIBLE_DESCRIPTION);
- }
- } // namespace ash
|