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

Side by Side Diff: Source/modules/accessibility/AXObject.h

Issue 753663003: Input type file should return ButtonRole. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 bool isButton() const; 330 bool isButton() const;
331 bool isCanvas() const { return roleValue() == CanvasRole; } 331 bool isCanvas() const { return roleValue() == CanvasRole; }
332 bool isCheckbox() const { return roleValue() == CheckBoxRole; } 332 bool isCheckbox() const { return roleValue() == CheckBoxRole; }
333 bool isCheckboxOrRadio() const { return isCheckbox() || isRadioButton(); } 333 bool isCheckboxOrRadio() const { return isCheckbox() || isRadioButton(); }
334 bool isColorWell() const { return roleValue() == ColorWellRole; } 334 bool isColorWell() const { return roleValue() == ColorWellRole; }
335 bool isComboBox() const { return roleValue() == ComboBoxRole; } 335 bool isComboBox() const { return roleValue() == ComboBoxRole; }
336 virtual bool isControl() const { return false; } 336 virtual bool isControl() const { return false; }
337 virtual bool isDataTable() const { return false; } 337 virtual bool isDataTable() const { return false; }
338 virtual bool isEmbeddedObject() const { return false; } 338 virtual bool isEmbeddedObject() const { return false; }
339 virtual bool isFieldset() const { return false; } 339 virtual bool isFieldset() const { return false; }
340 virtual bool isFileUploadButton() const { return false; }
341 virtual bool isHeading() const { return false; } 340 virtual bool isHeading() const { return false; }
342 virtual bool isImage() const { return false; } 341 virtual bool isImage() const { return false; }
343 virtual bool isImageMapLink() const { return false; } 342 virtual bool isImageMapLink() const { return false; }
344 virtual bool isInputImage() const { return false; } 343 virtual bool isInputImage() const { return false; }
345 bool isLandmarkRelated() const; 344 bool isLandmarkRelated() const;
346 virtual bool isLink() const { return false; } 345 virtual bool isLink() const { return false; }
347 virtual bool isList() const { return false; } 346 virtual bool isList() const { return false; }
348 bool isListItem() const { return roleValue() == ListItemRole; } 347 bool isListItem() const { return roleValue() == ListItemRole; }
349 virtual bool isListBoxOption() const { return false; } 348 virtual bool isListBoxOption() const { return false; }
350 virtual bool isMenu() const { return false; } 349 virtual bool isMenu() const { return false; }
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 // functions called here may only search up the tree (ancestors), not down. 615 // functions called here may only search up the tree (ancestors), not down.
617 void updateCachedAttributeValuesIfNeeded() const; 616 void updateCachedAttributeValuesIfNeeded() const;
618 }; 617 };
619 618
620 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 619 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
621 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 620 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
622 621
623 } // namespace blink 622 } // namespace blink
624 623
625 #endif // AXObject_h 624 #endif // AXObject_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | Source/modules/accessibility/AXRenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698