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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.h ('k') | public/platform/WebLocalizedString.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 20 matching lines...) Expand all
31 31
32 #include "core/InputTypeNames.h" 32 #include "core/InputTypeNames.h"
33 #include "core/dom/NodeTraversal.h" 33 #include "core/dom/NodeTraversal.h"
34 #include "core/dom/Text.h" 34 #include "core/dom/Text.h"
35 #include "core/html/HTMLDListElement.h" 35 #include "core/html/HTMLDListElement.h"
36 #include "core/html/HTMLFieldSetElement.h" 36 #include "core/html/HTMLFieldSetElement.h"
37 #include "core/html/HTMLFrameElementBase.h" 37 #include "core/html/HTMLFrameElementBase.h"
38 #include "core/html/HTMLInputElement.h" 38 #include "core/html/HTMLInputElement.h"
39 #include "core/html/HTMLLabelElement.h" 39 #include "core/html/HTMLLabelElement.h"
40 #include "core/html/HTMLLegendElement.h" 40 #include "core/html/HTMLLegendElement.h"
41 #include "core/html/HTMLMediaElement.h"
41 #include "core/html/HTMLPlugInElement.h" 42 #include "core/html/HTMLPlugInElement.h"
42 #include "core/html/HTMLSelectElement.h" 43 #include "core/html/HTMLSelectElement.h"
43 #include "core/html/HTMLTextAreaElement.h" 44 #include "core/html/HTMLTextAreaElement.h"
45 #include "core/html/shadow/MediaControlElements.h"
44 #include "core/rendering/RenderObject.h" 46 #include "core/rendering/RenderObject.h"
45 #include "modules/accessibility/AXObjectCacheImpl.h" 47 #include "modules/accessibility/AXObjectCacheImpl.h"
46 #include "platform/UserGestureIndicator.h" 48 #include "platform/UserGestureIndicator.h"
47 #include "wtf/text/StringBuilder.h" 49 #include "wtf/text/StringBuilder.h"
48 50
49 51
50 namespace blink { 52 namespace blink {
51 53
52 using namespace HTMLNames; 54 using namespace HTMLNames;
53 55
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 bool AXNodeObject::isControl() const 510 bool AXNodeObject::isControl() const
509 { 511 {
510 Node* node = this->node(); 512 Node* node = this->node();
511 if (!node) 513 if (!node)
512 return false; 514 return false;
513 515
514 return ((node->isElementNode() && toElement(node)->isFormControlElement()) 516 return ((node->isElementNode() && toElement(node)->isFormControlElement())
515 || AXObject::isARIAControl(ariaRoleAttribute())); 517 || AXObject::isARIAControl(ariaRoleAttribute()));
516 } 518 }
517 519
520 bool AXNodeObject::isControllingVideoElement() const
521 {
522 Node* node = this->node();
523 if (!node)
524 return true;
525
526 return isHTMLVideoElement(toParentMediaElement(node));
527 }
528
518 bool AXNodeObject::isEmbeddedObject() const 529 bool AXNodeObject::isEmbeddedObject() const
519 { 530 {
520 return isHTMLPlugInElement(node()); 531 return isHTMLPlugInElement(node());
521 } 532 }
522 533
523 bool AXNodeObject::isFieldset() const 534 bool AXNodeObject::isFieldset() const
524 { 535 {
525 return isHTMLFieldSetElement(node()); 536 return isHTMLFieldSetElement(node());
526 } 537 }
527 538
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 float range = maxValueForRange() - minValueForRange(); 1814 float range = maxValueForRange() - minValueForRange();
1804 float value = valueForRange(); 1815 float value = valueForRange();
1805 1816
1806 value += range * (percentChange / 100); 1817 value += range * (percentChange / 100);
1807 setValue(String::number(value)); 1818 setValue(String::number(value));
1808 1819
1809 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true); 1820 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true);
1810 } 1821 }
1811 1822
1812 } // namespace blink 1823 } // namespace blink
OLDNEW
« 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