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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_accessibility.cc

Issue 6995126: Make web content accessibility tree a descendant of main window's tree again (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 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 "chrome/browser/autocomplete/autocomplete_accessibility.h" 5 #include "chrome/browser/autocomplete/autocomplete_accessibility.h"
6 6
7 #include "chrome/browser/autocomplete/autocomplete_edit.h" 7 #include "chrome/browser/autocomplete/autocomplete_edit.h"
8 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h" 8 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 if (!disp_parent) { 52 if (!disp_parent) {
53 return E_INVALIDARG; 53 return E_INVALIDARG;
54 } 54 }
55 55
56 if (omnibox_view_->parent_view() == NULL) { 56 if (omnibox_view_->parent_view() == NULL) {
57 *disp_parent = NULL; 57 *disp_parent = NULL;
58 return S_FALSE; 58 return S_FALSE;
59 } 59 }
60 60
61 // Retrieve the IDispatch interface for the parent view. 61 // Retrieve the IDispatch interface for the parent view.
62 *disp_parent = NativeViewAccessibilityWin::GetAccessibleForView( 62 *disp_parent = omnibox_view_->parent_view()->GetNativeViewAccessible();
63 omnibox_view_->parent_view());
64 // Increment the reference count for the retrieved interface. 63 // Increment the reference count for the retrieved interface.
65 (*disp_parent)->AddRef(); 64 (*disp_parent)->AddRef();
66 return S_OK; 65 return S_OK;
67 } 66 }
68 67
69 STDMETHODIMP AutocompleteAccessibility::accNavigate(LONG nav_dir, VARIANT start, 68 STDMETHODIMP AutocompleteAccessibility::accNavigate(LONG nav_dir, VARIANT start,
70 VARIANT* end) { 69 VARIANT* end) {
71 if (start.vt != VT_I4 || !end) { 70 if (start.vt != VT_I4 || !end) {
72 return E_INVALIDARG; 71 return E_INVALIDARG;
73 } 72 }
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 BSTR put_name) { 252 BSTR put_name) {
254 // Deprecated. 253 // Deprecated.
255 return DISP_E_MEMBERNOTFOUND; 254 return DISP_E_MEMBERNOTFOUND;
256 } 255 }
257 256
258 STDMETHODIMP AutocompleteAccessibility::put_accValue(VARIANT var_id, 257 STDMETHODIMP AutocompleteAccessibility::put_accValue(VARIANT var_id,
259 BSTR put_val) { 258 BSTR put_val) {
260 // Deprecated. 259 // Deprecated.
261 return DISP_E_MEMBERNOTFOUND; 260 return DISP_E_MEMBERNOTFOUND;
262 } 261 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698