summaryrefslogtreecommitdiffstats
path: root/webkit/api
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 20:07:25 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 20:07:25 +0000
commite5098cd07ec6bd839e5a4138c4c82863671df4df (patch)
treeaa5b5104bafedb1a449f8d61360ce5eb853cebbd /webkit/api
parentb3b01ab4ee312e566081c6bd6dce1a3ac020a691 (diff)
downloadchromium_src-e5098cd07ec6bd839e5a4138c4c82863671df4df.zip
chromium_src-e5098cd07ec6bd839e5a4138c4c82863671df4df.tar.gz
chromium_src-e5098cd07ec6bd839e5a4138c4c82863671df4df.tar.bz2
Add an optional WebFrame parameter to WebView::findFrameByName.
This parameter is used to support _self and other names that need to be evaluated relative to a subframe. R=jam BUG=23009 TEST=none Review URL: http://codereview.chromium.org/257005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api')
-rw-r--r--webkit/api/public/WebView.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/api/public/WebView.h b/webkit/api/public/WebView.h
index 10d07c4..b91e351 100644
--- a/webkit/api/public/WebView.h
+++ b/webkit/api/public/WebView.h
@@ -75,8 +75,11 @@ namespace WebKit {
// Returns the frame identified by the given name. This method
// supports pseudo-names like _self, _top, and _blank. It traverses
// the entire frame tree containing this tree looking for a frame that
- // matches the given name.
- virtual WebFrame* findFrameByName(const WebString& name) = 0;
+ // matches the given name. If the optional relativeToFrame parameter
+ // is specified, then the search begins with the given frame and its
+ // children.
+ virtual WebFrame* findFrameByName(
+ const WebString& name, WebFrame* relativeToFrame = 0) = 0;
// Focus ---------------------------------------------------------------