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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 3250014: Update browser accessibility tree on a renderer accessibility object state ch... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix lint errors Created 10 years, 3 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/render_widget_host_view_win.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/l10n_util_win.h" 8 #include "app/l10n_util_win.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 IA2_EVENT_DOCUMENT_LOAD_COMPLETE, m_hWnd, OBJID_CLIENT, root_id); 1497 IA2_EVENT_DOCUMENT_LOAD_COMPLETE, m_hWnd, OBJID_CLIENT, root_id);
1498 } 1498 }
1499 } 1499 }
1500 1500
1501 void RenderWidgetHostViewWin::OnAccessibilityFocusChange(int acc_obj_id) { 1501 void RenderWidgetHostViewWin::OnAccessibilityFocusChange(int acc_obj_id) {
1502 if (browser_accessibility_manager_.get()) { 1502 if (browser_accessibility_manager_.get()) {
1503 browser_accessibility_manager_->OnAccessibilityFocusChange(acc_obj_id); 1503 browser_accessibility_manager_->OnAccessibilityFocusChange(acc_obj_id);
1504 } 1504 }
1505 } 1505 }
1506 1506
1507 void RenderWidgetHostViewWin::OnAccessibilityObjectStateChange(int acc_obj_id) { 1507 void RenderWidgetHostViewWin::OnAccessibilityObjectStateChange(
1508 const webkit_glue::WebAccessibility& acc_obj) {
1508 if (browser_accessibility_manager_.get()) { 1509 if (browser_accessibility_manager_.get()) {
1509 browser_accessibility_manager_->OnAccessibilityObjectStateChange( 1510 browser_accessibility_manager_->OnAccessibilityObjectStateChange(acc_obj);
1510 acc_obj_id);
1511 } 1511 }
1512 } 1512 }
1513 1513
1514 void RenderWidgetHostViewWin::OnAccessibilityObjectChildrenChange( 1514 void RenderWidgetHostViewWin::OnAccessibilityObjectChildrenChange(
1515 const std::vector<webkit_glue::WebAccessibility>& acc_changes) { 1515 const std::vector<webkit_glue::WebAccessibility>& acc_changes) {
1516 if (browser_accessibility_manager_.get()) { 1516 if (browser_accessibility_manager_.get()) {
1517 browser_accessibility_manager_->OnAccessibilityObjectChildrenChange( 1517 browser_accessibility_manager_->OnAccessibilityObjectChildrenChange(
1518 acc_changes); 1518 acc_changes);
1519 } 1519 }
1520 } 1520 }
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1734 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1735 gfx::NativeView native_view) { 1735 gfx::NativeView native_view) {
1736 if (::IsWindow(native_view)) { 1736 if (::IsWindow(native_view)) {
1737 HANDLE raw_render_host_view = ::GetProp(native_view, 1737 HANDLE raw_render_host_view = ::GetProp(native_view,
1738 kRenderWidgetHostViewKey); 1738 kRenderWidgetHostViewKey);
1739 if (raw_render_host_view) 1739 if (raw_render_host_view)
1740 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view); 1740 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view);
1741 } 1741 }
1742 return NULL; 1742 return NULL;
1743 } 1743 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698