summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-15 21:51:37 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-15 21:51:37 +0000
commit10033a6c3ecb7421e489c2e54f815a53f9ceba6a (patch)
treea30324fff89702fc99001ed5f32e507cac387787 /ui
parent3d93bb797f311b10fc3c1f1b9f3e5355fef677f0 (diff)
downloadchromium_src-10033a6c3ecb7421e489c2e54f815a53f9ceba6a.zip
chromium_src-10033a6c3ecb7421e489c2e54f815a53f9ceba6a.tar.gz
chromium_src-10033a6c3ecb7421e489c2e54f815a53f9ceba6a.tar.bz2
Set vt=VT_DISPATCH when returning a focused child element
BUG=128158 Review URL: https://chromiumcodereview.appspot.com/10310167 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137262 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/views/accessibility/native_view_accessibility_win.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/views/accessibility/native_view_accessibility_win.cc b/ui/views/accessibility/native_view_accessibility_win.cc
index 68869a8..be73a3f 100644
--- a/ui/views/accessibility/native_view_accessibility_win.cc
+++ b/ui/views/accessibility/native_view_accessibility_win.cc
@@ -322,6 +322,7 @@ STDMETHODIMP NativeViewAccessibilityWin::get_accFocus(VARIANT* focus_child) {
focus_child->lVal = CHILDID_SELF;
} else if (focus && view_->Contains(focus)) {
// Return the child object that has the keyboard focus.
+ focus_child->vt = VT_DISPATCH;
focus_child->pdispVal = focus->GetNativeViewAccessible();
focus_child->pdispVal->AddRef();
return S_OK;