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

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

Issue 242010: [Mac] Fix depressed baseline in Omnibox. (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/cocoa/autocomplete_text_field_cell.h" 5 #import "chrome/browser/cocoa/autocomplete_text_field_cell.h"
6 6
7 #import "base/logging.h" 7 #import "base/logging.h"
8 #import "third_party/GTM/AppKit/GTMTheme.h" 8 #import "third_party/GTM/AppKit/GTMTheme.h"
9 9
10 namespace { 10 namespace {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView*)controlView { 323 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView*)controlView {
324 if (hintString_) { 324 if (hintString_) {
325 [self drawHintWithFrame:cellFrame inView:controlView]; 325 [self drawHintWithFrame:cellFrame inView:controlView];
326 } else if (keywordString_) { 326 } else if (keywordString_) {
327 [self drawKeywordWithFrame:cellFrame inView:controlView]; 327 [self drawKeywordWithFrame:cellFrame inView:controlView];
328 } else if (hintIcon_) { 328 } else if (hintIcon_) {
329 [self drawHintIconWithFrame:cellFrame inView:controlView]; 329 [self drawHintIconWithFrame:cellFrame inView:controlView];
330 } 330 }
331 331
332 [super drawInteriorWithFrame:[self textFrameForFrame:cellFrame] 332 [super drawInteriorWithFrame:cellFrame inView:controlView];
333 inView:controlView];
334 } 333 }
335 334
336 - (void)resetCursorRect:(NSRect)cellFrame inView:(NSView *)controlView { 335 - (void)resetCursorRect:(NSRect)cellFrame inView:(NSView *)controlView {
337 [super resetCursorRect:[self textCursorFrameForFrame:cellFrame] 336 [super resetCursorRect:[self textCursorFrameForFrame:cellFrame]
338 inView:controlView]; 337 inView:controlView];
339 } 338 }
340 339
341 @end 340 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698