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

Side by Side Diff: content/renderer/accessibility/blink_ax_enum_conversion.cc

Issue 1361633003: Work around <webview> focus bugs by enforcing focus event invariants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/accessibility/blink_ax_enum_conversion.h" 5 #include "content/renderer/accessibility/blink_ax_enum_conversion.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 ui::AXEvent AXEventFromBlink(blink::WebAXEvent event) { 345 ui::AXEvent AXEventFromBlink(blink::WebAXEvent event) {
346 switch (event) { 346 switch (event) {
347 case blink::WebAXEventActiveDescendantChanged: 347 case blink::WebAXEventActiveDescendantChanged:
348 return ui::AX_EVENT_ACTIVEDESCENDANTCHANGED; 348 return ui::AX_EVENT_ACTIVEDESCENDANTCHANGED;
349 case blink::WebAXEventAlert: 349 case blink::WebAXEventAlert:
350 return ui::AX_EVENT_ALERT; 350 return ui::AX_EVENT_ALERT;
351 case blink::WebAXEventAriaAttributeChanged: 351 case blink::WebAXEventAriaAttributeChanged:
352 return ui::AX_EVENT_ARIA_ATTRIBUTE_CHANGED; 352 return ui::AX_EVENT_ARIA_ATTRIBUTE_CHANGED;
353 case blink::WebAXEventAutocorrectionOccured: 353 case blink::WebAXEventAutocorrectionOccured:
354 return ui::AX_EVENT_AUTOCORRECTION_OCCURED; 354 return ui::AX_EVENT_AUTOCORRECTION_OCCURED;
355 case blink::WebAXEventBlur:
356 return ui::AX_EVENT_BLUR;
355 case blink::WebAXEventCheckedStateChanged: 357 case blink::WebAXEventCheckedStateChanged:
356 return ui::AX_EVENT_CHECKED_STATE_CHANGED; 358 return ui::AX_EVENT_CHECKED_STATE_CHANGED;
357 case blink::WebAXEventChildrenChanged: 359 case blink::WebAXEventChildrenChanged:
358 return ui::AX_EVENT_CHILDREN_CHANGED; 360 return ui::AX_EVENT_CHILDREN_CHANGED;
359 case blink::WebAXEventFocus: 361 case blink::WebAXEventFocus:
360 return ui::AX_EVENT_FOCUS; 362 return ui::AX_EVENT_FOCUS;
361 case blink::WebAXEventHover: 363 case blink::WebAXEventHover:
362 return ui::AX_EVENT_HOVER; 364 return ui::AX_EVENT_HOVER;
363 case blink::WebAXEventInvalidStatusChanged: 365 case blink::WebAXEventInvalidStatusChanged:
364 return ui::AX_EVENT_INVALID_STATUS_CHANGED; 366 return ui::AX_EVENT_INVALID_STATUS_CHANGED;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 case blink::WebAXSortDirectionOther: 470 case blink::WebAXSortDirectionOther:
469 return ui::AX_SORT_DIRECTION_OTHER; 471 return ui::AX_SORT_DIRECTION_OTHER;
470 default: 472 default:
471 NOTREACHED(); 473 NOTREACHED();
472 } 474 }
473 475
474 return ui::AX_SORT_DIRECTION_NONE; 476 return ui::AX_SORT_DIRECTION_NONE;
475 } 477 }
476 478
477 } // Namespace content. 479 } // Namespace content.
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698