OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cocoa/autocomplete_text_field_cell.h" | 5 #import "chrome/browser/cocoa/autocomplete_text_field_cell.h" |
6 | 6 |
7 #include "app/gfx/font.h" | |
8 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
9 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "gfx/font.h" |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 const CGFloat kBaselineAdjust = 2.0; | 13 const CGFloat kBaselineAdjust = 2.0; |
14 | 14 |
15 // How far to offset the keyword token into the field. | 15 // How far to offset the keyword token into the field. |
16 const NSInteger kKeywordXOffset = 3; | 16 const NSInteger kKeywordXOffset = 3; |
17 | 17 |
18 // How much width (beyond text) to add to the keyword token on each | 18 // How much width (beyond text) to add to the keyword token on each |
19 // side. | 19 // side. |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 [AutocompleteTextFieldIcon iconWithRect:blockedContentFrame | 449 [AutocompleteTextFieldIcon iconWithRect:blockedContentFrame |
450 view:*it]]; | 450 view:*it]]; |
451 iconFrame.size.width -= NSMaxX(iconFrame) - NSMinX(blockedContentFrame); | 451 iconFrame.size.width -= NSMaxX(iconFrame) - NSMinX(blockedContentFrame); |
452 } | 452 } |
453 } | 453 } |
454 } | 454 } |
455 return result; | 455 return result; |
456 } | 456 } |
457 | 457 |
458 @end | 458 @end |
OLD | NEW |