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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXSlider.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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 20 matching lines...) Expand all
31 31
32 #include "modules/accessibility/AXLayoutObject.h" 32 #include "modules/accessibility/AXLayoutObject.h"
33 #include "modules/accessibility/AXMockObject.h" 33 #include "modules/accessibility/AXMockObject.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AXObjectCacheImpl; 37 class AXObjectCacheImpl;
38 class HTMLInputElement; 38 class HTMLInputElement;
39 39
40 class AXSlider : public AXLayoutObject { 40 class AXSlider : public AXLayoutObject {
41 WTF_MAKE_NONCOPYABLE(AXSlider);
41 42
42 public: 43 public:
43 static AXSlider* create(LayoutObject*, AXObjectCacheImpl&); 44 static AXSlider* create(LayoutObject*, AXObjectCacheImpl&);
44 ~AXSlider() override { } 45 ~AXSlider() override { }
45 46
46 protected: 47 protected:
47 AXSlider(LayoutObject*, AXObjectCacheImpl&); 48 AXSlider(LayoutObject*, AXObjectCacheImpl&);
48 49
49 private: 50 private:
50 HTMLInputElement* element() const; 51 HTMLInputElement* element() const;
51 AXObject* elementAccessibilityHitTest(const IntPoint&) const final; 52 AXObject* elementAccessibilityHitTest(const IntPoint&) const final;
52 53
53 AccessibilityRole determineAccessibilityRole() final; 54 AccessibilityRole determineAccessibilityRole() final;
54 bool isSlider() const final { return true; } 55 bool isSlider() const final { return true; }
55 bool isControl() const final { return true; } 56 bool isControl() const final { return true; }
56 57
57 void addChildren() final; 58 void addChildren() final;
58 59
59 bool canSetValueAttribute() const final { return true; } 60 bool canSetValueAttribute() const final { return true; }
60 61
61 void setValue(const String&) final; 62 void setValue(const String&) final;
62 AccessibilityOrientation orientation() const final; 63 AccessibilityOrientation orientation() const final;
63 }; 64 };
64 65
65 class AXSliderThumb final : public AXMockObject { 66 class AXSliderThumb final : public AXMockObject {
67 WTF_MAKE_NONCOPYABLE(AXSliderThumb);
66 68
67 public: 69 public:
68 static AXSliderThumb* create(AXObjectCacheImpl&); 70 static AXSliderThumb* create(AXObjectCacheImpl&);
69 ~AXSliderThumb() override { } 71 ~AXSliderThumb() override { }
70 72
71 AccessibilityRole roleValue() const override { return SliderThumbRole; } 73 AccessibilityRole roleValue() const override { return SliderThumbRole; }
72 74
73 LayoutRect elementRect() const override; 75 LayoutRect elementRect() const override;
74 76
75 private: 77 private:
76 explicit AXSliderThumb(AXObjectCacheImpl&); 78 explicit AXSliderThumb(AXObjectCacheImpl&);
77 79
78 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ; 80 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ;
79 }; 81 };
80 82
81 83
82 } // namespace blink 84 } // namespace blink
83 85
84 #endif // AXSlider_h 86 #endif // AXSlider_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698