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 #ifndef IOS_CHROME_BROWSER_FIND_IN_PAGE_JS_FINDINPAGE_MANAGER_H_ | 5 #ifndef IOS_CHROME_BROWSER_FIND_IN_PAGE_JS_FINDINPAGE_MANAGER_H_ |
6 #define IOS_CHROME_BROWSER_FIND_IN_PAGE_JS_FINDINPAGE_MANAGER_H_ | 6 #define IOS_CHROME_BROWSER_FIND_IN_PAGE_JS_FINDINPAGE_MANAGER_H_ |
7 | 7 |
8 #include <CoreGraphics/CGBase.h> | 8 #include <CoreGraphics/CGBase.h> |
9 #include <CoreGraphics/CGGeometry.h> | 9 #include <CoreGraphics/CGGeometry.h> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... | |
25 @class FindInPageModel; | 25 @class FindInPageModel; |
26 | 26 |
27 // Manager for the injection of the Find In Page JavaScript. | 27 // Manager for the injection of the Find In Page JavaScript. |
28 @interface JsFindinpageManager : CRWJSInjectionManager { | 28 @interface JsFindinpageManager : CRWJSInjectionManager { |
29 @private | 29 @private |
30 // Model for find in page. | 30 // Model for find in page. |
31 base::scoped_nsobject<FindInPageModel> findInPageModel_; | 31 base::scoped_nsobject<FindInPageModel> findInPageModel_; |
32 } | 32 } |
33 | 33 |
34 // Find In Page model. TODO(justincohen) consider using find_tab_helper.cc. | 34 // Find In Page model. TODO(justincohen) consider using find_tab_helper.cc. |
35 @property(nonatomic, readonly) FindInPageModel* findInPageModel; | 35 @property(weak, nonatomic, readonly) FindInPageModel* findInPageModel; |
noyau (Ping after 24h)
2016/11/25 10:27:46
Same here.
stkhapugin
2016/11/25 11:23:04
Done.
| |
36 | 36 |
37 // Sets the width and height of the window. | 37 // Sets the width and height of the window. |
38 - (void)setWidth:(CGFloat)width height:(CGFloat)height; | 38 - (void)setWidth:(CGFloat)width height:(CGFloat)height; |
39 | 39 |
40 // Runs injected JavaScript to find |query| string. Calls |completionHandler| | 40 // Runs injected JavaScript to find |query| string. Calls |completionHandler| |
41 // with YES if the find operation completed, it is called with NO otherwise. | 41 // with YES if the find operation completed, it is called with NO otherwise. |
42 // If the find operation was successfiul the first match to scroll to is | 42 // If the find operation was successfiul the first match to scroll to is |
43 // also called with. If the |completionHandler| is called with NO, another | 43 // also called with. If the |completionHandler| is called with NO, another |
44 // call to |pumpWithCompletionHandler:| is required. |completionHandler| cannot | 44 // call to |pumpWithCompletionHandler:| is required. |completionHandler| cannot |
45 // be nil. | 45 // be nil. |
(...skipping 15 matching lines...) Expand all Loading... | |
61 // with the new scroll position passed in. The |completionHandler| can be nil. | 61 // with the new scroll position passed in. The |completionHandler| can be nil. |
62 - (void)previousMatchWithCompletionHandler:(void (^)(CGPoint))completionHandler; | 62 - (void)previousMatchWithCompletionHandler:(void (^)(CGPoint))completionHandler; |
63 | 63 |
64 // Stops find in page and calls |completionHandler| once find in page is | 64 // Stops find in page and calls |completionHandler| once find in page is |
65 // stopped. |completionHandler| cannot be nil. | 65 // stopped. |completionHandler| cannot be nil. |
66 - (void)disableWithCompletionHandler:(ProceduralBlock)completionHandler; | 66 - (void)disableWithCompletionHandler:(ProceduralBlock)completionHandler; |
67 | 67 |
68 @end | 68 @end |
69 | 69 |
70 #endif // IOS_CHROME_BROWSER_FIND_IN_PAGE_JS_FINDINPAGE_MANAGER_H_ | 70 #endif // IOS_CHROME_BROWSER_FIND_IN_PAGE_JS_FINDINPAGE_MANAGER_H_ |
OLD | NEW |