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

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

Issue 349033010: Implement accessible states and notifications for the tab strip. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nvda_load_fix_3
Patch Set: Fix compile on other platforms 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h" 5 #include "chrome/browser/accessibility/accessibility_extension_api.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" 10 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 void ExtensionAccessibilityEventRouter::HandleControlEvent( 108 void ExtensionAccessibilityEventRouter::HandleControlEvent(
109 ui::AXEvent event, 109 ui::AXEvent event,
110 const AccessibilityControlInfo* info) { 110 const AccessibilityControlInfo* info) {
111 if (!control_event_callback_.is_null()) 111 if (!control_event_callback_.is_null())
112 control_event_callback_.Run(event, info); 112 control_event_callback_.Run(event, info);
113 113
114 switch (event) { 114 switch (event) {
115 case ui::AX_EVENT_TEXT_CHANGED: 115 case ui::AX_EVENT_TEXT_CHANGED:
116 case ui::AX_EVENT_SELECTION_CHANGED: 116 case ui::AX_EVENT_TEXT_SELECTION_CHANGED:
117 OnTextChanged(info); 117 OnTextChanged(info);
118 break; 118 break;
119 case ui::AX_EVENT_VALUE_CHANGED: 119 case ui::AX_EVENT_VALUE_CHANGED:
120 case ui::AX_EVENT_ALERT: 120 case ui::AX_EVENT_ALERT:
121 OnControlAction(info); 121 OnControlAction(info);
122 break; 122 break;
123 case ui::AX_EVENT_FOCUS: 123 case ui::AX_EVENT_FOCUS:
124 OnControlFocused(info); 124 OnControlFocused(info);
125 break; 125 break;
126 case ui::AX_EVENT_HOVER: 126 case ui::AX_EVENT_HOVER:
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 const base::string16 message_text = 301 const base::string16 message_text =
302 confirm_infobar_delegate->GetMessageText(); 302 confirm_infobar_delegate->GetMessageText();
303 alert_value->SetString(keys::kMessageKey, message_text); 303 alert_value->SetString(keys::kMessageKey, message_text);
304 alerts_value->Append(alert_value); 304 alerts_value->Append(alert_value);
305 } 305 }
306 } 306 }
307 307
308 SetResult(alerts_value); 308 SetResult(alerts_value);
309 return true; 309 return true;
310 } 310 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698