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

Unified Diff: ios/chrome/browser/find_in_page/find_in_page_controller.h

Issue 2685393004: [ios] Hoists the FindInPageModel up into the controller. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/find_in_page/find_in_page_controller.h
diff --git a/ios/chrome/browser/find_in_page/find_in_page_controller.h b/ios/chrome/browser/find_in_page/find_in_page_controller.h
index d5d8c461482066c6d426c28f2d6657d572208774..93a2d5f78bf1d1db6988e3d3928a288c622ba1d5 100644
--- a/ios/chrome/browser/find_in_page/find_in_page_controller.h
+++ b/ios/chrome/browser/find_in_page/find_in_page_controller.h
@@ -26,13 +26,14 @@ extern NSString* const kFindBarTextFieldDidResignFirstResponderNotification;
@interface FindInPageController : NSObject
+// Find In Page model.
+@property(nonatomic, readonly, strong) FindInPageModel* findInPageModel;
+
// Designated initializer.
- (id)initWithWebState:(web::WebState*)webState
delegate:(id<FindInPageControllerDelegate>)delegate;
// Inject the find in page scripts into the web state.
- (void)initFindInPage;
-// Find In Page model. TODO(justincohen) consider using find_tab_helper.cc.
-- (FindInPageModel*)findInPageModel;
// Is Find In Page available right now (given the state of the WebState)?
- (BOOL)canFindInPage;
// Find |query| in page, update model with results of find. Calls

Powered by Google App Engine
This is Rietveld 408576698