[go: nahoru, domu]

blob: ccd4ef124a549185b1f24f2151316e817a669ab2 [file] [log] [blame]
Tetsui Ohkuboed9891a2018-05-28 08:13:051// Copyright 2018 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_NETWORK_UNIFIED_VPN_DETAILED_VIEW_CONTROLLER_H_
6#define ASH_SYSTEM_NETWORK_UNIFIED_VPN_DETAILED_VIEW_CONTROLLER_H_
7
Steven Bennetts9f7c8a882019-08-14 16:21:358#include <memory>
9
Tetsui Ohkuboed9891a2018-05-28 08:13:0510#include "ash/system/unified/detailed_view_controller.h"
Steven Bennetts9f7c8a882019-08-14 16:21:3511#include "base/macros.h"
Tetsui Ohkuboed9891a2018-05-28 08:13:0512
13namespace ash {
14
15namespace tray {
16class VPNListView;
17} // namespace tray
18
19class DetailedViewDelegate;
20class UnifiedSystemTrayController;
21
22// Controller of VPN detailed view in UnifiedSystemTray.
Steven Bennetts9f7c8a882019-08-14 16:21:3523class UnifiedVPNDetailedViewController : public DetailedViewController {
Tetsui Ohkuboed9891a2018-05-28 08:13:0524 public:
25 explicit UnifiedVPNDetailedViewController(
26 UnifiedSystemTrayController* tray_controller);
27 ~UnifiedVPNDetailedViewController() override;
28
29 // DetailedViewControllerBase:
30 views::View* CreateView() override;
Jan Wilken Dörrie85285b02021-03-11 23:38:4731 std::u16string GetAccessibleName() const override;
Tetsui Ohkuboed9891a2018-05-28 08:13:0532
Tetsui Ohkuboed9891a2018-05-28 08:13:0533 private:
34 const std::unique_ptr<DetailedViewDelegate> detailed_view_delegate_;
Tetsui Ohkuboed9891a2018-05-28 08:13:0535
36 tray::VPNListView* view_ = nullptr;
37
38 DISALLOW_COPY_AND_ASSIGN(UnifiedVPNDetailedViewController);
39};
40
41} // namespace ash
42
43#endif // ASH_SYSTEM_NETWORK_UNIFIED_VPN_DETAILED_VIEW_CONTROLLER_H_