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

Unified Diff: Source/modules/accessibility/AXSpinButton.cpp

Issue 742353004: Implement computedRole and computedName (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Finished pulling out ScopedAXObjectCache etc. Many fprintfs remain. Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/accessibility/AXSpinButton.cpp
diff --git a/Source/modules/accessibility/AXSpinButton.cpp b/Source/modules/accessibility/AXSpinButton.cpp
index dcc083f471749aa33f1cc18428730bfdf8dfa099..1f24065ab7763ab4b4e91e980de7eb17c86a6483 100644
--- a/Source/modules/accessibility/AXSpinButton.cpp
+++ b/Source/modules/accessibility/AXSpinButton.cpp
@@ -31,13 +31,14 @@
namespace blink {
-PassRefPtr<AXSpinButton> AXSpinButton::create()
+PassRefPtr<AXSpinButton> AXSpinButton::create(AXObjectCache* axObjectCache)
{
- return adoptRef(new AXSpinButton);
+ return adoptRef(new AXSpinButton(axObjectCache));
}
-AXSpinButton::AXSpinButton()
- : m_spinButtonElement(0)
+AXSpinButton::AXSpinButton(AXObjectCache* axObjectCache)
+ : AXMockObject(axObjectCache)
+ , m_spinButtonElement(0)
{
}
@@ -81,14 +82,15 @@ void AXSpinButton::step(int amount)
// AXSpinButtonPart
-AXSpinButtonPart::AXSpinButtonPart()
- : m_isIncrementor(false)
+AXSpinButtonPart::AXSpinButtonPart(AXObjectCache* axObjectCache)
+ : AXMockObject(axObjectCache)
+ , m_isIncrementor(false)
{
}
-PassRefPtr<AXSpinButtonPart> AXSpinButtonPart::create()
+PassRefPtr<AXSpinButtonPart> AXSpinButtonPart::create(AXObjectCache* axObjectCache)
{
- return adoptRef(new AXSpinButtonPart);
+ return adoptRef(new AXSpinButtonPart(axObjectCache));
}
LayoutRect AXSpinButtonPart::elementRect() const

Powered by Google App Engine
This is Rietveld 408576698