summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 16:26:59 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 16:26:59 +0000
commite7bb319a3bf850f6c8f3cf2d5236f1ed02ef9abe (patch)
tree0ac9dc41bc58f19a45e5a313f85daedcbac69b00
parentd5e6bdca31d7719e00f9a790d20d8faeb758b0f2 (diff)
downloadchromium_src-e7bb319a3bf850f6c8f3cf2d5236f1ed02ef9abe.zip
chromium_src-e7bb319a3bf850f6c8f3cf2d5236f1ed02ef9abe.tar.gz
chromium_src-e7bb319a3bf850f6c8f3cf2d5236f1ed02ef9abe.tar.bz2
Set the accessibility ViewProp in OnCreate in addition to Show, because
Show doesn't necessarily get called when a window is opened directly to a url (as opposed to a new tab page). BUG=70657 TEST=manual testing Review URL: http://codereview.chromium.org/6538038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75394 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_win.cc6
1 files changed, 6 insertions, 0 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 cac04a02..45714a2 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_win.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc
@@ -841,6 +841,12 @@ LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) {
props_.push_back(views::SetWindowSupportsRerouteMouseWheel(m_hWnd));
props_.push_back(new ViewProp(m_hWnd, kRenderWidgetHostViewKey,
static_cast<RenderWidgetHostView*>(this)));
+ // Save away our HWND in the parent window as a property so that the
+ // accessibility code can find it.
+ accessibility_prop_.reset(new ViewProp(GetParent(),
+ kViewsNativeHostPropForAccessibility,
+ m_hWnd));
+
return 0;
}