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

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

Issue 1925473002: Add verbose logging for native accessibility events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@load_complete
Patch Set: address all feedback Created 4 years, 7 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 | content/browser/accessibility/browser_accessibility_android.cc » ('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.h" 5 #include "content/browser/accessibility/browser_accessibility.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 if (descendant_result) 724 if (descendant_result)
725 return descendant_result; 725 return descendant_result;
726 if (child_result) 726 if (child_result)
727 return child_result; 727 return child_result;
728 728
729 return this; 729 return this;
730 } 730 }
731 731
732 void BrowserAccessibility::Destroy() { 732 void BrowserAccessibility::Destroy() {
733 // Allow the object to fire a TextRemoved notification. 733 // Allow the object to fire a TextRemoved notification.
734 manager_->NotifyAccessibilityEvent(ui::AX_EVENT_HIDE, this); 734 manager()->NotifyAccessibilityEvent(
735 BrowserAccessibilityEvent::FromTreeChange,
736 ui::AX_EVENT_HIDE,
737 this);
735 node_ = NULL; 738 node_ = NULL;
736 manager_ = NULL; 739 manager_ = NULL;
737 740
738 if (unique_id_) 741 if (unique_id_)
739 g_unique_id_map.Get().erase(unique_id_); 742 g_unique_id_map.Get().erase(unique_id_);
740 unique_id_ = 0; 743 unique_id_ = 0;
741 744
742 NativeReleaseReference(); 745 NativeReleaseReference();
743 } 746 }
744 747
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 break; 1174 break;
1172 1175
1173 manager = root->GetParent()->manager(); 1176 manager = root->GetParent()->manager();
1174 root = manager->GetRoot(); 1177 root = manager->GetRoot();
1175 } 1178 }
1176 1179
1177 return bounds; 1180 return bounds;
1178 } 1181 }
1179 1182
1180 } // namespace content 1183 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698