OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_android.h" | 5 #include "content/browser/accessibility/browser_accessibility_android.h" |
6 | 6 |
7 #include "base/i18n/break_iterator.h" | 7 #include "base/i18n/break_iterator.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "content/app/strings/grit/content_strings.h" | 12 #include "content/app/strings/grit/content_strings.h" |
13 #include "content/browser/accessibility/browser_accessibility_manager_android.h" | 13 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
14 #include "content/common/accessibility_messages.h" | 14 #include "content/common/accessibility_messages.h" |
15 #include "content/public/common/content_client.h" | 15 #include "content/public/common/content_client.h" |
16 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
| 17 #include "ui/accessibility/ax_enums.h" |
17 | 18 |
18 namespace { | 19 namespace { |
19 | 20 |
20 const base::char16 kSecurePasswordBullet = 0x2022; | 21 const base::char16 kSecurePasswordBullet = 0x2022; |
21 | 22 |
22 // These are enums from android.text.InputType in Java: | 23 // These are enums from android.text.InputType in Java: |
23 enum { | 24 enum { |
24 ANDROID_TEXT_INPUTTYPE_TYPE_NULL = 0, | 25 ANDROID_TEXT_INPUTTYPE_TYPE_NULL = 0, |
25 ANDROID_TEXT_INPUTTYPE_TYPE_DATETIME = 0x4, | 26 ANDROID_TEXT_INPUTTYPE_TYPE_DATETIME = 0x4, |
26 ANDROID_TEXT_INPUTTYPE_TYPE_DATETIME_DATE = 0x14, | 27 ANDROID_TEXT_INPUTTYPE_TYPE_DATETIME_DATE = 0x14, |
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { | 1414 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { |
1414 int count = 0; | 1415 int count = 0; |
1415 for (uint32_t i = 0; i < PlatformChildCount(); i++) { | 1416 for (uint32_t i = 0; i < PlatformChildCount(); i++) { |
1416 if (PlatformGetChild(i)->GetRole() == role) | 1417 if (PlatformGetChild(i)->GetRole() == role) |
1417 count++; | 1418 count++; |
1418 } | 1419 } |
1419 return count; | 1420 return count; |
1420 } | 1421 } |
1421 | 1422 |
1422 } // namespace content | 1423 } // namespace content |
OLD | NEW |