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

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

Issue 2524383002: [ObjC ARC] Converts ios/chrome/browser/find_in_page:find_in_page to ARC.Automatically generated A… (Closed)
Patch Set: Created 4 years 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698