diff options
author | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-24 17:24:04 +0000 |
---|---|---|
committer | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-24 17:24:04 +0000 |
commit | e9c14b5425443a1db134640adf814e2da0ab6144 (patch) | |
tree | f0c004cfac51d84b292566fe8c0089a2c2d9df6d | |
parent | 3fc1df57120d98466f4fce571a80b037b59cec3a (diff) | |
download | chromium_src-e9c14b5425443a1db134640adf814e2da0ab6144.zip chromium_src-e9c14b5425443a1db134640adf814e2da0ab6144.tar.gz chromium_src-e9c14b5425443a1db134640adf814e2da0ab6144.tar.bz2 |
Fire the document load complete and focus event on the root document object.
BUG=47084,47208
TEST=none
Review URL: http://codereview.chromium.org/2822027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50732 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_win.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc index 06292e5..675aa1b 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_win.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc @@ -1482,10 +1482,14 @@ void RenderWidgetHostViewWin::UpdateAccessibilityTree( browser_accessibility_manager_.reset( new BrowserAccessibilityManager(m_hWnd, tree, this)); - ::NotifyWinEvent( - EVENT_OBJECT_FOCUS, m_hWnd, OBJID_CLIENT, CHILDID_SELF); - ::NotifyWinEvent( - IA2_EVENT_DOCUMENT_LOAD_COMPLETE, m_hWnd, OBJID_CLIENT, CHILDID_SELF); + BrowserAccessibility* root = browser_accessibility_manager_.get()->GetRoot(); + LONG root_id; + if (root && SUCCEEDED(root->get_uniqueID(&root_id))) { + ::NotifyWinEvent( + EVENT_OBJECT_FOCUS, m_hWnd, OBJID_CLIENT, root_id); + ::NotifyWinEvent( + IA2_EVENT_DOCUMENT_LOAD_COMPLETE, m_hWnd, OBJID_CLIENT, root_id); + } } void RenderWidgetHostViewWin::OnAccessibilityFocusChange(int acc_obj_id) { |