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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.h

Issue 2169273004: Switch all LayoutTests to use new accessibility relative bounding box API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix absolute bounds in AXInlineTextBox::elementRect Created 4 years, 4 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 static AXInlineTextBox* create(PassRefPtr<AbstractInlineTextBox>, AXObjectCa cheImpl&); 46 static AXInlineTextBox* create(PassRefPtr<AbstractInlineTextBox>, AXObjectCa cheImpl&);
47 47
48 void init() override; 48 void init() override;
49 void detach() override; 49 void detach() override;
50 50
51 AccessibilityRole roleValue() const override { return InlineTextBoxRole; } 51 AccessibilityRole roleValue() const override { return InlineTextBoxRole; }
52 String name(AXNameFrom&, AXObject::AXObjectVector* nameObjects) const overri de; 52 String name(AXNameFrom&, AXObject::AXObjectVector* nameObjects) const overri de;
53 void textCharacterOffsets(Vector<int>&) const override; 53 void textCharacterOffsets(Vector<int>&) const override;
54 void wordBoundaries(Vector<AXRange>&) const override; 54 void wordBoundaries(Vector<AXRange>&) const override;
55 LayoutRect elementRect() const override; 55 LayoutRect elementRect() const override;
56 void getRelativeBounds(AXObject** outContainer, FloatRect& outBoundsInContai ner, SkMatrix44& outContainerTransform) const override;
56 AXObject* computeParent() const override; 57 AXObject* computeParent() const override;
57 AccessibilityTextDirection textDirection() const override; 58 AccessibilityTextDirection textDirection() const override;
58 AXObject* nextOnLine() const override; 59 AXObject* nextOnLine() const override;
59 AXObject* previousOnLine() const override; 60 AXObject* previousOnLine() const override;
60 61
61 private: 62 private:
62 RefPtr<AbstractInlineTextBox> m_inlineTextBox; 63 RefPtr<AbstractInlineTextBox> m_inlineTextBox;
63 64
64 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ; 65 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ;
65 }; 66 };
66 67
67 } // namespace blink 68 } // namespace blink
68 69
69 #endif // AXInlineTextBox_h 70 #endif // AXInlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698