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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXMenuListOption.h

Issue 1996873002: AXObject is not copyable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more accessibility classes Created 4 years, 7 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
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 16 matching lines...) Expand all
27 #define AXMenuListOption_h 27 #define AXMenuListOption_h
28 28
29 #include "core/html/HTMLOptionElement.h" 29 #include "core/html/HTMLOptionElement.h"
30 #include "modules/accessibility/AXMockObject.h" 30 #include "modules/accessibility/AXMockObject.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class AXObjectCacheImpl; 34 class AXObjectCacheImpl;
35 35
36 class AXMenuListOption final : public AXMockObject { 36 class AXMenuListOption final : public AXMockObject {
37 WTF_MAKE_NONCOPYABLE(AXMenuListOption);
38
37 public: 39 public:
38 static AXMenuListOption* create(HTMLOptionElement* element, AXObjectCacheImp l& axObjectCache) { return new AXMenuListOption(element, axObjectCache); } 40 static AXMenuListOption* create(HTMLOptionElement* element, AXObjectCacheImp l& axObjectCache) { return new AXMenuListOption(element, axObjectCache); }
39 ~AXMenuListOption() override; 41 ~AXMenuListOption() override;
40 42
41 private: 43 private:
42 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&); 44 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&);
43 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
44 46
45 bool isMenuListOption() const override { return true; } 47 bool isMenuListOption() const override { return true; }
46 48
(...skipping 15 matching lines...) Expand all
62 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ; 64 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ;
63 65
64 Member<HTMLOptionElement> m_element; 66 Member<HTMLOptionElement> m_element;
65 }; 67 };
66 68
67 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, isMenuListOption()); 69 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, isMenuListOption());
68 70
69 } // namespace blink 71 } // namespace blink
70 72
71 #endif // AXMenuListOption_h 73 #endif // AXMenuListOption_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698