OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014, Google Inc. All rights reserved. | 2 * Copyright (C) 2014, 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 22 matching lines...) Expand all Loading... |
33 #include "core/HTMLNames.h" | 33 #include "core/HTMLNames.h" |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/frame/FrameView.h" | 35 #include "core/frame/FrameView.h" |
36 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
37 #include "core/frame/Settings.h" | 37 #include "core/frame/Settings.h" |
38 #include "core/html/HTMLAreaElement.h" | 38 #include "core/html/HTMLAreaElement.h" |
39 #include "core/html/HTMLImageElement.h" | 39 #include "core/html/HTMLImageElement.h" |
40 #include "core/html/HTMLInputElement.h" | 40 #include "core/html/HTMLInputElement.h" |
41 #include "core/html/HTMLLabelElement.h" | 41 #include "core/html/HTMLLabelElement.h" |
42 #include "core/layout/LayoutListBox.h" | 42 #include "core/layout/LayoutListBox.h" |
| 43 #include "core/layout/LayoutMenuList.h" |
43 #include "core/layout/LayoutProgress.h" | 44 #include "core/layout/LayoutProgress.h" |
44 #include "core/layout/LayoutSlider.h" | 45 #include "core/layout/LayoutSlider.h" |
45 #include "core/layout/LayoutTable.h" | 46 #include "core/layout/LayoutTable.h" |
46 #include "core/layout/LayoutTableCell.h" | 47 #include "core/layout/LayoutTableCell.h" |
47 #include "core/layout/LayoutTableRow.h" | 48 #include "core/layout/LayoutTableRow.h" |
48 #include "core/layout/LayoutView.h" | 49 #include "core/layout/LayoutView.h" |
49 #include "core/layout/line/AbstractInlineTextBox.h" | 50 #include "core/layout/line/AbstractInlineTextBox.h" |
50 #include "core/page/Chrome.h" | 51 #include "core/page/Chrome.h" |
51 #include "core/page/ChromeClient.h" | 52 #include "core/page/ChromeClient.h" |
52 #include "core/page/FocusController.h" | 53 #include "core/page/FocusController.h" |
53 #include "core/page/Page.h" | 54 #include "core/page/Page.h" |
54 #include "core/rendering/RenderMenuList.h" | |
55 #include "modules/accessibility/AXARIAGrid.h" | 55 #include "modules/accessibility/AXARIAGrid.h" |
56 #include "modules/accessibility/AXARIAGridCell.h" | 56 #include "modules/accessibility/AXARIAGridCell.h" |
57 #include "modules/accessibility/AXARIAGridRow.h" | 57 #include "modules/accessibility/AXARIAGridRow.h" |
58 #include "modules/accessibility/AXImageMapLink.h" | 58 #include "modules/accessibility/AXImageMapLink.h" |
59 #include "modules/accessibility/AXInlineTextBox.h" | 59 #include "modules/accessibility/AXInlineTextBox.h" |
60 #include "modules/accessibility/AXLayoutObject.h" | 60 #include "modules/accessibility/AXLayoutObject.h" |
61 #include "modules/accessibility/AXList.h" | 61 #include "modules/accessibility/AXList.h" |
62 #include "modules/accessibility/AXListBox.h" | 62 #include "modules/accessibility/AXListBox.h" |
63 #include "modules/accessibility/AXListBoxOption.h" | 63 #include "modules/accessibility/AXListBoxOption.h" |
64 #include "modules/accessibility/AXMediaControls.h" | 64 #include "modules/accessibility/AXMediaControls.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 return AXListBoxOption::create(renderer, this); | 279 return AXListBoxOption::create(renderer, this); |
280 | 280 |
281 if (renderer->isSVGRoot()) | 281 if (renderer->isSVGRoot()) |
282 return AXSVGRoot::create(renderer, this); | 282 return AXSVGRoot::create(renderer, this); |
283 | 283 |
284 if (renderer->isBoxModelObject()) { | 284 if (renderer->isBoxModelObject()) { |
285 LayoutBoxModelObject* cssBox = toLayoutBoxModelObject(renderer); | 285 LayoutBoxModelObject* cssBox = toLayoutBoxModelObject(renderer); |
286 if (cssBox->isListBox()) | 286 if (cssBox->isListBox()) |
287 return AXListBox::create(toLayoutListBox(cssBox), this); | 287 return AXListBox::create(toLayoutListBox(cssBox), this); |
288 if (cssBox->isMenuList()) | 288 if (cssBox->isMenuList()) |
289 return AXMenuList::create(toRenderMenuList(cssBox), this); | 289 return AXMenuList::create(toLayoutMenuList(cssBox), this); |
290 | 290 |
291 // standard tables | 291 // standard tables |
292 if (cssBox->isTable()) | 292 if (cssBox->isTable()) |
293 return AXTable::create(toLayoutTable(cssBox), this); | 293 return AXTable::create(toLayoutTable(cssBox), this); |
294 if (cssBox->isTableRow()) | 294 if (cssBox->isTableRow()) |
295 return AXTableRow::create(toLayoutTableRow(cssBox), this); | 295 return AXTableRow::create(toLayoutTableRow(cssBox), this); |
296 if (cssBox->isTableCell()) | 296 if (cssBox->isTableCell()) |
297 return AXTableCell::create(toLayoutTableCell(cssBox), this); | 297 return AXTableCell::create(toLayoutTableCell(cssBox), this); |
298 | 298 |
299 // progress bar | 299 // progress bar |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 void AXObjectCacheImpl::handleTextFormControlChanged(Node* node) | 1030 void AXObjectCacheImpl::handleTextFormControlChanged(Node* node) |
1031 { | 1031 { |
1032 postNotification(node, AXObjectCache::AXValueChanged, false); | 1032 postNotification(node, AXObjectCache::AXValueChanged, false); |
1033 } | 1033 } |
1034 | 1034 |
1035 void AXObjectCacheImpl::handleValueChanged(Node* node) | 1035 void AXObjectCacheImpl::handleValueChanged(Node* node) |
1036 { | 1036 { |
1037 postNotification(node, AXObjectCache::AXValueChanged, true); | 1037 postNotification(node, AXObjectCache::AXValueChanged, true); |
1038 } | 1038 } |
1039 | 1039 |
1040 void AXObjectCacheImpl::handleUpdateActiveMenuOption(RenderMenuList* menuList, i
nt optionIndex) | 1040 void AXObjectCacheImpl::handleUpdateActiveMenuOption(LayoutMenuList* menuList, i
nt optionIndex) |
1041 { | 1041 { |
1042 if (AXMenuList* axMenuList = static_cast<AXMenuList*>(get(menuList))) | 1042 if (AXMenuList* axMenuList = static_cast<AXMenuList*>(get(menuList))) |
1043 axMenuList->didUpdateActiveOption(optionIndex); | 1043 axMenuList->didUpdateActiveOption(optionIndex); |
1044 } | 1044 } |
1045 | 1045 |
1046 void AXObjectCacheImpl::handleLoadComplete(Document* document) | 1046 void AXObjectCacheImpl::handleLoadComplete(Document* document) |
1047 { | 1047 { |
1048 postNotification(getOrCreate(document), document, AXObjectCache::AXLoadCompl
ete, true); | 1048 postNotification(getOrCreate(document), document, AXObjectCache::AXLoadCompl
ete, true); |
1049 } | 1049 } |
1050 | 1050 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) | 1121 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) |
1122 { | 1122 { |
1123 AXObject* obj = getOrCreate(element); | 1123 AXObject* obj = getOrCreate(element); |
1124 if (!obj) | 1124 if (!obj) |
1125 return; | 1125 return; |
1126 | 1126 |
1127 obj->setElementRect(rect); | 1127 obj->setElementRect(rect); |
1128 } | 1128 } |
1129 | 1129 |
1130 } // namespace blink | 1130 } // namespace blink |
OLD | NEW |