chromium/extensions/components/native_app_window/native_app_window_views.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/components/native_app_window/native_app_window_views.h"

#include "base/functional/bind.h"
#include "base/observer_list_types.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/app_window/app_window.h"
#include "extensions/common/mojom/app_window.mojom.h"
#include "services/service_manager/public/cpp/interface_provider.h"
#include "third_party/blink/public/mojom/page/draggable_region.mojom.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/geometry/rounded_corners_f.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/non_client_view.h"

#if defined(USE_AURA)
#include "ui/aura/window.h"
#endif

namespace native_app_window {

NativeAppWindowViews::NativeAppWindowViews() {}

void NativeAppWindowViews::Init(
    extensions::AppWindow* app_window,
    const extensions::AppWindow::CreateParams& create_params) {}

NativeAppWindowViews::~NativeAppWindowViews() {}

void NativeAppWindowViews::OnCanHaveAlphaEnabledChanged() {}

void NativeAppWindowViews::InitializeWindow(
    extensions::AppWindow* app_window,
    const extensions::AppWindow::CreateParams& create_params) {}

// ui::BaseWindow implementation.

bool NativeAppWindowViews::IsActive() const {}

bool NativeAppWindowViews::IsMaximized() const {}

bool NativeAppWindowViews::IsMinimized() const {}

bool NativeAppWindowViews::IsFullscreen() const {}

gfx::NativeWindow NativeAppWindowViews::GetNativeWindow() const {}

gfx::Rect NativeAppWindowViews::GetRestoredBounds() const {}

ui::WindowShowState NativeAppWindowViews::GetRestoredState() const {}

gfx::Rect NativeAppWindowViews::GetBounds() const {}

void NativeAppWindowViews::Show() {}

void NativeAppWindowViews::ShowInactive() {}

void NativeAppWindowViews::Hide() {}

bool NativeAppWindowViews::IsVisible() const {}

void NativeAppWindowViews::Close() {}

void NativeAppWindowViews::Activate() {}

void NativeAppWindowViews::Deactivate() {}

void NativeAppWindowViews::Maximize() {}

void NativeAppWindowViews::Minimize() {}

void NativeAppWindowViews::Restore() {}

void NativeAppWindowViews::SetBounds(const gfx::Rect& bounds) {}

void NativeAppWindowViews::FlashFrame(bool flash) {}

ui::ZOrderLevel NativeAppWindowViews::GetZOrderLevel() const {}

void NativeAppWindowViews::SetZOrderLevel(ui::ZOrderLevel order) {}

// WidgetDelegate implementation.

void NativeAppWindowViews::OnWidgetMove() {}

views::View* NativeAppWindowViews::GetInitiallyFocusedView() {}

std::u16string NativeAppWindowViews::GetWindowTitle() const {}

bool NativeAppWindowViews::ShouldShowWindowTitle() const {}

bool NativeAppWindowViews::ShouldSaveWindowPlacement() const {}

void NativeAppWindowViews::SaveWindowPlacement(const gfx::Rect& bounds,
                                               ui::WindowShowState show_state) {}

bool NativeAppWindowViews::ShouldDescendIntoChildForEventHandling(
    gfx::NativeView child,
    const gfx::Point& location) {}

// WidgetObserver implementation.

void NativeAppWindowViews::OnWidgetDestroying(views::Widget* widget) {}

void NativeAppWindowViews::OnWidgetVisibilityChanged(views::Widget* widget,
                                                     bool visible) {}

void NativeAppWindowViews::OnWidgetActivationChanged(views::Widget* widget,
                                                     bool active) {}

// WebContentsObserver implementation.

void NativeAppWindowViews::RenderFrameCreated(
    content::RenderFrameHost* render_frame_host) {}

// views::View implementation.

gfx::Size NativeAppWindowViews::GetMinimumSize() const {}

gfx::Size NativeAppWindowViews::GetMaximumSize() const {}

void NativeAppWindowViews::OnBoundsChanged(const gfx::Rect& previous_bounds) {}

void NativeAppWindowViews::OnFocus() {}

// NativeAppWindow implementation.

void NativeAppWindowViews::SetFullscreen(int fullscreen_types) {}

bool NativeAppWindowViews::IsFullscreenOrPending() const {}

void NativeAppWindowViews::UpdateWindowIcon() {}

void NativeAppWindowViews::UpdateWindowTitle() {}

void NativeAppWindowViews::DraggableRegionsChanged(
    const std::vector<blink::mojom::DraggableRegionPtr>& regions) {}

SkRegion* NativeAppWindowViews::GetDraggableRegion() {}

void NativeAppWindowViews::UpdateShape(std::unique_ptr<ShapeRects> rects) {}

bool NativeAppWindowViews::HandleKeyboardEvent(
    const input::NativeWebKeyboardEvent& event) {}

bool NativeAppWindowViews::IsFrameless() const {}

bool NativeAppWindowViews::HasFrameColor() const {}

SkColor NativeAppWindowViews::ActiveFrameColor() const {}

SkColor NativeAppWindowViews::InactiveFrameColor() const {}

gfx::Insets NativeAppWindowViews::GetFrameInsets() const {}

gfx::RoundedCornersF NativeAppWindowViews::GetWindowRadii() const {}

gfx::Size NativeAppWindowViews::GetContentMinimumSize() const {}

gfx::Size NativeAppWindowViews::GetContentMaximumSize() const {}

void NativeAppWindowViews::SetContentSizeConstraints(
    const gfx::Size& min_size,
    const gfx::Size& max_size) {}

bool NativeAppWindowViews::CanHaveAlphaEnabled() const {}

void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) {}

void NativeAppWindowViews::SetActivateOnPointer(bool activate_on_pointer) {}

gfx::NativeView NativeAppWindowViews::GetHostView() const {}

gfx::Point NativeAppWindowViews::GetDialogPosition(const gfx::Size& size) {}

gfx::Size NativeAppWindowViews::GetMaximumDialogSize() {}

void NativeAppWindowViews::AddObserver(
    web_modal::ModalDialogHostObserver* observer) {}
void NativeAppWindowViews::RemoveObserver(
    web_modal::ModalDialogHostObserver* observer) {}

void NativeAppWindowViews::OnWidgetHasHitTestMaskChanged() {}

void NativeAppWindowViews::OnViewWasResized() {}

bool NativeAppWindowViews::GetCanResizeWindow() const {}

bool NativeAppWindowViews::GetCanMaximizeWindow() const {}

BEGIN_METADATA()

}  // namespace native_app_window