| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 NavigationPolicy navigationPolicy, ShouldSendReferrer shouldSendReferrer) | 215 NavigationPolicy navigationPolicy, ShouldSendReferrer shouldSendReferrer) |
| 216 { | 216 { |
| 217 if (!m_webView->client()) | 217 if (!m_webView->client()) |
| 218 return 0; | 218 return 0; |
| 219 | 219 |
| 220 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli
cy); | 220 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli
cy); |
| 221 if (policy == WebNavigationPolicyIgnore) | 221 if (policy == WebNavigationPolicyIgnore) |
| 222 policy = getNavigationPolicy(); | 222 policy = getNavigationPolicy(); |
| 223 | 223 |
| 224 ASSERT(frame->document()); | 224 ASSERT(frame->document()); |
| 225 Fullscreen::from(*frame->document()).fullyExitFullscreen(); | 225 Fullscreen::fullyExitFullscreen(*frame->document()); |
| 226 | 226 |
| 227 WebViewImpl* newView = toWebViewImpl( | 227 WebViewImpl* newView = toWebViewImpl( |
| 228 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra
ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul
dSendReferrer == NeverSendReferrer)); | 228 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra
ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul
dSendReferrer == NeverSendReferrer)); |
| 229 if (!newView) | 229 if (!newView) |
| 230 return 0; | 230 return 0; |
| 231 return newView->page(); | 231 return newView->page(); |
| 232 } | 232 } |
| 233 | 233 |
| 234 static inline void updatePolicyForEvent(const WebInputEvent* inputEvent, Navigat
ionPolicy* policy) | 234 static inline void updatePolicyForEvent(const WebInputEvent* inputEvent, Navigat
ionPolicy* policy) |
| 235 { | 235 { |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); | 869 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); |
| 870 } | 870 } |
| 871 | 871 |
| 872 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 872 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
| 873 { | 873 { |
| 874 if (m_webView->autofillClient()) | 874 if (m_webView->autofillClient()) |
| 875 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 875 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
| 876 } | 876 } |
| 877 | 877 |
| 878 } // namespace blink | 878 } // namespace blink |
| OLD | NEW |