| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #import "chrome/browser/cocoa/find_bar_cocoa_controller.h" | 7 #import "chrome/browser/cocoa/find_bar_cocoa_controller.h" |
| 8 | 8 |
| 9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 FindBarBridge* findBarBridge_; // weak | 32 FindBarBridge* findBarBridge_; // weak |
| 33 | 33 |
| 34 scoped_nsobject<FocusTracker> focusTracker_; | 34 scoped_nsobject<FocusTracker> focusTracker_; |
| 35 | 35 |
| 36 // The currently-running animation. This is defined to be non-nil if an | 36 // The currently-running animation. This is defined to be non-nil if an |
| 37 // animation is running, and is always nil otherwise. The | 37 // animation is running, and is always nil otherwise. The |
| 38 // FindBarCocoaController should not be deallocated while an animation is | 38 // FindBarCocoaController should not be deallocated while an animation is |
| 39 // running (stopAnimation is currently called before the last tab in a | 39 // running (stopAnimation is currently called before the last tab in a |
| 40 // window is removed). | 40 // window is removed). |
| 41 scoped_nsobject<NSViewAnimation> currentAnimation_; | 41 scoped_nsobject<NSViewAnimation> currentAnimation_; |
| 42 |
| 43 // If YES, do nothing as a result of find pasteboard update notifications. |
| 44 BOOL suppressPboardUpdateActions_; |
| 42 }; | 45 }; |
| 43 | 46 |
| 44 // Initializes a new FindBarCocoaController. | 47 // Initializes a new FindBarCocoaController. |
| 45 - (id)init; | 48 - (id)init; |
| 46 | 49 |
| 47 - (void)setFindBarBridge:(FindBarBridge*)findBar; | 50 - (void)setFindBarBridge:(FindBarBridge*)findBar; |
| 48 | 51 |
| 49 - (IBAction)close:(id)sender; | 52 - (IBAction)close:(id)sender; |
| 50 | 53 |
| 51 - (IBAction)nextResult:(id)sender; | 54 - (IBAction)nextResult:(id)sender; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 63 - (void)setFocusAndSelection; | 66 - (void)setFocusAndSelection; |
| 64 - (void)restoreSavedFocus; | 67 - (void)restoreSavedFocus; |
| 65 - (void)setFindText:(NSString*)findText; | 68 - (void)setFindText:(NSString*)findText; |
| 66 | 69 |
| 67 - (void)clearResults:(const FindNotificationDetails&)results; | 70 - (void)clearResults:(const FindNotificationDetails&)results; |
| 68 - (void)updateUIForFindResult:(const FindNotificationDetails&)results | 71 - (void)updateUIForFindResult:(const FindNotificationDetails&)results |
| 69 withText:(const string16&)findText; | 72 withText:(const string16&)findText; |
| 70 - (BOOL)isFindBarVisible; | 73 - (BOOL)isFindBarVisible; |
| 71 | 74 |
| 72 @end | 75 @end |
| OLD | NEW |