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

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

Issue 660137: Allow users to close the find session and activate the current link via ctrl-... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « no previous file | chrome/browser/find_bar_controller.h » ('j') | 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 41087)
+++ chrome/browser/cocoa/find_bar_cocoa_controller.mm (working copy)
@@ -76,7 +76,8 @@
- (IBAction)close:(id)sender {
if (findBarBridge_)
- findBarBridge_->GetFindBarController()->EndFindSession();
+ findBarBridge_->GetFindBarController()->EndFindSession(
+ FindBarController::kKeepSelection);
}
- (IBAction)previousResult:(id)sender {
@@ -135,7 +136,7 @@
tab_contents->StartFinding(base::SysNSStringToUTF16(findText), true, false);
} else {
// The textbox is empty so we reset.
- tab_contents->StopFinding(true); // true = clear selection on page.
+ tab_contents->StopFinding(FindBarController::kClearSelection);
[self updateUIForFindResult:tab_contents->find_result()
withText:string16()];
}
@@ -356,7 +357,7 @@
TabContents* contents =
findBarBridge_->GetFindBarController()->tab_contents();
if (contents) {
- contents->StopFinding(true);
+ contents->StopFinding(FindBarController::kClearSelection);
findBarBridge_->ClearResults(contents->find_result());
}
}
« no previous file with comments | « no previous file | chrome/browser/find_bar_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698