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

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

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/text_input/candidate_window.cc ('k') | chrome/browser/cocoa/bookmark_bar_toolbar_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698