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

Side by Side Diff: chrome/browser/extensions/extension_accessibility_api_constants.cc

Issue 402099: Add an accessibility API for events raised outside of the web content. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/extension_accessibility_api_constants.h"
6
7 namespace extension_accessibility_api_constants {
8
9 // String keys for AccessibilityObject properties.
10 const wchar_t kTypeKey[] = L"type";
11 const wchar_t kNameKey[] = L"name";
12 const wchar_t kDetailsKey[] = L"details";
13 const wchar_t kValueKey[] = L"details.value";
14 const wchar_t kPasswordKey[] = L"details.isPassword";
15 const wchar_t kItemCountKey[] = L"details.itemCount";
16 const wchar_t kItemIndexKey[] = L"details.itemIndex";
17 const wchar_t kSelectionStartKey[] = L"details.selectionStart";
18 const wchar_t kSelectionEndKey[] = L"details.selectionEnd";
19 const wchar_t kCheckedKey[] = L"details.isChecked";
20
21 // Events.
22 const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened";
23 const char kOnWindowClosed[] = "experimental.accessibility.onWindowClosed";
24 const char kOnControlFocused[] = "experimental.accessibility.onControlFocused";
25 const char kOnControlAction[] = "experimental.accessibility.onControlAction";
26 const char kOnTextChanged[] = "experimental.accessibility.onTextChanged";
27
28 // Types of controls that can receive accessibility events.
29 extern const char kTypeButton[] = "button";
30 extern const char kTypeCheckbox[] = "checkbox";
31 extern const char kTypeComboBox[] = "combobox";
32 extern const char kTypeLink[] = "link";
33 extern const char kTypeRadioButton[] = "radiobutton";
34 extern const char kTypeTab[] = "tab";
35 extern const char kTypeTextBox[] = "textbox";
36 extern const char kTypeWindow[] = "window";
37
38 } // namespace extension_accessibility_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698