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

Unified Diff: chrome/browser/cocoa/find_bar_cocoa_controller.mm

Issue 333007: [Mac] Remove flicker when typing in the findbar.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « chrome/browser/cocoa/find_bar_cocoa_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/find_bar_cocoa_controller.mm
===================================================================
--- chrome/browser/cocoa/find_bar_cocoa_controller.mm (revision 29830)
+++ chrome/browser/cocoa/find_bar_cocoa_controller.mm (working copy)
@@ -92,6 +92,8 @@
}
- (void)findPboardUpdated:(NSNotification*)notification {
+ if (suppressPboardUpdateActions_)
+ return;
[self prepopulateText:[[FindPasteboard sharedInstance] findText]
stopSearch:YES];
}
@@ -132,7 +134,9 @@
return;
NSString* findText = [findText_ stringValue];
+ suppressPboardUpdateActions_ = YES;
[[FindPasteboard sharedInstance] setFindText:findText];
+ suppressPboardUpdateActions_ = NO;
if ([findText length] > 0) {
tab_contents->StartFinding(base::SysNSStringToUTF16(findText), true, false);
« no previous file with comments | « chrome/browser/cocoa/find_bar_cocoa_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698