OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "content/common/content_switches.h" | |
7 #include "content/common/view_messages.h" | 6 #include "content/common/view_messages.h" |
| 7 #include "content/public/common/content_switches.h" |
8 #include "content/renderer/render_view_impl.h" | 8 #include "content/renderer/render_view_impl.h" |
9 #include "content/renderer/renderer_accessibility.h" | 9 #include "content/renderer/renderer_accessibility.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" | 14 #include "webkit/glue/webaccessibility.h" |
15 | 15 |
16 using WebKit::WebAccessibilityNotification; | 16 using WebKit::WebAccessibilityNotification; |
17 using WebKit::WebAccessibilityObject; | 17 using WebKit::WebAccessibilityObject; |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 425 |
426 WebDocument RendererAccessibility::GetMainDocument() { | 426 WebDocument RendererAccessibility::GetMainDocument() { |
427 WebView* view = render_view()->GetWebView(); | 427 WebView* view = render_view()->GetWebView(); |
428 WebFrame* main_frame = view ? view->mainFrame() : NULL; | 428 WebFrame* main_frame = view ? view->mainFrame() : NULL; |
429 | 429 |
430 if (main_frame) | 430 if (main_frame) |
431 return main_frame->document(); | 431 return main_frame->document(); |
432 else | 432 else |
433 return WebDocument(); | 433 return WebDocument(); |
434 } | 434 } |
OLD | NEW |