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

Side by Side Diff: Source/core/accessibility/AXMenuList.h

Issue 679623002: Check whether aria-expanded attribute is defined (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add COMPILE ASSERT for new enum type Created 6 years, 1 month 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 | Source/core/accessibility/AXMenuList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 19 matching lines...) Expand all
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class RenderMenuList; 33 class RenderMenuList;
34 34
35 class AXMenuList final : public AXRenderObject { 35 class AXMenuList final : public AXRenderObject {
36 public: 36 public:
37 static PassRefPtr<AXMenuList> create(RenderMenuList* renderer); 37 static PassRefPtr<AXMenuList> create(RenderMenuList* renderer);
38 38
39 virtual bool isCollapsed() const override; 39 virtual bool isCollapsed() const override;
40 virtual AccessibilityExpanded isExpanded() const override final;
40 virtual bool press() const override; 41 virtual bool press() const override;
41 42
42 void didUpdateActiveOption(int optionIndex); 43 void didUpdateActiveOption(int optionIndex);
43 44
44 private: 45 private:
45 explicit AXMenuList(RenderMenuList*); 46 explicit AXMenuList(RenderMenuList*);
46 47
47 virtual bool isMenuList() const override { return true; } 48 virtual bool isMenuList() const override { return true; }
48 virtual AccessibilityRole roleValue() const override { return PopUpButtonRol e; } 49 virtual AccessibilityRole roleValue() const override { return PopUpButtonRol e; }
49 virtual bool canSetFocusAttribute() const override; 50 virtual bool canSetFocusAttribute() const override;
50 51
51 virtual void addChildren() override; 52 virtual void addChildren() override;
52 virtual void childrenChanged() override; 53 virtual void childrenChanged() override;
53 }; 54 };
54 55
55 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuList, isMenuList()); 56 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuList, isMenuList());
56 57
57 } // namespace blink 58 } // namespace blink
58 59
59 #endif // AXMenuList_h 60 #endif // AXMenuList_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/accessibility/AXMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698