| 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.h" | 5 #include "content/browser/accessibility/browser_accessibility.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "content/browser/accessibility/browser_accessibility_manager.h" | 13 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 14 #include "content/common/accessibility_messages.h" | 14 #include "content/common/accessibility_messages.h" |
| 15 #include "ui/accessibility/ax_text_utils.h" | 15 #include "ui/accessibility/ax_text_utils.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 #if !defined(OS_MACOSX) && \ | 19 #if defined(OS_CHROMEOS) |
| 20 !defined(OS_WIN) && \ | 20 // We have subclassess of BrowserAccessibility on all platforms except ChromeOS. |
| 21 !defined(OS_ANDROID) | 21 // For ChromeOS platform, instantiate the base class. |
| 22 // We have subclassess of BrowserAccessibility on Mac and Win. For any other | |
| 23 // platform, instantiate the base class. | |
| 24 // static | 22 // static |
| 25 BrowserAccessibility* BrowserAccessibility::Create() { | 23 BrowserAccessibility* BrowserAccessibility::Create() { |
| 26 return new BrowserAccessibility(); | 24 return new BrowserAccessibility(); |
| 27 } | 25 } |
| 28 #endif | 26 #endif |
| 29 | 27 |
| 30 BrowserAccessibility::BrowserAccessibility() | 28 BrowserAccessibility::BrowserAccessibility() |
| 31 : manager_(NULL), | 29 : manager_(NULL), |
| 32 node_(NULL) { | 30 node_(NULL) { |
| 33 } | 31 } |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 } | 849 } |
| 852 need_to_offset_web_area = true; | 850 need_to_offset_web_area = true; |
| 853 } | 851 } |
| 854 parent = parent->GetParentForBoundsCalculation(); | 852 parent = parent->GetParentForBoundsCalculation(); |
| 855 } | 853 } |
| 856 | 854 |
| 857 return bounds; | 855 return bounds; |
| 858 } | 856 } |
| 859 | 857 |
| 860 } // namespace content | 858 } // namespace content |
| OLD | NEW |