Tetsui Ohkubo | ed9891a | 2018-05-28 08:13:05 | [diff] [blame] | 1 | // 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 Bennetts | 9f7c8a88 | 2019-08-14 16:21:35 | [diff] [blame] | 8 | #include <memory> |
| 9 | |
Tetsui Ohkubo | ed9891a | 2018-05-28 08:13:05 | [diff] [blame] | 10 | #include "ash/system/unified/detailed_view_controller.h" |
Steven Bennetts | 9f7c8a88 | 2019-08-14 16:21:35 | [diff] [blame] | 11 | #include "base/macros.h" |
Tetsui Ohkubo | ed9891a | 2018-05-28 08:13:05 | [diff] [blame] | 12 | |
| 13 | namespace ash { |
| 14 | |
| 15 | namespace tray { |
| 16 | class VPNListView; |
| 17 | } // namespace tray |
| 18 | |
| 19 | class DetailedViewDelegate; |
| 20 | class UnifiedSystemTrayController; |
| 21 | |
| 22 | // Controller of VPN detailed view in UnifiedSystemTray. |
Steven Bennetts | 9f7c8a88 | 2019-08-14 16:21:35 | [diff] [blame] | 23 | class UnifiedVPNDetailedViewController : public DetailedViewController { |
Tetsui Ohkubo | ed9891a | 2018-05-28 08:13:05 | [diff] [blame] | 24 | public: |
| 25 | explicit UnifiedVPNDetailedViewController( |
| 26 | UnifiedSystemTrayController* tray_controller); |
| 27 | ~UnifiedVPNDetailedViewController() override; |
| 28 | |
| 29 | // DetailedViewControllerBase: |
| 30 | views::View* CreateView() override; |
Jan Wilken Dörrie | 85285b0 | 2021-03-11 23:38:47 | [diff] [blame^] | 31 | std::u16string GetAccessibleName() const override; |
Tetsui Ohkubo | ed9891a | 2018-05-28 08:13:05 | [diff] [blame] | 32 | |
Tetsui Ohkubo | ed9891a | 2018-05-28 08:13:05 | [diff] [blame] | 33 | private: |
| 34 | const std::unique_ptr<DetailedViewDelegate> detailed_view_delegate_; |
Tetsui Ohkubo | ed9891a | 2018-05-28 08:13:05 | [diff] [blame] | 35 | |
| 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_ |