[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / find_bar / find_bar_text_field_cell.h
blob130009fedd8fb536b2ac5bca51bb0d94a7cd8a27
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #import <Cocoa/Cocoa.h>
7 #import "chrome/browser/ui/cocoa/styled_text_field_cell.h"
9 #include "base/mac/scoped_nsobject.h"
11 // FindBarTextFieldCell extends StyledTextFieldCell to provide support for a
12 // results label rooted at the right edge of the cell.
13 @interface FindBarTextFieldCell : StyledTextFieldCell {
14 @private
15 // Set if there is a results label to display on the right side of the cell.
16 base::scoped_nsobject<NSAttributedString> resultsString_;
19 // Sets the results label to the localized equivalent of "X of Y".
20 - (void)setActiveMatch:(NSInteger)current of:(NSInteger)total;
22 - (void)clearResults;
24 - (NSString*)resultsString;
26 @end