1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ash / system / brightness / quick_settings_display_detailed_view_controller.h [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SYSTEM_BRIGHTNESS_QUICK_SETTINGS_DISPLAY_DETAILED_VIEW_CONTROLLER_H_
#define ASH_SYSTEM_BRIGHTNESS_QUICK_SETTINGS_DISPLAY_DETAILED_VIEW_CONTROLLER_H_
#include <memory>
#include "ash/ash_export.h"
#include "ash/system/unified/detailed_view_controller.h"
#include "base/memory/raw_ptr.h"
namespace ash {
class DisplayDetailedView;
class DetailedViewDelegate;
class UnifiedSystemTrayController;
// Controller of `DisplayDetailedView` in `UnifiedSystemTray`.
class ASH_EXPORT QuickSettingsDisplayDetailedViewController
: public DetailedViewController {
public:
explicit QuickSettingsDisplayDetailedViewController(
UnifiedSystemTrayController* tray_controller);
QuickSettingsDisplayDetailedViewController(
const QuickSettingsDisplayDetailedViewController&) = delete;
QuickSettingsDisplayDetailedViewController& operator=(
const QuickSettingsDisplayDetailedViewController&) = delete;
~QuickSettingsDisplayDetailedViewController() override;
// DetailedViewController:
std::unique_ptr<views::View> CreateView() override;
std::u16string GetAccessibleName() const override;
private:
const std::unique_ptr<DetailedViewDelegate> detailed_view_delegate_;
const raw_ptr<UnifiedSystemTrayController> tray_controller_;
};
} // namespace ash
#endif // ASH_SYSTEM_BRIGHTNESS_QUICK_SETTINGS_DISPLAY_DETAILED_VIEW_CONTROLLER_H_