blob: 0f8b5145ed3c3a620296346b67fb85721bab7ffc [file] [log] [blame]
// Copyright 2021 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.
#ifndef CHROME_BROWSER_ASH_WEB_APPLICATIONS_ECHE_APP_INFO_H_
#define CHROME_BROWSER_ASH_WEB_APPLICATIONS_ECHE_APP_INFO_H_
#include "chrome/browser/web_applications/system_web_apps/system_web_app_delegate.h"
#include "chrome/browser/web_applications/system_web_apps/system_web_app_types.h"
#include "ui/gfx/geometry/rect.h"
class Browser;
struct WebApplicationInfo;
class EcheSystemAppDelegate : public web_app::SystemWebAppDelegate {
public:
explicit EcheSystemAppDelegate(Profile* profile);
// web_app::SystemWebAppDelegate overrides:
std::unique_ptr<WebApplicationInfo> GetWebAppInfo() const override;
bool ShouldCaptureNavigations() const override;
bool ShouldShowInLauncher() const override;
bool ShouldShowInSearch() const override;
bool ShouldAllowResize() const override;
bool ShouldAllowMaximize() const override;
bool ShouldHaveReloadButtonInMinimalUi() const override;
bool ShouldAllowScriptsToCloseWindows() const override;
gfx::Rect GetDefaultBounds(Browser*) const override;
bool IsAppEnabled() const override;
};
// Return a WebApplicationInfo used to install the app.
std::unique_ptr<WebApplicationInfo> CreateWebAppInfoForEcheApp();
// Returns the default bounds.
gfx::Rect GetDefaultBoundsForEche(Browser*);
#endif // CHROME_BROWSER_ASH_WEB_APPLICATIONS_ECHE_APP_INFO_H_