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

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

Issue 729343003: Handle AX help-Text for media time slider. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.h ('k') | public/platform/WebLocalizedString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXNodeObject.cpp
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp
index 97cbf483acc76bc1c5673ec2c6ae2f4695cbf35f..6e79ce19f6a1582343e14a50267155993d77f1e6 100644
--- a/Source/modules/accessibility/AXNodeObject.cpp
+++ b/Source/modules/accessibility/AXNodeObject.cpp
@@ -38,9 +38,11 @@
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLLabelElement.h"
#include "core/html/HTMLLegendElement.h"
+#include "core/html/HTMLMediaElement.h"
#include "core/html/HTMLPlugInElement.h"
#include "core/html/HTMLSelectElement.h"
#include "core/html/HTMLTextAreaElement.h"
+#include "core/html/shadow/MediaControlElements.h"
#include "core/rendering/RenderObject.h"
#include "modules/accessibility/AXObjectCacheImpl.h"
#include "platform/UserGestureIndicator.h"
@@ -515,6 +517,15 @@ bool AXNodeObject::isControl() const
|| AXObject::isARIAControl(ariaRoleAttribute()));
}
+bool AXNodeObject::isControllingVideoElement() const
+{
+ Node* node = this->node();
+ if (!node)
+ return true;
+
+ return isHTMLVideoElement(toParentMediaElement(node));
+}
+
bool AXNodeObject::isEmbeddedObject() const
{
return isHTMLPlugInElement(node());
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.h ('k') | public/platform/WebLocalizedString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698