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

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

Issue 510513003: Send Android accessibility event when object location changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_accessibility_focus_3
Patch Set: Created 6 years, 3 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 | « content/browser/accessibility/browser_accessibility_win.h ('k') | no next file » | 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 3158 matching lines...) Expand 10 before | Expand all | Expand 10 after
3169 } 3169 }
3170 3170
3171 void BrowserAccessibilityWin::NativeReleaseReference() { 3171 void BrowserAccessibilityWin::NativeReleaseReference() {
3172 Release(); 3172 Release();
3173 } 3173 }
3174 3174
3175 bool BrowserAccessibilityWin::IsNative() const { 3175 bool BrowserAccessibilityWin::IsNative() const {
3176 return true; 3176 return true;
3177 } 3177 }
3178 3178
3179 void BrowserAccessibilityWin::OnLocationChanged() const { 3179 void BrowserAccessibilityWin::OnLocationChanged() {
3180 manager()->ToBrowserAccessibilityManagerWin()->MaybeCallNotifyWinEvent( 3180 manager()->ToBrowserAccessibilityManagerWin()->MaybeCallNotifyWinEvent(
3181 EVENT_OBJECT_LOCATIONCHANGE, unique_id_win()); 3181 EVENT_OBJECT_LOCATIONCHANGE, unique_id_win());
3182 } 3182 }
3183 3183
3184 BrowserAccessibilityWin* BrowserAccessibilityWin::NewReference() { 3184 BrowserAccessibilityWin* BrowserAccessibilityWin::NewReference() {
3185 AddRef(); 3185 AddRef();
3186 return this; 3186 return this;
3187 } 3187 }
3188 3188
3189 BrowserAccessibilityWin* BrowserAccessibilityWin::GetTargetFromChildID( 3189 BrowserAccessibilityWin* BrowserAccessibilityWin::GetTargetFromChildID(
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
3793 // The role should always be set. 3793 // The role should always be set.
3794 DCHECK(!role_name_.empty() || ia_role_); 3794 DCHECK(!role_name_.empty() || ia_role_);
3795 3795
3796 // If we didn't explicitly set the IAccessible2 role, make it the same 3796 // If we didn't explicitly set the IAccessible2 role, make it the same
3797 // as the MSAA role. 3797 // as the MSAA role.
3798 if (!ia2_role_) 3798 if (!ia2_role_)
3799 ia2_role_ = ia_role_; 3799 ia2_role_ = ia_role_;
3800 } 3800 }
3801 3801
3802 } // namespace content 3802 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698