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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.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) 2013, Google Inc. All rights reserved. 2 * Copyright (C) 2013, Google 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 19 matching lines...) Expand all
30 #define AXInlineTextBox_h 30 #define AXInlineTextBox_h
31 31
32 #include "core/layout/line/AbstractInlineTextBox.h" 32 #include "core/layout/line/AbstractInlineTextBox.h"
33 #include "modules/accessibility/AXObject.h" 33 #include "modules/accessibility/AXObject.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AXObjectCacheImpl; 37 class AXObjectCacheImpl;
38 38
39 class AXInlineTextBox final : public AXObject { 39 class AXInlineTextBox final : public AXObject {
40 WTF_MAKE_NONCOPYABLE(AXInlineTextBox);
40 41
41 private: 42 private:
42 AXInlineTextBox(PassRefPtr<AbstractInlineTextBox>, AXObjectCacheImpl&); 43 AXInlineTextBox(PassRefPtr<AbstractInlineTextBox>, AXObjectCacheImpl&);
43 44
44 public: 45 public:
45 static AXInlineTextBox* create(PassRefPtr<AbstractInlineTextBox>, AXObjectCa cheImpl&); 46 static AXInlineTextBox* create(PassRefPtr<AbstractInlineTextBox>, AXObjectCa cheImpl&);
46 47
47 void init() override; 48 void init() override;
48 void detach() override; 49 void detach() override;
49 50
50 AccessibilityRole roleValue() const override { return InlineTextBoxRole; } 51 AccessibilityRole roleValue() const override { return InlineTextBoxRole; }
51 String name(AXNameFrom&, AXObject::AXObjectVector* nameObjects) const overri de; 52 String name(AXNameFrom&, AXObject::AXObjectVector* nameObjects) const overri de;
52 void textCharacterOffsets(Vector<int>&) const override; 53 void textCharacterOffsets(Vector<int>&) const override;
53 void wordBoundaries(Vector<AXRange>& words) const override; 54 void wordBoundaries(Vector<AXRange>& words) const override;
54 LayoutRect elementRect() const override; 55 LayoutRect elementRect() const override;
55 AXObject* computeParent() const override; 56 AXObject* computeParent() const override;
56 AccessibilityTextDirection textDirection() const override; 57 AccessibilityTextDirection textDirection() const override;
57 AXObject* nextOnLine() const override; 58 AXObject* nextOnLine() const override;
58 AXObject* previousOnLine() const override; 59 AXObject* previousOnLine() const override;
59 60
60 private: 61 private:
61 RefPtr<AbstractInlineTextBox> m_inlineTextBox; 62 RefPtr<AbstractInlineTextBox> m_inlineTextBox;
62 63
63 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ; 64 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ;
64 }; 65 };
65 66
66 } // namespace blink 67 } // namespace blink
67 68
68 #endif // AXInlineTextBox_h 69 #endif // AXInlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698