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

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

Issue 1536493002: Working proof of concept of select to speak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drag across multiple objects Created 5 years 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) 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 case blink::WebAXEventLoadComplete: 370 case blink::WebAXEventLoadComplete:
371 return ui::AX_EVENT_LOAD_COMPLETE; 371 return ui::AX_EVENT_LOAD_COMPLETE;
372 case blink::WebAXEventLocationChanged: 372 case blink::WebAXEventLocationChanged:
373 return ui::AX_EVENT_LOCATION_CHANGED; 373 return ui::AX_EVENT_LOCATION_CHANGED;
374 case blink::WebAXEventMenuListItemSelected: 374 case blink::WebAXEventMenuListItemSelected:
375 return ui::AX_EVENT_MENU_LIST_ITEM_SELECTED; 375 return ui::AX_EVENT_MENU_LIST_ITEM_SELECTED;
376 case blink::WebAXEventMenuListItemUnselected: 376 case blink::WebAXEventMenuListItemUnselected:
377 return ui::AX_EVENT_MENU_LIST_ITEM_SELECTED; 377 return ui::AX_EVENT_MENU_LIST_ITEM_SELECTED;
378 case blink::WebAXEventMenuListValueChanged: 378 case blink::WebAXEventMenuListValueChanged:
379 return ui::AX_EVENT_MENU_LIST_VALUE_CHANGED; 379 return ui::AX_EVENT_MENU_LIST_VALUE_CHANGED;
380 case blink::WebAXEventMouseEntered:
381 return ui::AX_EVENT_MOUSE_ENTERED;
382 case blink::WebAXEventMouseExited:
383 return ui::AX_EVENT_MOUSE_EXITED;
384 case blink::WebAXEventMouseMoved:
385 return ui::AX_EVENT_MOUSE_MOVED;
386 case blink::WebAXEventMousePressed:
387 return ui::AX_EVENT_MOUSE_PRESSED;
388 case blink::WebAXEventMouseReleased:
389 return ui::AX_EVENT_MOUSE_RELEASED;
380 case blink::WebAXEventRowCollapsed: 390 case blink::WebAXEventRowCollapsed:
381 return ui::AX_EVENT_ROW_COLLAPSED; 391 return ui::AX_EVENT_ROW_COLLAPSED;
382 case blink::WebAXEventRowCountChanged: 392 case blink::WebAXEventRowCountChanged:
383 return ui::AX_EVENT_ROW_COUNT_CHANGED; 393 return ui::AX_EVENT_ROW_COUNT_CHANGED;
384 case blink::WebAXEventRowExpanded: 394 case blink::WebAXEventRowExpanded:
385 return ui::AX_EVENT_ROW_EXPANDED; 395 return ui::AX_EVENT_ROW_EXPANDED;
386 case blink::WebAXEventScrollPositionChanged: 396 case blink::WebAXEventScrollPositionChanged:
387 return ui::AX_EVENT_SCROLL_POSITION_CHANGED; 397 return ui::AX_EVENT_SCROLL_POSITION_CHANGED;
388 case blink::WebAXEventScrolledToAnchor: 398 case blink::WebAXEventScrolledToAnchor:
389 return ui::AX_EVENT_SCROLLED_TO_ANCHOR; 399 return ui::AX_EVENT_SCROLLED_TO_ANCHOR;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 case blink::WebAXDescriptionFromRelatedElement: 524 case blink::WebAXDescriptionFromRelatedElement:
515 return ui::AX_DESCRIPTION_FROM_RELATED_ELEMENT; 525 return ui::AX_DESCRIPTION_FROM_RELATED_ELEMENT;
516 default: 526 default:
517 NOTREACHED(); 527 NOTREACHED();
518 } 528 }
519 529
520 return ui::AX_DESCRIPTION_FROM_UNINITIALIZED; 530 return ui::AX_DESCRIPTION_FROM_UNINITIALIZED;
521 } 531 }
522 532
523 } // namespace content. 533 } // namespace content.
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | third_party/WebKit/Source/core/dom/AXObjectCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698