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

Side by Side Diff: chrome/browser/accessibility/accessibility_extension_api_constants.cc

Issue 600063002: Draw a focus ring around native views when ChromeVox is running. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add check for Chrome OS Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" 5 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h"
6 6
7 namespace extension_accessibility_api_constants { 7 namespace extension_accessibility_api_constants {
8 8
9 // String keys for AccessibilityObject properties. 9 // String keys for AccessibilityObject properties.
10 const char kTypeKey[] = "type"; 10 const char kTypeKey[] = "type";
11 const char kNameKey[] = "name"; 11 const char kNameKey[] = "name";
12 const char kContextKey[] = "context"; 12 const char kContextKey[] = "context";
13 const char kValueKey[] = "details.value"; 13 const char kValueKey[] = "details.value";
14 const char kChildrenCountKey[] = "details.childrenCount"; 14 const char kChildrenCountKey[] = "details.childrenCount";
15 const char kPasswordKey[] = "details.isPassword"; 15 const char kPasswordKey[] = "details.isPassword";
16 const char kItemCountKey[] = "details.itemCount"; 16 const char kItemCountKey[] = "details.itemCount";
17 const char kItemDepthKey[] = "details.itemDepth"; 17 const char kItemDepthKey[] = "details.itemDepth";
18 const char kItemIndexKey[] = "details.itemIndex"; 18 const char kItemIndexKey[] = "details.itemIndex";
19 const char kItemExpandedKey[] = "details.isItemExpanded"; 19 const char kItemExpandedKey[] = "details.isItemExpanded";
20 const char kSelectionStartKey[] = "details.selectionStart"; 20 const char kSelectionStartKey[] = "details.selectionStart";
21 const char kSelectionEndKey[] = "details.selectionEnd"; 21 const char kSelectionEndKey[] = "details.selectionEnd";
22 const char kCheckedKey[] = "details.isChecked"; 22 const char kCheckedKey[] = "details.isChecked";
23 const char kHasSubmenuKey[] = "details.hasSubmenu"; 23 const char kHasSubmenuKey[] = "details.hasSubmenu";
24 const char kMessageKey[] = "message"; 24 const char kMessageKey[] = "message";
25 const char kStringValueKey[] = "details.stringValue"; 25 const char kStringValueKey[] = "details.stringValue";
26 const char kBoundsKey[] = "bounds";
26 27
27 // Types of controls that can receive accessibility events. 28 // Types of controls that can receive accessibility events.
28 const char kTypeAlert[] = "alert"; 29 const char kTypeAlert[] = "alert";
29 const char kTypeButton[] = "button"; 30 const char kTypeButton[] = "button";
30 const char kTypeCheckbox[] = "checkbox"; 31 const char kTypeCheckbox[] = "checkbox";
31 const char kTypeComboBox[] = "combobox"; 32 const char kTypeComboBox[] = "combobox";
32 const char kTypeLink[] = "link"; 33 const char kTypeLink[] = "link";
33 const char kTypeListBox[] = "listbox"; 34 const char kTypeListBox[] = "listbox";
34 const char kTypeMenu[] = "menu"; 35 const char kTypeMenu[] = "menu";
35 const char kTypeMenuItem[] = "menuitem"; 36 const char kTypeMenuItem[] = "menuitem";
36 const char kTypeRadioButton[] = "radiobutton"; 37 const char kTypeRadioButton[] = "radiobutton";
37 const char kTypeSlider[] = "slider"; 38 const char kTypeSlider[] = "slider";
38 const char kTypeStaticText[] = "statictext"; 39 const char kTypeStaticText[] = "statictext";
39 const char kTypeTab[] = "tab"; 40 const char kTypeTab[] = "tab";
40 const char kTypeTextBox[] = "textbox"; 41 const char kTypeTextBox[] = "textbox";
41 const char kTypeTree[] = "tree"; 42 const char kTypeTree[] = "tree";
42 const char kTypeTreeItem[] = "treeitem"; 43 const char kTypeTreeItem[] = "treeitem";
43 const char kTypeWindow[] = "window"; 44 const char kTypeWindow[] = "window";
44 45
46 // ScreenRect fields.
47 const char kLeft[] = "left";
48 const char kTop[] = "top";
49 const char kWidth[] = "width";
50 const char kHeight[] = "height";
51
45 // Errors. 52 // Errors.
46 const char kErrorNotSupported[] = "This API is not supported on this platform."; 53 const char kErrorNotSupported[] = "This API is not supported on this platform.";
47 54
48 } // namespace extension_accessibility_api_constants 55 } // namespace extension_accessibility_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698