Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1073)

Side by Side Diff: content/browser/accessibility/accessibility_mode_helper.cc

Issue 407493004: Revert of Revert of Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698