#include "extensions/shell/browser/shell_native_app_window.h"
#include "extensions/shell/browser/desktop_controller.h"
#include "third_party/blink/public/mojom/page/draggable_region.mojom.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rounded_corners_f.h"
#include "ui/gfx/geometry/size.h"
namespace extensions {
ShellNativeAppWindow::ShellNativeAppWindow(
AppWindow* app_window,
const AppWindow::CreateParams& params)
: … { … }
ShellNativeAppWindow::~ShellNativeAppWindow() { … }
bool ShellNativeAppWindow::IsMaximized() const { … }
bool ShellNativeAppWindow::IsMinimized() const { … }
bool ShellNativeAppWindow::IsFullscreen() const { … }
gfx::Rect ShellNativeAppWindow::GetRestoredBounds() const { … }
ui::WindowShowState ShellNativeAppWindow::GetRestoredState() const { … }
void ShellNativeAppWindow::ShowInactive() { … }
void ShellNativeAppWindow::Close() { … }
void ShellNativeAppWindow::Maximize() { … }
void ShellNativeAppWindow::Minimize() { … }
void ShellNativeAppWindow::Restore() { … }
void ShellNativeAppWindow::FlashFrame(bool flash) { … }
ui::ZOrderLevel ShellNativeAppWindow::GetZOrderLevel() const { … }
void ShellNativeAppWindow::SetZOrderLevel(ui::ZOrderLevel level) { … }
gfx::NativeView ShellNativeAppWindow::GetHostView() const { … }
gfx::Point ShellNativeAppWindow::GetDialogPosition(const gfx::Size& size) { … }
void ShellNativeAppWindow::AddObserver(
web_modal::ModalDialogHostObserver* observer) { … }
void ShellNativeAppWindow::RemoveObserver(
web_modal::ModalDialogHostObserver* observer) { … }
gfx::Size ShellNativeAppWindow::GetMaximumDialogSize() { … }
void ShellNativeAppWindow::SetFullscreen(int fullscreen_types) { … }
bool ShellNativeAppWindow::IsFullscreenOrPending() const { … }
void ShellNativeAppWindow::UpdateWindowIcon() { … }
void ShellNativeAppWindow::UpdateWindowTitle() { … }
void ShellNativeAppWindow::DraggableRegionsChanged(
const std::vector<blink::mojom::DraggableRegionPtr>& regions) { … }
SkRegion* ShellNativeAppWindow::GetDraggableRegion() { … }
void ShellNativeAppWindow::UpdateShape(std::unique_ptr<ShapeRects> rects) { … }
bool ShellNativeAppWindow::HandleKeyboardEvent(
const input::NativeWebKeyboardEvent& event) { … }
bool ShellNativeAppWindow::IsFrameless() const { … }
bool ShellNativeAppWindow::HasFrameColor() const { … }
SkColor ShellNativeAppWindow::ActiveFrameColor() const { … }
SkColor ShellNativeAppWindow::InactiveFrameColor() const { … }
gfx::Insets ShellNativeAppWindow::GetFrameInsets() const { … }
gfx::RoundedCornersF ShellNativeAppWindow::GetWindowRadii() const { … }
void ShellNativeAppWindow::SetContentSizeConstraints(
const gfx::Size& min_size,
const gfx::Size& max_size) { … }
void ShellNativeAppWindow::SetVisibleOnAllWorkspaces(bool always_visible) { … }
bool ShellNativeAppWindow::CanHaveAlphaEnabled() const { … }
void ShellNativeAppWindow::SetActivateOnPointer(bool activate_on_pointer) { … }
}