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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXSpinButton.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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 17 matching lines...) Expand all
28 28
29 #include "core/html/shadow/SpinButtonElement.h" 29 #include "core/html/shadow/SpinButtonElement.h"
30 #include "modules/accessibility/AXMockObject.h" 30 #include "modules/accessibility/AXMockObject.h"
31 31
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class AXObjectCacheImpl; 35 class AXObjectCacheImpl;
36 36
37 class AXSpinButton final : public AXMockObject { 37 class AXSpinButton final : public AXMockObject {
38 WTF_MAKE_NONCOPYABLE(AXSpinButton);
39
38 public: 40 public:
39 static AXSpinButton* create(AXObjectCacheImpl&); 41 static AXSpinButton* create(AXObjectCacheImpl&);
40 ~AXSpinButton() override; 42 ~AXSpinButton() override;
41 DECLARE_VIRTUAL_TRACE(); 43 DECLARE_VIRTUAL_TRACE();
42 44
43 void setSpinButtonElement(SpinButtonElement* spinButton) { m_spinButtonEleme nt = spinButton; } 45 void setSpinButtonElement(SpinButtonElement* spinButton) { m_spinButtonEleme nt = spinButton; }
44 void step(int amount); 46 void step(int amount);
45 47
46 private: 48 private:
47 explicit AXSpinButton(AXObjectCacheImpl&); 49 explicit AXSpinButton(AXObjectCacheImpl&);
(...skipping 24 matching lines...) Expand all
72 bool isSpinButtonPart() const override { return true; } 74 bool isSpinButtonPart() const override { return true; }
73 LayoutRect elementRect() const override; 75 LayoutRect elementRect() const override;
74 }; 76 };
75 77
76 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButton, isNativeSpinButton()); 78 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButton, isNativeSpinButton());
77 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButtonPart, isSpinButtonPart()); 79 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButtonPart, isSpinButtonPart());
78 80
79 } // namespace blink 81 } // namespace blink
80 82
81 #endif // AXSpinButton_h 83 #endif // AXSpinButton_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXSlider.h ('k') | third_party/WebKit/Source/modules/accessibility/AXTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698