| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |