Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / find_in_page / find_in_page_model.h
blobdedb5f42273ac7488f5e8d533a9c83be8e1ba058
1 // Copyright 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 #ifndef IOS_CHROME_BROWSER_FIND_IN_PAGE_FIND_IN_PAGE_MODEL_H_
6 #define IOS_CHROME_BROWSER_FIND_IN_PAGE_FIND_IN_PAGE_MODEL_H_
8 #include <CoreGraphics/CoreGraphics.h>
9 #import <Foundation/Foundation.h>
11 // This is a simplified version of find_tab_helper.cc.
12 @interface FindInPageModel : NSObject
14 // Should find in page be displayed.
15 @property(nonatomic, assign) BOOL enabled;
17 // The current search string.
18 @property(nonatomic, readonly) NSString* text;
20 // The number of matches for |text|.
21 @property(nonatomic, readonly) NSUInteger matches;
23 // The currently higlighted index.
24 @property(nonatomic, readonly) NSUInteger currentIndex;
26 // The content offset needed to display the |currentIndex| match.
27 @property(nonatomic, readonly) CGPoint currentPoint;
29 // Update the query string and the number of matches.
30 - (void)updateQuery:(NSString*)query matches:(NSUInteger)matches;
31 // Update the current match index and its found position.
32 - (void)updateIndex:(NSInteger)index atPoint:(CGPoint)point;
34 @end
36 #endif // IOS_CHROME_BROWSER_FIND_IN_PAGE_FIND_IN_PAGE_MODEL_H_