1 // Copyright 2012 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 "ios/chrome/browser/find_in_page/find_in_page_model.h"
7 @implementation FindInPageModel
9 @synthesize enabled = enabled_;
10 @synthesize matches = matches_;
11 @synthesize currentIndex = currentIndex_;
12 @synthesize currentPoint = currentPoint_;
18 - (void)setEnabled:(BOOL)enabled {
22 currentPoint_ = CGPointZero;
25 - (void)updateQuery:(NSString*)query matches:(NSUInteger)matches {
27 text_.reset([query copy]);
32 - (void)updateIndex:(NSInteger)index atPoint:(CGPoint)point {
33 currentIndex_ = index;
34 currentPoint_ = point;