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

Side by Side Diff: webkit/glue/glue_accessibility_object.cc

Issue 182006: Adds support for WAI-ARIA role article.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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
« no previous file with comments | « no previous file | 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "config.h" 5 #include "config.h"
6 6
7 #include "AccessibilityObject.h" 7 #include "AccessibilityObject.h"
8 #include "EventHandler.h" 8 #include "EventHandler.h"
9 #include "FrameView.h" 9 #include "FrameView.h"
10 #include "PlatformKeyboardEvent.h" 10 #include "PlatformKeyboardEvent.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 case WebCore::LandmarkApplicationRole: 368 case WebCore::LandmarkApplicationRole:
369 return WebAccessibility::ROLE_APPLICATION; 369 return WebAccessibility::ROLE_APPLICATION;
370 case WebCore::CellRole: 370 case WebCore::CellRole:
371 return WebAccessibility::ROLE_CELL; 371 return WebAccessibility::ROLE_CELL;
372 case WebCore::CheckBoxRole: 372 case WebCore::CheckBoxRole:
373 return WebAccessibility::ROLE_CHECKBUTTON; 373 return WebAccessibility::ROLE_CHECKBUTTON;
374 case WebCore::ColumnRole: 374 case WebCore::ColumnRole:
375 return WebAccessibility::ROLE_COLUMN; 375 return WebAccessibility::ROLE_COLUMN;
376 case WebCore::ColumnHeaderRole: 376 case WebCore::ColumnHeaderRole:
377 return WebAccessibility::ROLE_COLUMNHEADER; 377 return WebAccessibility::ROLE_COLUMNHEADER;
378 case WebCore::DocumentArticleRole:
378 case WebCore::WebAreaRole: 379 case WebCore::WebAreaRole:
379 return WebAccessibility::ROLE_DOCUMENT; 380 return WebAccessibility::ROLE_DOCUMENT;
380 case WebCore::ImageMapRole: 381 case WebCore::ImageMapRole:
381 case WebCore::ImageRole: 382 case WebCore::ImageRole:
382 return WebAccessibility::ROLE_GRAPHIC; 383 return WebAccessibility::ROLE_GRAPHIC;
383 case WebCore::DocumentRegionRole: 384 case WebCore::DocumentRegionRole:
384 case WebCore::RadioGroupRole: 385 case WebCore::RadioGroupRole:
385 case WebCore::GroupRole: 386 case WebCore::GroupRole:
386 return WebAccessibility::ROLE_GROUPING; 387 return WebAccessibility::ROLE_GROUPING;
387 case WebCore::LinkRole: 388 case WebCore::LinkRole:
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 if (!obj) 473 if (!obj)
473 return NULL; 474 return NULL;
474 475
475 GlueAccessibilityObject* result = 476 GlueAccessibilityObject* result =
476 static_cast<GlueAccessibilityObject*>(obj->wrapper()); 477 static_cast<GlueAccessibilityObject*>(obj->wrapper());
477 if (!result) 478 if (!result)
478 result = CreateInstance(obj); 479 result = CreateInstance(obj);
479 480
480 return result; 481 return result;
481 } 482 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698