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

Side by Side Diff: Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 942583002: Move rendering/RenderProgress to layout/LayoutProgress (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months 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 | Annotate | Revision Log
OLDNEW
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 21 matching lines...) Expand all
32 32
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/LayoutProgress.h"
42 #include "core/layout/LayoutSlider.h" 43 #include "core/layout/LayoutSlider.h"
43 #include "core/layout/LayoutTable.h" 44 #include "core/layout/LayoutTable.h"
44 #include "core/layout/LayoutTableCell.h" 45 #include "core/layout/LayoutTableCell.h"
45 #include "core/layout/LayoutTableRow.h" 46 #include "core/layout/LayoutTableRow.h"
46 #include "core/layout/line/AbstractInlineTextBox.h" 47 #include "core/layout/line/AbstractInlineTextBox.h"
47 #include "core/page/Chrome.h" 48 #include "core/page/Chrome.h"
48 #include "core/page/ChromeClient.h" 49 #include "core/page/ChromeClient.h"
49 #include "core/page/FocusController.h" 50 #include "core/page/FocusController.h"
50 #include "core/page/Page.h" 51 #include "core/page/Page.h"
51 #include "core/rendering/RenderListBox.h" 52 #include "core/rendering/RenderListBox.h"
52 #include "core/rendering/RenderMenuList.h" 53 #include "core/rendering/RenderMenuList.h"
53 #include "core/rendering/RenderProgress.h"
54 #include "core/rendering/RenderView.h" 54 #include "core/rendering/RenderView.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/AXList.h" 60 #include "modules/accessibility/AXList.h"
61 #include "modules/accessibility/AXListBox.h" 61 #include "modules/accessibility/AXListBox.h"
62 #include "modules/accessibility/AXListBoxOption.h" 62 #include "modules/accessibility/AXListBoxOption.h"
63 #include "modules/accessibility/AXMediaControls.h" 63 #include "modules/accessibility/AXMediaControls.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
300 if (cssBox->isProgress()) 300 if (cssBox->isProgress())
301 return AXProgressIndicator::create(toRenderProgress(cssBox), this); 301 return AXProgressIndicator::create(toLayoutProgress(cssBox), this);
302 302
303 // input type=range 303 // input type=range
304 if (cssBox->isSlider()) 304 if (cssBox->isSlider())
305 return AXSlider::create(toLayoutSlider(cssBox), this); 305 return AXSlider::create(toLayoutSlider(cssBox), this);
306 } 306 }
307 307
308 return AXRenderObject::create(renderer, this); 308 return AXRenderObject::create(renderer, this);
309 } 309 }
310 310
311 PassRefPtr<AXObject> AXObjectCacheImpl::createFromNode(Node* node) 311 PassRefPtr<AXObject> AXObjectCacheImpl::createFromNode(Node* node)
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderProgress.cpp ('k') | Source/modules/accessibility/AXProgressIndicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698