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

Side by Side Diff: ios/chrome/browser/find_in_page/find_in_page_model.h

Issue 1023813003: [iOS] Upstream ios/chrome/browser/find_in_page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstreamAutofill
Patch Set: Created 5 years, 9 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
OLDNEW
(Empty)
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.
4
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_
7
8 #import <UIKit/UIKit.h>
9 #include "base/mac/scoped_nsobject.h"
10
11 // This is a simplified version of find_tab_helper.cc.
12 @interface FindInPageModel : NSObject {
13 @private
14 // Should find in page be displayed.
15 BOOL enabled_;
16 // The current search string.
17 base::scoped_nsobject<NSString> text_;
18 // The number of matches for |text_|
19 NSUInteger matches_;
20 // The currently higlighted index.
21 NSUInteger currentIndex_;
22 // The content offset needed to display the |currentIndex_| match.
23 CGPoint currentPoint_;
24 }
25
26 @property(nonatomic, readwrite, assign) BOOL enabled;
27 @property(nonatomic, readonly) NSString* text;
28 @property(nonatomic, readonly) NSUInteger matches;
29 @property(nonatomic, readonly) NSUInteger currentIndex;
30 @property(nonatomic, readonly) CGPoint currentPoint;
31
32 // Update the query string and the number of matches.
33 - (void)updateQuery:(NSString*)query matches:(NSUInteger)matches;
34 // Update the current match index and its found position.
35 - (void)updateIndex:(NSInteger)index atPoint:(CGPoint)point;
36
37 @end
38
39 #endif // IOS_CHROME_BROWSER_FIND_IN_PAGE_FIND_IN_PAGE_MODEL_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/find_in_page/find_in_page_controller.mm ('k') | ios/chrome/browser/find_in_page/find_in_page_model.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698