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

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

Issue 1072273006: Oilpan: Prepare moving AXObject to heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/modules/accessibility/AXScrollbar.cpp ('k') | Source/modules/accessibility/AXSlider.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) 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 22 matching lines...) Expand all
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 41
42 public: 42 public:
43 static PassRefPtr<AXSlider> create(LayoutObject*, AXObjectCacheImpl&); 43 static PassRefPtrWillBeRawPtr<AXSlider> create(LayoutObject*, AXObjectCacheI mpl&);
44 virtual ~AXSlider() { } 44 virtual ~AXSlider() { }
45 45
46 protected: 46 protected:
47 AXSlider(LayoutObject*, AXObjectCacheImpl&); 47 AXSlider(LayoutObject*, AXObjectCacheImpl&);
48 48
49 private: 49 private:
50 HTMLInputElement* element() const; 50 HTMLInputElement* element() const;
51 virtual AXObject* elementAccessibilityHitTest(const IntPoint&) const overrid e final; 51 virtual AXObject* elementAccessibilityHitTest(const IntPoint&) const overrid e final;
52 52
53 virtual AccessibilityRole determineAccessibilityRole() override final; 53 virtual AccessibilityRole determineAccessibilityRole() override final;
54 virtual bool isSlider() const override final { return true; } 54 virtual bool isSlider() const override final { return true; }
55 virtual bool isControl() const override final { return true; } 55 virtual bool isControl() const override final { return true; }
56 56
57 virtual void addChildren() override final; 57 virtual void addChildren() override final;
58 58
59 virtual bool canSetValueAttribute() const override final { return true; } 59 virtual bool canSetValueAttribute() const override final { return true; }
60 const AtomicString& getAttribute(const QualifiedName& attribute) const; 60 const AtomicString& getAttribute(const QualifiedName& attribute) const;
61 61
62 virtual void setValue(const String&) override final; 62 virtual void setValue(const String&) override final;
63 virtual AccessibilityOrientation orientation() const override final; 63 virtual AccessibilityOrientation orientation() const override final;
64 }; 64 };
65 65
66 class AXSliderThumb final : public AXMockObject { 66 class AXSliderThumb final : public AXMockObject {
67 67
68 public: 68 public:
69 static PassRefPtr<AXSliderThumb> create(AXObjectCacheImpl&); 69 static PassRefPtrWillBeRawPtr<AXSliderThumb> create(AXObjectCacheImpl&);
70 virtual ~AXSliderThumb() { } 70 virtual ~AXSliderThumb() { }
71 71
72 virtual AccessibilityRole roleValue() const override { return SliderThumbRol e; } 72 virtual AccessibilityRole roleValue() const override { return SliderThumbRol e; }
73 73
74 virtual LayoutRect elementRect() const override; 74 virtual LayoutRect elementRect() const override;
75 75
76 private: 76 private:
77 explicit AXSliderThumb(AXObjectCacheImpl&); 77 explicit AXSliderThumb(AXObjectCacheImpl&);
78 78
79 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 79 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
80 }; 80 };
81 81
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // AXSlider_h 85 #endif // AXSlider_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXScrollbar.cpp ('k') | Source/modules/accessibility/AXSlider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698