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/view_messages.h" | 6 #include "content/common/view_messages.h" |
7 #include "content/public/common/content_switches.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" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 render_view()->GetWebView()->clearFocusedNode(); | 410 render_view()->GetWebView()->clearFocusedNode(); |
411 else | 411 else |
412 obj.setFocused(true); | 412 obj.setFocused(true); |
413 } | 413 } |
414 | 414 |
415 bool RendererAccessibility::ShouldIncludeChildren( | 415 bool RendererAccessibility::ShouldIncludeChildren( |
416 const RendererAccessibility::Notification& notification) { | 416 const RendererAccessibility::Notification& notification) { |
417 WebKit::WebAccessibilityNotification type = notification.type; | 417 WebKit::WebAccessibilityNotification type = notification.type; |
418 if (type == WebKit::WebAccessibilityNotificationChildrenChanged || | 418 if (type == WebKit::WebAccessibilityNotificationChildrenChanged || |
419 type == WebKit::WebAccessibilityNotificationLoadComplete || | 419 type == WebKit::WebAccessibilityNotificationLoadComplete || |
420 type == WebKit::WebAccessibilityNotificationLiveRegionChanged) { | 420 type == WebKit::WebAccessibilityNotificationLiveRegionChanged || |
| 421 type == WebKit::WebAccessibilityNotificationSelectedChildrenChanged) { |
421 return true; | 422 return true; |
422 } | 423 } |
423 return false; | 424 return false; |
424 } | 425 } |
425 | 426 |
426 WebDocument RendererAccessibility::GetMainDocument() { | 427 WebDocument RendererAccessibility::GetMainDocument() { |
427 WebView* view = render_view()->GetWebView(); | 428 WebView* view = render_view()->GetWebView(); |
428 WebFrame* main_frame = view ? view->mainFrame() : NULL; | 429 WebFrame* main_frame = view ? view->mainFrame() : NULL; |
429 | 430 |
430 if (main_frame) | 431 if (main_frame) |
431 return main_frame->document(); | 432 return main_frame->document(); |
432 else | 433 else |
433 return WebDocument(); | 434 return WebDocument(); |
434 } | 435 } |
OLD | NEW |