mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
51 lines
1.4 KiB
Plaintext
51 lines
1.4 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;
|
|
|
|
// Alert sent to the accessibility api.
|
|
enum AccessibilityAlert {
|
|
// Default value, indicates no accessibility alert.
|
|
NONE,
|
|
|
|
// When caps lock is turned on.
|
|
CAPS_ON,
|
|
|
|
// When caps lock is turned off.
|
|
CAPS_OFF,
|
|
|
|
// When screen is turned on by tablet power button.
|
|
SCREEN_ON,
|
|
|
|
// When screen is turned off by tablet power button.
|
|
SCREEN_OFF,
|
|
|
|
// When window moved to above/below/left/right display by accelerators.
|
|
WINDOW_MOVED_TO_ABOVE_DISPLAY,
|
|
WINDOW_MOVED_TO_BELOW_DISPLAY,
|
|
WINDOW_MOVED_TO_LEFT_DISPLAY,
|
|
WINDOW_MOVED_TO_RIGHT_DISPLAY,
|
|
|
|
// When the user attempts a keyboard command that requires a window to work,
|
|
// and none is available.
|
|
WINDOW_NEEDED,
|
|
|
|
// When the user enters window overview mode.
|
|
WINDOW_OVERVIEW_MODE_ENTERED
|
|
};
|
|
|
|
// Interface for ash client (e.g. Chrome) to control and query accessibility
|
|
// features.
|
|
interface AccessibilityController {
|
|
// Sets the client interface.
|
|
SetClient(AccessibilityControllerClient client);
|
|
};
|
|
|
|
// Interface for ash to request accessibility service from its client (e.g.
|
|
// Chrome).
|
|
interface AccessibilityControllerClient {
|
|
// Triggers an accessibility alert to give the user feedback.
|
|
TriggerAccessibilityAlert(AccessibilityAlert alert);
|
|
};
|