blob: cc281a2220e1f1272504cef40a1c311d04e53d64 [file] [log] [blame]
// 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.
namespace views {
class View;
} // namespace views
namespace ash {
// Base class for controllers of detailed views.
// To add a new detailed view, implement this class, and instantiate in
// UnifiedSystemTrayController::Show*DetailedView() method.
class DetailedViewController {
virtual ~DetailedViewController() = default;
// Create the detailed view. The view will be owned by views hierarchy. The
// view will be always deleted after the controller is destructed.
virtual views::View* CreateView() = 0;
} // namespace ash