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

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

Issue 1346733002: Added layout test for aria-orientation and cleaned up code. Also exposed hr element with an orienta… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Whether objects are ignored, i.e. not included in the tree. 98 // Whether objects are ignored, i.e. not included in the tree.
99 AXObjectInclusion defaultObjectInclusion(IgnoredReasons* = nullptr) const ov erride; 99 AXObjectInclusion defaultObjectInclusion(IgnoredReasons* = nullptr) const ov erride;
100 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ; 100 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ;
101 101
102 // Properties of static elements. 102 // Properties of static elements.
103 const AtomicString& accessKey() const override; 103 const AtomicString& accessKey() const override;
104 RGBA32 backgroundColor() const final; 104 RGBA32 backgroundColor() const final;
105 RGBA32 color() const final; 105 RGBA32 color() const final;
106 // Font size is in pixels. 106 // Font size is in pixels.
107 float fontSize() const final; 107 float fontSize() const final;
108 AccessibilityOrientation orientation() const override;
109 String text() const override; 108 String text() const override;
110 AccessibilityTextDirection textDirection() const final; 109 AccessibilityTextDirection textDirection() const final;
111 int textLength() const override; 110 int textLength() const override;
112 TextStyle textStyle() const final; 111 TextStyle textStyle() const final;
113 KURL url() const override; 112 KURL url() const override;
114 113
115 // Inline text boxes. 114 // Inline text boxes.
116 void loadInlineTextBoxes() override; 115 void loadInlineTextBoxes() override;
117 AXObject* nextOnLine() const override; 116 AXObject* nextOnLine() const override;
118 AXObject* previousOnLine() const override; 117 AXObject* previousOnLine() const override;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 AXRange textControlSelection() const; 227 AXRange textControlSelection() const;
229 int indexForVisiblePosition(const VisiblePosition&) const; 228 int indexForVisiblePosition(const VisiblePosition&) const;
230 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; 229 AXLayoutObject* getUnignoredObjectFromNode(Node&) const;
231 }; 230 };
232 231
233 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); 232 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject());
234 233
235 } // namespace blink 234 } // namespace blink
236 235
237 #endif // AXLayoutObject_h 236 #endif // AXLayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698