diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 05:10:22 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 05:10:22 +0000 |
commit | 65b95cd72cea12a94439e8ef3cab0a0962e4aa3c (patch) | |
tree | 6da1730476a51c9346bb89fd3d8599c511056c6b /chrome | |
parent | aef03130359ef824153b4ed088622460bbccdb0f (diff) | |
download | chromium_src-65b95cd72cea12a94439e8ef3cab0a0962e4aa3c.zip chromium_src-65b95cd72cea12a94439e8ef3cab0a0962e4aa3c.tar.gz chromium_src-65b95cd72cea12a94439e8ef3cab0a0962e4aa3c.tar.bz2 |
Print the element path in TestWebViewDelegate::decidePolicyForNavigation()
to follow WebKit r42740.
- Add a WebNode parameter to WebViewDelegate::decidePolicyForNavigation()
TestWebViewDelegate prints the path of the node. RenderView ignores this parameter.
- Fix a bug of WebNode assignment.
BUG=11000
TEST=This change enables 3 layout tests.
Review URL: http://codereview.chromium.org/267003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28527 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/render_view.cc | 2 | ||||
-rw-r--r-- | chrome/renderer/render_view.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index de7a051..4a5d2d4 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -1811,7 +1811,7 @@ void RenderView::loadURLExternally( WebNavigationPolicy RenderView::decidePolicyForNavigation( WebFrame* frame, const WebURLRequest& request, WebNavigationType type, - WebNavigationPolicy default_policy, bool is_redirect) { + const WebNode&, WebNavigationPolicy default_policy, bool is_redirect) { // Webkit is asking whether to navigate to a new URL. // This is fine normally, except if we're showing UI from one security // context and they're trying to navigate to a different context. diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index babe495..10822a5 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -295,7 +295,7 @@ class RenderView : public RenderWidget, WebKit::WebNavigationPolicy policy); virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, - WebKit::WebNavigationType type, + WebKit::WebNavigationType type, const WebKit::WebNode&, WebKit::WebNavigationPolicy default_policy, bool is_redirect); virtual void willSubmitForm(WebKit::WebFrame* frame, const WebKit::WebForm& form); |