// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_DIALOG_APP_PAUSE_DIALOG_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_APPS_APP_DIALOG_APP_PAUSE_DIALOG_VIEW_H_
#include "chrome/browser/apps/app_service/app_service_proxy.h"
#include "chrome/browser/ui/views/apps/app_dialog/app_dialog_view.h"
#include "components/services/app_service/public/cpp/app_types.h"
namespace gfx {
class ImageSkia;
}
// The app pause dialog. Once the user clicks the 'OK' button, this class calls
// the callback to notify AppService, which pauses the app.
class AppPauseDialogView : public AppDialogView {
public:
AppPauseDialogView(
apps::AppType app_type,
const std::string& app_name,
const gfx::ImageSkia& image,
const apps::PauseData& pause_data,
apps::AppServiceProxy::OnPauseDialogClosedCallback callback);
~AppPauseDialogView() override;
static AppPauseDialogView* GetActiveViewForTesting();
private:
base::OnceClosure closed_callback_;
};
#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_DIALOG_APP_PAUSE_DIALOG_VIEW_H_