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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: rebase Created 3 years, 9 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 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h" 5 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/foundation_util.h" 10 #include "base/mac/foundation_util.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 - (BOOL)shouldDrawBezel { 190 - (BOOL)shouldDrawBezel {
191 return YES; 191 return YES;
192 } 192 }
193 193
194 - (CGFloat)lineHeight { 194 - (CGFloat)lineHeight {
195 return 17; 195 return 17;
196 } 196 }
197 197
198 - (void)clearTrackingArea { 198 - (void)clearTrackingArea {
199 for (auto& decoration : mouseTrackingDecorations_) 199 for (auto* decoration : mouseTrackingDecorations_)
200 decoration->RemoveTrackingArea(); 200 decoration->RemoveTrackingArea();
201 201
202 mouseTrackingDecorations_.clear(); 202 mouseTrackingDecorations_.clear();
203 } 203 }
204 204
205 - (void)clearDecorations { 205 - (void)clearDecorations {
206 leadingDecorations_.clear(); 206 leadingDecorations_.clear();
207 trailingDecorations_.clear(); 207 trailingDecorations_.clear();
208 [self clearTrackingArea]; 208 [self clearTrackingArea];
209 } 209 }
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 738
739 @end 739 @end
740 740
741 @implementation AutocompleteTextFieldCell (TestingAPI) 741 @implementation AutocompleteTextFieldCell (TestingAPI)
742 742
743 - (const std::vector<LocationBarDecoration*>&)mouseTrackingDecorations { 743 - (const std::vector<LocationBarDecoration*>&)mouseTrackingDecorations {
744 return mouseTrackingDecorations_; 744 return mouseTrackingDecorations_;
745 } 745 }
746 746
747 @end 747 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698