OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/logging.h" |
5 #include "content/browser/accessibility/accessibility_mode_helper.h" | 6 #include "content/browser/accessibility/accessibility_mode_helper.h" |
6 | 7 |
7 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
8 #include "base/command_line.h" | 9 #include "base/command_line.h" |
9 #include "base/win/windows_version.h" | 10 #include "base/win/windows_version.h" |
10 #include "content/public/common/content_switches.h" | 11 #include "content/public/common/content_switches.h" |
11 #endif | 12 #endif |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 if ((from & AccessibilityModeEditableTextOnly) == | 48 if ((from & AccessibilityModeEditableTextOnly) == |
48 AccessibilityModeEditableTextOnly) | 49 AccessibilityModeEditableTextOnly) |
49 new_mode |= AccessibilityModeEditableTextOnly; | 50 new_mode |= AccessibilityModeEditableTextOnly; |
50 } | 51 } |
51 #endif // defined(OS_WIN) | 52 #endif // defined(OS_WIN) |
52 | 53 |
53 return CastToAccessibilityMode(new_mode); | 54 return CastToAccessibilityMode(new_mode); |
54 } | 55 } |
55 | 56 |
56 } // namespace content | 57 } // namespace content |
OLD | NEW |