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