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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar/find_bar_text_field_cell.mm

Issue 16012017: Use a direct include of strings headers in chrome/browser/ui/cocoa/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/find_bar/find_bar_text_field_cell.h" 5 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field_cell.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h"
9 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_util.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
11 #include "grit/generated_resources.h" 11 #include "grit/generated_resources.h"
12 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
13 13
14 namespace { 14 namespace {
15 15
16 // How far to offset the keyword token into the field. 16 // How far to offset the keyword token into the field.
17 const NSInteger kResultsXOffset = 3; 17 const NSInteger kResultsXOffset = 3;
18 18
19 // How much width (beyond text) to add to the keyword token on each 19 // How much width (beyond text) to add to the keyword token on each
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 [resultsString_.get() drawInRect:infoFrame]; 111 [resultsString_.get() drawInRect:infoFrame];
112 } 112 }
113 113
114 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView*)controlView { 114 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView*)controlView {
115 if (resultsString_) 115 if (resultsString_)
116 [self drawResultsWithFrame:cellFrame inView:controlView]; 116 [self drawResultsWithFrame:cellFrame inView:controlView];
117 [super drawInteriorWithFrame:cellFrame inView:controlView]; 117 [super drawInteriorWithFrame:cellFrame inView:controlView];
118 } 118 }
119 119
120 @end 120 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698