#include "extensions/browser/api/app_current_window_internal/app_current_window_internal_api.h"
#include <stdint.h>
#include <utility>
#include "base/command_line.h"
#include "extensions/browser/app_window/app_window.h"
#include "extensions/browser/app_window/app_window_client.h"
#include "extensions/browser/app_window/app_window_registry.h"
#include "extensions/browser/app_window/native_app_window.h"
#include "extensions/browser/app_window/size_constraints.h"
#include "extensions/common/api/app_current_window_internal.h"
#include "extensions/common/features/simple_feature.h"
#include "extensions/common/permissions/permissions_data.h"
#include "extensions/common/switches.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/gfx/geometry/rounded_corners_f.h"
app_current_window_internal;
Show;
SetBounds;
SetSizeConstraints;
SetIcon;
SetShape;
SetAlwaysOnTop;
SetVisibleOnAllWorkspaces;
SetActivateOnPointer;
Bounds;
Region;
RegionRect;
SizeConstraints;
namespace extensions {
namespace {
const char kNoAssociatedAppWindow[] = …;
const char kDevChannelOnly[] = …;
const char kRequiresFramelessWindow[] = …;
const char kAlwaysOnTopPermission[] = …;
const char kInvalidParameters[] = …;
const int kUnboundedSize = …;
void GetBoundsFields(const Bounds& bounds_spec, gfx::Rect* bounds) { … }
void GetConstraintWidth(const std::optional<int>& width,
const gfx::Insets& insets,
gfx::Size* size) { … }
void GetConstraintHeight(const std::optional<int>& height,
const gfx::Insets& insets,
gfx::Size* size) { … }
}
namespace bounds {
enum BoundsType { … };
const char kInnerBoundsType[] = …;
const char kOuterBoundsType[] = …;
const char kDeprecatedBoundsType[] = …;
BoundsType GetBoundsType(const std::string& type_as_string) { … }
}
bool AppCurrentWindowInternalExtensionFunction::PreRunValidation(
std::string* error) { … }
ExtensionFunction::ResponseAction AppCurrentWindowInternalFocusFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalFullscreenFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalMaximizeFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalMinimizeFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalRestoreFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalDrawAttentionFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalClearAttentionFunction::Run() { … }
ExtensionFunction::ResponseAction AppCurrentWindowInternalShowFunction::Run() { … }
ExtensionFunction::ResponseAction AppCurrentWindowInternalHideFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalSetBoundsFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalSetSizeConstraintsFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalSetIconFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalSetShapeFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalSetAlwaysOnTopFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction::Run() { … }
ExtensionFunction::ResponseAction
AppCurrentWindowInternalSetActivateOnPointerFunction::Run() { … }
}