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

Unified Diff: chrome/browser/find_bar_controller.h

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 | « chrome/browser/cocoa/find_bar_cocoa_controller.mm ('k') | chrome/browser/find_bar_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/find_bar_controller.h
===================================================================
--- chrome/browser/find_bar_controller.h (revision 41087)
+++ chrome/browser/find_bar_controller.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -15,6 +15,13 @@
class FindBarController : public NotificationObserver {
public:
+ // An enum listing the possible actions to take on a find-in-page selection.
+ enum SelectionAction {
+ kKeepSelection, // Translate the find selection into a normal selection.
+ kClearSelection, // Clear the find selection.
+ kActivateSelection // Focus and click the selected node (for links).
+ };
+
// FindBar takes ownership of |find_bar_view|.
explicit FindBarController(FindBar* find_bar);
@@ -24,7 +31,7 @@
void Show();
// Ends the current session.
- void EndFindSession();
+ void EndFindSession(SelectionAction action);
// Accessor for the attached TabContents.
TabContents* tab_contents() const { return tab_contents_; }
« no previous file with comments | « chrome/browser/cocoa/find_bar_cocoa_controller.mm ('k') | chrome/browser/find_bar_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698