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

Side by Side Diff: content/renderer/renderer_accessibility.cc

Issue 10544099: Refactor all accessibility code out of webkit/glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More Mac compile errors Created 8 years, 6 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 (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/renderer/renderer_accessibility.h" 5 #include "content/renderer/renderer_accessibility.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/public/common/content_switches.h" 8 #include "content/public/common/content_switches.h"
9 #include "content/renderer/render_view_impl.h" 9 #include "content/renderer/render_view_impl.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
14 #include "webkit/glue/webaccessibility.h"
15 14
16 using WebKit::WebAccessibilityNotification; 15 using WebKit::WebAccessibilityNotification;
17 using WebKit::WebAccessibilityObject; 16 using WebKit::WebAccessibilityObject;
18 using WebKit::WebDocument; 17 using WebKit::WebDocument;
19 using WebKit::WebFrame; 18 using WebKit::WebFrame;
20 using WebKit::WebView; 19 using WebKit::WebView;
21 using webkit_glue::WebAccessibility;
22 20
23 namespace content { 21 namespace content {
24 22
25 RendererAccessibility::RendererAccessibility( 23 RendererAccessibility::RendererAccessibility(
26 RenderViewImpl* render_view) 24 RenderViewImpl* render_view)
27 : RenderViewObserver(render_view), 25 : RenderViewObserver(render_view),
28 render_view_(render_view), 26 render_view_(render_view),
29 logging_(false) { 27 logging_(false) {
30 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 28 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
31 if (command_line.HasSwitch(switches::kEnableAccessibilityLogging)) 29 if (command_line.HasSwitch(switches::kEnableAccessibilityLogging))
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 case AccessibilityNotificationValueChanged: 90 case AccessibilityNotificationValueChanged:
93 return "value changed"; 91 return "value changed";
94 default: 92 default:
95 NOTREACHED(); 93 NOTREACHED();
96 } 94 }
97 return ""; 95 return "";
98 } 96 }
99 #endif 97 #endif
100 98
101 } // namespace content 99 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_accessibility.h ('k') | content/renderer/renderer_accessibility_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698