| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/accessibility/browser_accessibility_manager.h" | 5 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/browser/accessibility/browser_accessibility.h" | 8 #include "content/browser/accessibility/browser_accessibility.h" |
| 9 #include "content/common/accessibility_messages.h" | 9 #include "content/common/accessibility_messages.h" |
| 10 #include "ui/accessibility/ax_tree_serializer.h" | 10 #include "ui/accessibility/ax_tree_serializer.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 if (node7.id != no_id) | 68 if (node7.id != no_id) |
| 69 update.nodes.push_back(node7); | 69 update.nodes.push_back(node7); |
| 70 if (node8.id != no_id) | 70 if (node8.id != no_id) |
| 71 update.nodes.push_back(node8); | 71 update.nodes.push_back(node8); |
| 72 if (node9.id != no_id) | 72 if (node9.id != no_id) |
| 73 update.nodes.push_back(node9); | 73 update.nodes.push_back(node9); |
| 74 return update; | 74 return update; |
| 75 } | 75 } |
| 76 | 76 |
| 77 BrowserAccessibility* BrowserAccessibilityFactory::Create() { | 77 BrowserAccessibility* BrowserAccessibilityFactory::Create() { |
| 78 return BrowserAccessibility::Create(); | 78 return nullptr; |
| 79 //return BrowserAccessibility::Create(); |
| 79 } | 80 } |
| 80 | 81 |
| 81 BrowserAccessibilityFindInPageInfo::BrowserAccessibilityFindInPageInfo() | 82 BrowserAccessibilityFindInPageInfo::BrowserAccessibilityFindInPageInfo() |
| 82 : request_id(-1), | 83 : request_id(-1), |
| 83 match_index(-1), | 84 match_index(-1), |
| 84 start_id(-1), | 85 start_id(-1), |
| 85 start_offset(0), | 86 start_offset(0), |
| 86 end_id(-1), | 87 end_id(-1), |
| 87 end_offset(-1), | 88 end_offset(-1), |
| 88 active_request_id(-1) {} | 89 active_request_id(-1) {} |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 scoped_ptr<ui::AXTreeSource<const ui::AXNode*, ui::AXNodeData> > tree_source( | 565 scoped_ptr<ui::AXTreeSource<const ui::AXNode*, ui::AXNodeData> > tree_source( |
| 565 tree_->CreateTreeSource()); | 566 tree_->CreateTreeSource()); |
| 566 ui::AXTreeSerializer<const ui::AXNode*, ui::AXNodeData> serializer( | 567 ui::AXTreeSerializer<const ui::AXNode*, ui::AXNodeData> serializer( |
| 567 tree_source.get()); | 568 tree_source.get()); |
| 568 SimpleAXTreeUpdate update; | 569 SimpleAXTreeUpdate update; |
| 569 serializer.SerializeChanges(tree_->root(), &update); | 570 serializer.SerializeChanges(tree_->root(), &update); |
| 570 return update; | 571 return update; |
| 571 } | 572 } |
| 572 | 573 |
| 573 } // namespace content | 574 } // namespace content |
| OLD | NEW |