#include "ui/views/widget/widget_delegate.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/image_model.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/views/view.h"
#include "ui/views/views_delegate.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/client_view.h"
namespace views {
namespace {
std::unique_ptr<ClientView> CreateDefaultClientView(WidgetDelegate* delegate,
Widget* widget) { … }
std::unique_ptr<View> CreateDefaultOverlayView() { … }
}
WidgetDelegate::Params::Params() = default;
WidgetDelegate::Params::~Params() = default;
WidgetDelegate::WidgetDelegate()
: … { … }
WidgetDelegate::~WidgetDelegate() { … }
void WidgetDelegate::SetCanActivate(bool can_activate) { … }
void WidgetDelegate::OnWidgetMove() { … }
void WidgetDelegate::OnDisplayChanged() { … }
void WidgetDelegate::OnWorkAreaChanged() { … }
bool WidgetDelegate::OnCloseRequested(Widget::ClosedReason close_reason) { … }
View* WidgetDelegate::GetInitiallyFocusedView() { … }
bool WidgetDelegate::HasConfiguredInitiallyFocusedView() const { … }
BubbleDialogDelegate* WidgetDelegate::AsBubbleDialogDelegate() { … }
DialogDelegate* WidgetDelegate::AsDialogDelegate() { … }
bool WidgetDelegate::CanResize() const { … }
bool WidgetDelegate::CanMaximize() const { … }
bool WidgetDelegate::CanMinimize() const { … }
bool WidgetDelegate::CanFullscreen() const { … }
bool WidgetDelegate::CanActivate() const { … }
ui::mojom::ModalType WidgetDelegate::GetModalType() const { … }
ax::mojom::Role WidgetDelegate::GetAccessibleWindowRole() { … }
std::u16string WidgetDelegate::GetAccessibleWindowTitle() const { … }
std::u16string WidgetDelegate::GetWindowTitle() const { … }
bool WidgetDelegate::ShouldShowWindowTitle() const { … }
bool WidgetDelegate::ShouldCenterWindowTitleText() const { … }
bool WidgetDelegate::RotatePaneFocusFromView(View* focused_view,
bool forward,
bool enable_wrapping) { … }
bool WidgetDelegate::ShouldShowCloseButton() const { … }
ui::ImageModel WidgetDelegate::GetWindowAppIcon() { … }
ui::ImageModel WidgetDelegate::GetWindowIcon() { … }
bool WidgetDelegate::ShouldShowWindowIcon() const { … }
bool WidgetDelegate::ExecuteWindowsCommand(int command_id) { … }
std::string WidgetDelegate::GetWindowName() const { … }
void WidgetDelegate::SaveWindowPlacement(const gfx::Rect& bounds,
ui::WindowShowState show_state) { … }
bool WidgetDelegate::ShouldSaveWindowPlacement() const { … }
bool WidgetDelegate::GetSavedWindowPlacement(
const Widget* widget,
gfx::Rect* bounds,
ui::WindowShowState* show_state) const { … }
base::WeakPtr<WidgetDelegate> WidgetDelegate::AttachWidgetAndGetHandle(
Widget* widget) { … }
void WidgetDelegate::WidgetInitialized() { … }
void WidgetDelegate::WidgetDestroying() { … }
void WidgetDelegate::WindowWillClose() { … }
void WidgetDelegate::WindowClosing() { … }
void WidgetDelegate::DeleteDelegate() { … }
Widget* WidgetDelegate::GetWidget() { … }
const Widget* WidgetDelegate::GetWidget() const { … }
View* WidgetDelegate::GetContentsView() { … }
View* WidgetDelegate::TransferOwnershipOfContentsView() { … }
ClientView* WidgetDelegate::CreateClientView(Widget* widget) { … }
std::unique_ptr<NonClientFrameView> WidgetDelegate::CreateNonClientFrameView(
Widget* widget) { … }
View* WidgetDelegate::CreateOverlayView() { … }
bool WidgetDelegate::WidgetHasHitTestMask() const { … }
void WidgetDelegate::GetWidgetHitTestMask(SkPath* mask) const { … }
bool WidgetDelegate::ShouldDescendIntoChildForEventHandling(
gfx::NativeView child,
const gfx::Point& location) { … }
void WidgetDelegate::SetAccessibleWindowRole(ax::mojom::Role role) { … }
void WidgetDelegate::SetAccessibleTitle(std::u16string title) { … }
void WidgetDelegate::SetCanFullscreen(bool can_fullscreen) { … }
void WidgetDelegate::SetCanMaximize(bool can_maximize) { … }
void WidgetDelegate::SetCanMinimize(bool can_minimize) { … }
void WidgetDelegate::SetCanResize(bool can_resize) { … }
void WidgetDelegate::SetOwnedByWidget(bool owned) { … }
void WidgetDelegate::SetFocusTraversesOut(bool focus_traverses_out) { … }
void WidgetDelegate::SetEnableArrowKeyTraversal(
bool enable_arrow_key_traversal) { … }
void WidgetDelegate::SetIcon(ui::ImageModel icon) { … }
void WidgetDelegate::SetAppIcon(ui::ImageModel icon) { … }
void WidgetDelegate::SetInitiallyFocusedView(View* initially_focused_view) { … }
void WidgetDelegate::SetModalType(ui::mojom::ModalType modal_type) { … }
void WidgetDelegate::SetShowCloseButton(bool show_close_button) { … }
void WidgetDelegate::SetShowIcon(bool show_icon) { … }
void WidgetDelegate::SetShowTitle(bool show_title) { … }
void WidgetDelegate::SetTitle(const std::u16string& title) { … }
void WidgetDelegate::SetTitle(int title_message_id) { … }
#if defined(USE_AURA)
void WidgetDelegate::SetCenterTitle(bool center_title) { … }
#endif
void WidgetDelegate::SetHasWindowSizeControls(bool has_controls) { … }
void WidgetDelegate::RegisterWidgetInitializedCallback(
base::OnceClosure callback) { … }
void WidgetDelegate::RegisterWindowWillCloseCallback(
base::OnceClosure callback) { … }
void WidgetDelegate::RegisterWindowClosingCallback(base::OnceClosure callback) { … }
void WidgetDelegate::RegisterDeleteDelegateCallback(
base::OnceClosure callback) { … }
void WidgetDelegate::SetClientViewFactory(ClientViewFactory factory) { … }
void WidgetDelegate::SetOverlayViewFactory(OverlayViewFactory factory) { … }
void WidgetDelegate::SetContentsViewImpl(std::unique_ptr<View> contents) { … }
gfx::Rect WidgetDelegate::GetDesiredWidgetBounds() { … }
WidgetDelegateView::WidgetDelegateView() = default;
WidgetDelegateView::~WidgetDelegateView() = default;
Widget* WidgetDelegateView::GetWidget() { … }
const Widget* WidgetDelegateView::GetWidget() const { … }
views::View* WidgetDelegateView::GetContentsView() { … }
BEGIN_METADATA(…)
}