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

Side by Side Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 2101943004: content: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase/update Created 4 years, 5 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
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 <execinfo.h> 5 #include <execinfo.h>
6 #include <stddef.h> 6 #include <stddef.h>
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #import "content/browser/accessibility/browser_accessibility_cocoa.h" 9 #import "content/browser/accessibility/browser_accessibility_cocoa.h"
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 id end_marker = CreateTextMarker(end_object, end_offset); 148 id end_marker = CreateTextMarker(end_object, end_offset);
149 return (id)base::mac::CFTypeRefToNSObjectAutorelease( 149 return (id)base::mac::CFTypeRefToNSObjectAutorelease(
150 AXTextMarkerRangeCreate(kCFAllocatorDefault, start_marker, end_marker)); 150 AXTextMarkerRangeCreate(kCFAllocatorDefault, start_marker, end_marker));
151 } 151 }
152 152
153 bool GetTextMarkerData(AXTextMarkerRef text_marker, 153 bool GetTextMarkerData(AXTextMarkerRef text_marker,
154 BrowserAccessibility** object, 154 BrowserAccessibility** object,
155 int* offset) { 155 int* offset) {
156 DCHECK(text_marker); 156 DCHECK(text_marker);
157 DCHECK(object && offset); 157 DCHECK(object && offset);
158 auto marker_data = reinterpret_cast<const AXTextMarkerData*>( 158 const auto* marker_data = reinterpret_cast<const AXTextMarkerData*>(
159 AXTextMarkerGetBytePtr(text_marker)); 159 AXTextMarkerGetBytePtr(text_marker));
160 if (!marker_data) 160 if (!marker_data)
161 return false; 161 return false;
162 162
163 const BrowserAccessibilityManager* manager = 163 const BrowserAccessibilityManager* manager =
164 BrowserAccessibilityManager::FromID(marker_data->tree_id); 164 BrowserAccessibilityManager::FromID(marker_data->tree_id);
165 if (!manager) 165 if (!manager)
166 return false; 166 return false;
167 167
168 *object = manager->GetFromID(marker_data->node_id); 168 *object = manager->GetFromID(marker_data->node_id);
(...skipping 2546 matching lines...) Expand 10 before | Expand all | Expand 10 after
2715 if (![self instanceActive]) 2715 if (![self instanceActive])
2716 return [super hash]; 2716 return [super hash];
2717 return browserAccessibility_->GetId(); 2717 return browserAccessibility_->GetId();
2718 } 2718 }
2719 2719
2720 - (BOOL)accessibilityShouldUseUniqueId { 2720 - (BOOL)accessibilityShouldUseUniqueId {
2721 return YES; 2721 return YES;
2722 } 2722 }
2723 2723
2724 @end 2724 @end
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698