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_MACOSX) && !defined(OS_WIN) && !defined(OS_ANDROID) && \ |
20 !defined(OS_WIN) && \ | 20 !defined(OS_LINUX) |
21 !defined(OS_ANDROID) | |
22 // We have subclassess of BrowserAccessibility on Mac and Win. For any other | 21 // We have subclassess of BrowserAccessibility on Mac and Win. For any other |
23 // platform, instantiate the base class. | 22 // platform, instantiate the base class. |
24 // static | 23 // static |
25 BrowserAccessibility* BrowserAccessibility::Create() { | 24 BrowserAccessibility* BrowserAccessibility::Create() { |
26 return new BrowserAccessibility(); | 25 return new BrowserAccessibility(); |
27 } | 26 } |
28 #endif | 27 #endif |
29 | 28 |
30 BrowserAccessibility::BrowserAccessibility() | 29 BrowserAccessibility::BrowserAccessibility() |
31 : manager_(NULL), | 30 : manager_(NULL), |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 } | 818 } |
820 need_to_offset_web_area = true; | 819 need_to_offset_web_area = true; |
821 } | 820 } |
822 parent = parent->GetParentForBoundsCalculation(); | 821 parent = parent->GetParentForBoundsCalculation(); |
823 } | 822 } |
824 | 823 |
825 return bounds; | 824 return bounds; |
826 } | 825 } |
827 | 826 |
828 } // namespace content | 827 } // namespace content |
OLD | NEW |