| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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 "ios/chrome/browser/find_in_page/find_in_page_model.h" | 5 #import "ios/chrome/browser/find_in_page/find_in_page_model.h" |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 | 8 |
| 9 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 10 #error "This file requires ARC support." |
| 11 #endif |
| 12 |
| 9 @implementation FindInPageModel { | 13 @implementation FindInPageModel { |
| 10 base::scoped_nsobject<NSString> _text; | 14 base::scoped_nsobject<NSString> _text; |
| 11 } | 15 } |
| 12 | 16 |
| 13 @synthesize enabled = _enabled; | 17 @synthesize enabled = _enabled; |
| 14 @synthesize matches = _matches; | 18 @synthesize matches = _matches; |
| 15 @synthesize currentIndex = _currentIndex; | 19 @synthesize currentIndex = _currentIndex; |
| 16 @synthesize currentPoint = _currentPoint; | 20 @synthesize currentPoint = _currentPoint; |
| 17 | 21 |
| 18 - (NSString*)text { | 22 - (NSString*)text { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 _matches = matches; | 36 _matches = matches; |
| 33 _currentIndex = 0; | 37 _currentIndex = 0; |
| 34 } | 38 } |
| 35 | 39 |
| 36 - (void)updateIndex:(NSInteger)index atPoint:(CGPoint)point { | 40 - (void)updateIndex:(NSInteger)index atPoint:(CGPoint)point { |
| 37 _currentIndex = index; | 41 _currentIndex = index; |
| 38 _currentPoint = point; | 42 _currentPoint = point; |
| 39 } | 43 } |
| 40 | 44 |
| 41 @end | 45 @end |
| OLD | NEW |