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

Unified Diff: Source/modules/accessibility/AXScrollbar.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/AXScrollbar.cpp
diff --git a/Source/modules/accessibility/AXScrollbar.cpp b/Source/modules/accessibility/AXScrollbar.cpp
index de5bae3d0f2ef3443a6a5a6227b902a2e309854c..3f9753700da2c203c5372beaf239b126d9201ed2 100644
--- a/Source/modules/accessibility/AXScrollbar.cpp
+++ b/Source/modules/accessibility/AXScrollbar.cpp
@@ -29,13 +29,15 @@
#include "config.h"
#include "modules/accessibility/AXScrollbar.h"
+#include "core/dom/AXObjectCache.h"
#include "platform/scroll/ScrollableArea.h"
#include "platform/scroll/Scrollbar.h"
namespace blink {
-AXScrollbar::AXScrollbar(Scrollbar* scrollbar)
- : m_scrollbar(scrollbar)
+AXScrollbar::AXScrollbar(Scrollbar* scrollbar, AXObjectCache* axObjectCache)
+ : AXMockObject(axObjectCache)
+ , m_scrollbar(scrollbar)
{
ASSERT(scrollbar);
}
@@ -46,9 +48,9 @@ void AXScrollbar::detachFromParent()
AXMockObject::detachFromParent();
}
-PassRefPtr<AXScrollbar> AXScrollbar::create(Scrollbar* scrollbar)
+PassRefPtr<AXScrollbar> AXScrollbar::create(Scrollbar* scrollbar, AXObjectCache* axObjectCache)
{
- return adoptRef(new AXScrollbar(scrollbar));
+ return adoptRef(new AXScrollbar(scrollbar, axObjectCache));
}
LayoutRect AXScrollbar::elementRect() const

Powered by Google App Engine
This is Rietveld 408576698