summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.h
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-26 21:47:20 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-26 21:47:20 +0000
commit65134c43c3c181b874ea1c19a9f7bbcd82f51c6f (patch)
treef69374cec217dafb46b70cf68cef2cd8c4cc0ad4 /webkit/glue/webframe_impl.h
parent1bbe184ba49c0ac30d193777a16331b6baa4f104 (diff)
downloadchromium_src-65134c43c3c181b874ea1c19a9f7bbcd82f51c6f.zip
chromium_src-65134c43c3c181b874ea1c19a9f7bbcd82f51c6f.tar.gz
chromium_src-65134c43c3c181b874ea1c19a9f7bbcd82f51c6f.tar.bz2
Fix bug 455: Active match in Find is not selected and links are not focused after you close the Find box.
Review URL: http://codereview.chromium.org/4283 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.h')
-rw-r--r--webkit/glue/webframe_impl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/webkit/glue/webframe_impl.h b/webkit/glue/webframe_impl.h
index a9d1fc4..dfca6e3 100644
--- a/webkit/glue/webframe_impl.h
+++ b/webkit/glue/webframe_impl.h
@@ -124,7 +124,7 @@ class WebFrameImpl : public WebFrame {
gfx::Rect* selection_rect);
virtual bool FindNext(const FindInPageRequest& request,
bool wrap_within_frame);
- virtual void StopFinding();
+ virtual void StopFinding(bool clear_selection);
virtual void ScopeStringMatches(FindInPageRequest request, bool reset);
virtual void CancelPendingScopingEffort();
virtual void ResetMatchCount();
@@ -251,6 +251,14 @@ class WebFrameImpl : public WebFrame {
return active_tickmark_;
}
+ // When a Find operation ends, we want to set the selection to what was active
+ // and set focus to the first focusable node we find (starting with the first
+ // node in the matched range and going up the inheritance chain). If we find
+ // nothing to focus we focus the first focusable node in the range. This
+ // allows us to set focus to a link (when we find text inside a link), which
+ // allows us to navigate by pressing Enter after closing the Find box.
+ void SetFindEndstateFocusAndSelection();
+
// Sets whether the WebFrameImpl allows its document to be scrolled.
// If the parameter is true, allow the document to be scrolled.
// Otherwise, disallow scrolling