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_controller.h" | 5 #import "ios/chrome/browser/find_in_page/find_in_page_controller.h" |
6 | 6 |
7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 #import <cmath> | 8 #import <cmath> |
9 | 9 |
10 #include "base/ios/ios_util.h" | 10 #include "base/ios/ios_util.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 - (void)findBarTextFieldDidResignFirstResponder:(NSNotification*)note; | 43 - (void)findBarTextFieldDidResignFirstResponder:(NSNotification*)note; |
44 // Keyboard listeners. | 44 // Keyboard listeners. |
45 - (void)keyboardDidShow:(NSNotification*)note; | 45 - (void)keyboardDidShow:(NSNotification*)note; |
46 - (void)keyboardWillHide:(NSNotification*)note; | 46 - (void)keyboardWillHide:(NSNotification*)note; |
47 // Constantly injects the find string in page until | 47 // Constantly injects the find string in page until |
48 // |disableFindInPageWithCompletionHandler:| is called or the find operation is | 48 // |disableFindInPageWithCompletionHandler:| is called or the find operation is |
49 // complete. Calls |completionHandler| if the find operation is complete. | 49 // complete. Calls |completionHandler| if the find operation is complete. |
50 // |completionHandler| can be nil. | 50 // |completionHandler| can be nil. |
51 - (void)startPumpingWithCompletionHandler:(ProceduralBlock)completionHandler; | 51 - (void)startPumpingWithCompletionHandler:(ProceduralBlock)completionHandler; |
52 // Gives find in page more time to complete. Calls |completionHandler| with | 52 // Gives find in page more time to complete. Calls |completionHandler| with |
53 // a BOOL indicating if the find operation was successfull. |completionHandler| | 53 // a BOOL indicating if the find operation was successful. |completionHandler| |
54 // can be nil. | 54 // can be nil. |
55 - (void)pumpFindStringInPageWithCompletionHandler: | 55 - (void)pumpFindStringInPageWithCompletionHandler: |
56 (void (^)(BOOL))completionHandler; | 56 (void (^)(BOOL))completionHandler; |
57 // Processes the result of a single find in page pump. Calls |completionHandler| | 57 // Processes the result of a single find in page pump. Calls |completionHandler| |
58 // if pumping is done. Re-pumps if necessary. | 58 // if pumping is done. Re-pumps if necessary. |
59 - (void)processPumpResult:(BOOL)finished | 59 - (void)processPumpResult:(BOOL)finished |
60 scrollPoint:(CGPoint)scrollPoint | 60 scrollPoint:(CGPoint)scrollPoint |
61 completionHandler:(ProceduralBlock)completionHandler; | 61 completionHandler:(ProceduralBlock)completionHandler; |
62 // Prevent scrolling past the end of the page. | 62 // Prevent scrolling past the end of the page. |
63 - (CGPoint)limitOverscroll:(CRWWebViewScrollViewProxy*)scrollViewProxy | 63 - (CGPoint)limitOverscroll:(CRWWebViewScrollViewProxy*)scrollViewProxy |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 - (BOOL)canReleaseDOMLock { | 370 - (BOOL)canReleaseDOMLock { |
371 return NO; | 371 return NO; |
372 } | 372 } |
373 | 373 |
374 - (void)releaseDOMLockWithCompletionHandler:(ProceduralBlock)completionHandler { | 374 - (void)releaseDOMLockWithCompletionHandler:(ProceduralBlock)completionHandler { |
375 NOTREACHED(); | 375 NOTREACHED(); |
376 } | 376 } |
377 | 377 |
378 @end | 378 @end |
OLD | NEW |