OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |