| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "content/browser/accessibility/browser_accessibility.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "content/browser/accessibility/browser_accessibility_manager.h" | 10 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 11 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
| 12 | 12 |
| 13 typedef WebAccessibility::BoolAttribute BoolAttribute; | 13 typedef WebAccessibility::BoolAttribute BoolAttribute; |
| 14 typedef WebAccessibility::FloatAttribute FloatAttribute; | 14 typedef WebAccessibility::FloatAttribute FloatAttribute; |
| 15 typedef WebAccessibility::IntAttribute IntAttribute; | 15 typedef WebAccessibility::IntAttribute IntAttribute; |
| 16 typedef WebAccessibility::StringAttribute StringAttribute; | 16 typedef WebAccessibility::StringAttribute StringAttribute; |
| 17 | 17 |
| 18 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 18 #if (defined(OS_POSIX) && !defined(OS_MACOSX)) || defined(USE_AURA) |
| 19 // There's no OS-specific implementation of BrowserAccessibilityManager | 19 // There's no OS-specific implementation of BrowserAccessibilityManager |
| 20 // on Unix, so just instantiate the base class. | 20 // on Unix, so just instantiate the base class. |
| 21 // static | 21 // static |
| 22 BrowserAccessibility* BrowserAccessibility::Create() { | 22 BrowserAccessibility* BrowserAccessibility::Create() { |
| 23 return new BrowserAccessibility(); | 23 return new BrowserAccessibility(); |
| 24 } | 24 } |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 BrowserAccessibility::BrowserAccessibility() | 27 BrowserAccessibility::BrowserAccessibility() |
| 28 : manager_(NULL), | 28 : manager_(NULL), |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 if (!name_.empty()) { | 260 if (!name_.empty()) { |
| 261 return name_; | 261 return name_; |
| 262 } | 262 } |
| 263 | 263 |
| 264 string16 result; | 264 string16 result; |
| 265 for (size_t i = 0; i < children_.size(); ++i) | 265 for (size_t i = 0; i < children_.size(); ++i) |
| 266 result += children_[i]->GetTextRecursive(); | 266 result += children_[i]->GetTextRecursive(); |
| 267 return result; | 267 return result; |
| 268 } | 268 } |
| 269 | 269 |
| OLD | NEW |