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

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

Issue 408103002: Added accessible name to bookmark_bar_instructions_view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chromevox now reads static text Created 6 years, 5 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_events.h" 5 #include "chrome/browser/accessibility/accessibility_events.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/accessibility/accessibility_extension_api.h" 8 #include "chrome/browser/accessibility/accessibility_extension_api.h"
9 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" 9 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 30 matching lines...) Expand all
41 ui::AXEvent event, 41 ui::AXEvent event,
42 AccessibilityWindowInfo* info) { 42 AccessibilityWindowInfo* info) {
43 Profile* profile = info->profile(); 43 Profile* profile = info->profile();
44 if (profile->ShouldSendAccessibilityEvents()) { 44 if (profile->ShouldSendAccessibilityEvents()) {
45 ExtensionAccessibilityEventRouter::GetInstance()->HandleWindowEvent( 45 ExtensionAccessibilityEventRouter::GetInstance()->HandleWindowEvent(
46 event, 46 event,
47 info); 47 info);
48 } 48 }
49 } 49 }
50 50
51
52 AccessibilityControlInfo::AccessibilityControlInfo( 51 AccessibilityControlInfo::AccessibilityControlInfo(
53 Profile* profile, const std::string& name) 52 Profile* profile, const std::string& name)
54 : AccessibilityEventInfo(profile), 53 : AccessibilityEventInfo(profile),
55 name_(name) { 54 name_(name) {
56 } 55 }
57 56
58 AccessibilityControlInfo::~AccessibilityControlInfo() { 57 AccessibilityControlInfo::~AccessibilityControlInfo() {
59 } 58 }
60 59
61 void AccessibilityControlInfo::SerializeToDict( 60 void AccessibilityControlInfo::SerializeToDict(
(...skipping 17 matching lines...) Expand all
79 const std::string& button_name, 78 const std::string& button_name,
80 const std::string& context) 79 const std::string& context)
81 : AccessibilityControlInfo(profile, button_name) { 80 : AccessibilityControlInfo(profile, button_name) {
82 set_context(context); 81 set_context(context);
83 } 82 }
84 83
85 const char* AccessibilityButtonInfo::type() const { 84 const char* AccessibilityButtonInfo::type() const {
86 return keys::kTypeButton; 85 return keys::kTypeButton;
87 } 86 }
88 87
88 AccessibilityStaticTextInfo::AccessibilityStaticTextInfo(Profile* profile,
89 const std::string& text,
90 const std::string& context)
91 : AccessibilityControlInfo(profile, text) {
92 set_context(context);
93 }
94
95 const char* AccessibilityStaticTextInfo::type() const {
96 return keys::kTypeStaticText;
97 }
98
89 AccessibilityLinkInfo::AccessibilityLinkInfo(Profile* profile, 99 AccessibilityLinkInfo::AccessibilityLinkInfo(Profile* profile,
90 const std::string& link_name, 100 const std::string& link_name,
91 const std::string& context) 101 const std::string& context)
92 : AccessibilityControlInfo(profile, link_name) { 102 : AccessibilityControlInfo(profile, link_name) {
93 set_context(context); 103 set_context(context);
94 } 104 }
95 105
96 const char* AccessibilityLinkInfo::type() const { 106 const char* AccessibilityLinkInfo::type() const {
97 return keys::kTypeLink; 107 return keys::kTypeLink;
98 } 108 }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 341 }
332 342
333 AccessibilityAlertInfo::AccessibilityAlertInfo(Profile* profile, 343 AccessibilityAlertInfo::AccessibilityAlertInfo(Profile* profile,
334 const std::string& name) 344 const std::string& name)
335 : AccessibilityControlInfo(profile, name) { 345 : AccessibilityControlInfo(profile, name) {
336 } 346 }
337 347
338 const char* AccessibilityAlertInfo::type() const { 348 const char* AccessibilityAlertInfo::type() const {
339 return keys::kTypeAlert; 349 return keys::kTypeAlert;
340 } 350 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698