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

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 337453002: CHR-1796: Implement UIATextProvider::get_Value method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | ui/base/win/accessibility_misc_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/accessibility/browser_accessibility_win.h" 5 #include "content/browser/accessibility/browser_accessibility_win.h"
6 6
7 #include <UIAutomationClient.h> 7 #include <UIAutomationClient.h>
8 #include <UIAutomationCoreApi.h> 8 #include <UIAutomationCoreApi.h>
9 9
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 2802 matching lines...) Expand 10 before | Expand all | Expand 10 after
2813 2813
2814 STDMETHODIMP BrowserAccessibilityWin::GetPatternProvider(PATTERNID id, 2814 STDMETHODIMP BrowserAccessibilityWin::GetPatternProvider(PATTERNID id,
2815 IUnknown** provider) { 2815 IUnknown** provider) {
2816 DVLOG(1) << "In Function: " 2816 DVLOG(1) << "In Function: "
2817 << __FUNCTION__ 2817 << __FUNCTION__
2818 << " for pattern id: " 2818 << " for pattern id: "
2819 << id; 2819 << id;
2820 if (id == UIA_ValuePatternId || id == UIA_TextPatternId) { 2820 if (id == UIA_ValuePatternId || id == UIA_TextPatternId) {
2821 if (IsEditableText()) { 2821 if (IsEditableText()) {
2822 DVLOG(1) << "Returning UIA text provider"; 2822 DVLOG(1) << "Returning UIA text provider";
2823 base::win::UIATextProvider::CreateTextProvider(true, provider); 2823 base::win::UIATextProvider::CreateTextProvider(
2824 GetValueText(), true, provider);
2824 return S_OK; 2825 return S_OK;
2825 } 2826 }
2826 } 2827 }
2827 return E_NOTIMPL; 2828 return E_NOTIMPL;
2828 } 2829 }
2829 2830
2830 STDMETHODIMP BrowserAccessibilityWin::GetPropertyValue(PROPERTYID id, 2831 STDMETHODIMP BrowserAccessibilityWin::GetPropertyValue(PROPERTYID id,
2831 VARIANT* ret) { 2832 VARIANT* ret) {
2832 DVLOG(1) << "In Function: " 2833 DVLOG(1) << "In Function: "
2833 << __FUNCTION__ 2834 << __FUNCTION__
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
3784 // The role should always be set. 3785 // The role should always be set.
3785 DCHECK(!role_name_.empty() || ia_role_); 3786 DCHECK(!role_name_.empty() || ia_role_);
3786 3787
3787 // If we didn't explicitly set the IAccessible2 role, make it the same 3788 // If we didn't explicitly set the IAccessible2 role, make it the same
3788 // as the MSAA role. 3789 // as the MSAA role.
3789 if (!ia2_role_) 3790 if (!ia2_role_)
3790 ia2_role_ = ia_role_; 3791 ia2_role_ = ia_role_;
3791 } 3792 }
3792 3793
3793 } // namespace content 3794 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ui/base/win/accessibility_misc_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698