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

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

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

Powered by Google App Engine
This is Rietveld 408576698