mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
90 lines
3.9 KiB
Plaintext
90 lines
3.9 KiB
Plaintext
|
// Copyright 2017 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.
|
||
|
|
||
|
module ash.mojom;
|
||
|
|
||
|
// App type of the window, like browser or app. The type is an int but should
|
||
|
// be one of ash::AppType (see ash/public/cpp/app_types.h).
|
||
|
const string kAppType_Property = "ash:app-type";
|
||
|
|
||
|
// A bool to indicate whether this window should be replaced by a black
|
||
|
// rectangle in assistant screenshot for privacy purpose.
|
||
|
const string kBlockedForAssistantSnapshot_Property =
|
||
|
"ash:blocked-for-assistant-snapshot";
|
||
|
|
||
|
// V1 apps can intercept system keys. This will let the app handle F-keys instead
|
||
|
// of the window manager.
|
||
|
const string kCanConsumeSystemKeys_Property =
|
||
|
"ash:can-consume-system-keys";
|
||
|
|
||
|
// The bounds of the window control buttons (minimize, maximize, restore)
|
||
|
// relative to the frame.
|
||
|
const string kCaptionButtonBounds_Property = "ash:caption-button-bounds";
|
||
|
|
||
|
// An UnguessableToken used to tell Mash the frame image to use for a custom
|
||
|
// Browser theme, for both a window's active state and its inactive state.
|
||
|
// The token to image mapping is stored in ash::ClientImageRegistry.
|
||
|
const string kFrameImageActive_Property = "ash:frame-image-active";
|
||
|
const string kFrameImageInactive_Property = "ash:frame-image-inactive";
|
||
|
|
||
|
// More frame image tokens. These map to "theme_frame_overlay[_inactive]" in
|
||
|
// custom browser themes. See browser_theme_pack.cc
|
||
|
const string kFrameImageOverlayActive_Property =
|
||
|
"ash:frame-image-overlay-active";
|
||
|
const string kFrameImageOverlayInactive_Property =
|
||
|
"ash:frame-image-overlay-inactive";
|
||
|
|
||
|
// A property that controls where a themed window's image is painted.
|
||
|
const string kFrameImageYInset_Property = "ash:frame-image-y-inset";
|
||
|
|
||
|
// A boolean that tells Ash whether the frame's colors come from a PWA manifest.
|
||
|
const string kFrameIsThemedByHostedApp_Property =
|
||
|
"ash:frame-is-themed-by-hosted-app";
|
||
|
|
||
|
// The color of the text drawn on the frame (i.e. the window title). Only used
|
||
|
// for tabless browser windows.
|
||
|
const string kFrameTextColor_Property = "ash:frame-text-color";
|
||
|
|
||
|
// See ash::kHideCaptionButtonsInTabletModeKey.
|
||
|
const string kHideCaptionButtonsInTabletMode_Property =
|
||
|
"ash:hide-caption-buttons-in-tablet-mode";
|
||
|
|
||
|
// True if the shelf should be hidden when this window is put into fullscreen.
|
||
|
// Exposed because some windows want to explicitly opt-out of this.
|
||
|
const string kHideShelfWhenFullscreen_Property =
|
||
|
"ash:hide-shelf-when-fullscreen";
|
||
|
|
||
|
// If true, the window is the target window for the tab-dragged window. The
|
||
|
// key is used by overview to show a highlight indication to indicate which
|
||
|
// overview window the dragged tabs will merge into when the user releases the
|
||
|
// pointer.
|
||
|
const string kIsDeferredTabDraggingTargetWindow_Property =
|
||
|
"ash:is-deferred-tab-dragging-target-window";
|
||
|
|
||
|
// If true, the window is a browser window and its tab(s) are currently being
|
||
|
// dragged.
|
||
|
const string kIsDraggingTabs_Property = "ash:is-dragging-tabs";
|
||
|
|
||
|
// If true, the window is currently showing in overview mode.
|
||
|
const string kIsShowingInOverview_Property = "ash:is-showing-in-overview";
|
||
|
|
||
|
// This is put on windows to indicate that ash should perform auto management of
|
||
|
// window positions; when you open a second browser, ash will move the two to
|
||
|
// minimize overlap.
|
||
|
const string kWindowPositionManaged_Property =
|
||
|
"ash:window-position-managed";
|
||
|
|
||
|
// A property key which stores the bounds to restore a window to. These take
|
||
|
// preference over the current bounds. This is used by e.g. the tablet mode
|
||
|
// window manager.
|
||
|
const string kRestoreBoundsOverride_Property =
|
||
|
"ash:restore-bounds-override";
|
||
|
|
||
|
// A property key which stores the window state to restore a window to. These
|
||
|
// take preference over the current state if
|
||
|
// |kRestoreWindowStateTypeOverrideKey| is set. This is used by e.g. the tablet
|
||
|
// mode window manager.
|
||
|
const string kRestoreWindowStateTypeOverride_Property =
|
||
|
"ash:restore-window-state-type-override";
|