Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1073)

Side by Side Diff: chrome/common/extensions/api/automation.idl

Issue 2768703002: Wire up an api to darken screen for accessibility (Closed)
Patch Set: Cvox changes. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The <code>chrome.automation</code> API allows developers to access the 5 // The <code>chrome.automation</code> API allows developers to access the
6 // automation (accessibility) tree for the browser. The tree resembles the DOM 6 // automation (accessibility) tree for the browser. The tree resembles the DOM
7 // tree, but only exposes the <em>semantic</em> structure of a page. It can be 7 // tree, but only exposes the <em>semantic</em> structure of a page. It can be
8 // used to programmatically interact with a page by examining names, roles, and 8 // used to programmatically interact with a page by examining names, roles, and
9 // states, listening for events, and performing actions on nodes. 9 // states, listening for events, and performing actions on nodes.
10 [nocompile] namespace automation { 10 [nocompile] namespace automation {
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 699
700 // Start ducking any media within this tree. 700 // Start ducking any media within this tree.
701 static void startDuckingMedia(); 701 static void startDuckingMedia();
702 702
703 // Stop ducking any media within this tree. 703 // Stop ducking any media within this tree.
704 static void stopDuckingMedia(); 704 static void stopDuckingMedia();
705 705
706 // Suspend any media playing within this tree. 706 // Suspend any media playing within this tree.
707 static void suspendMedia(); 707 static void suspendMedia();
708 708
709 // Darkens (or undarkens) the screen.
710 static void toggleDarkenScreen(boolean toggle);
711
709 // Adds a listener for the given event type and event phase. 712 // Adds a listener for the given event type and event phase.
710 static void addEventListener( 713 static void addEventListener(
711 EventType eventType, AutomationListener listener, boolean capture); 714 EventType eventType, AutomationListener listener, boolean capture);
712 715
713 // Removes a listener for the given event type and event phase. 716 // Removes a listener for the given event type and event phase.
714 static void removeEventListener( 717 static void removeEventListener(
715 EventType eventType, AutomationListener listener, boolean capture); 718 EventType eventType, AutomationListener listener, boolean capture);
716 719
717 // Gets the first node in this node's subtree which matches the given CSS 720 // Gets the first node in this node's subtree which matches the given CSS
718 // selector and is within the same DOM context. 721 // selector and is within the same DOM context.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 // Everything in the tree between the two node/offset pairs gets included 783 // Everything in the tree between the two node/offset pairs gets included
781 // in the selection. The anchor is where the user started the selection, 784 // in the selection. The anchor is where the user started the selection,
782 // while the focus is the point at which the selection gets extended 785 // while the focus is the point at which the selection gets extended
783 // e.g. when dragging with a mouse or using the keyboard. For nodes with 786 // e.g. when dragging with a mouse or using the keyboard. For nodes with
784 // the role staticText, the offset gives the character offset within 787 // the role staticText, the offset gives the character offset within
785 // the value where the selection starts or ends, respectively. 788 // the value where the selection starts or ends, respectively.
786 [nocompile] static void setDocumentSelection( 789 [nocompile] static void setDocumentSelection(
787 SetDocumentSelectionParams params); 790 SetDocumentSelectionParams params);
788 }; 791 };
789 }; 792 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698