OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 bool shouldReplaceCurrentEntry) { | 611 bool shouldReplaceCurrentEntry) { |
612 if (!m_webFrame->client()) | 612 if (!m_webFrame->client()) |
613 return; | 613 return; |
614 DCHECK(m_webFrame->frame()->document()); | 614 DCHECK(m_webFrame->frame()->document()); |
615 Fullscreen::fullyExitFullscreen(*m_webFrame->frame()->document()); | 615 Fullscreen::fullyExitFullscreen(*m_webFrame->frame()->document()); |
616 m_webFrame->client()->loadURLExternally( | 616 m_webFrame->client()->loadURLExternally( |
617 WrappedResourceRequest(request), static_cast<WebNavigationPolicy>(policy), | 617 WrappedResourceRequest(request), static_cast<WebNavigationPolicy>(policy), |
618 suggestedName, shouldReplaceCurrentEntry); | 618 suggestedName, shouldReplaceCurrentEntry); |
619 } | 619 } |
620 | 620 |
| 621 void FrameLoaderClientImpl::loadErrorPage(int reason) { |
| 622 if (m_webFrame->client()) |
| 623 m_webFrame->client()->loadErrorPage(reason); |
| 624 } |
| 625 |
621 bool FrameLoaderClientImpl::navigateBackForward(int offset) const { | 626 bool FrameLoaderClientImpl::navigateBackForward(int offset) const { |
622 WebViewImpl* webview = m_webFrame->viewImpl(); | 627 WebViewImpl* webview = m_webFrame->viewImpl(); |
623 if (!webview->client()) | 628 if (!webview->client()) |
624 return false; | 629 return false; |
625 | 630 |
626 DCHECK(offset); | 631 DCHECK(offset); |
627 if (offset > webview->client()->historyForwardListCount()) | 632 if (offset > webview->client()->historyForwardListCount()) |
628 return false; | 633 return false; |
629 if (offset < -webview->client()->historyBackListCount()) | 634 if (offset < -webview->client()->historyBackListCount()) |
630 return false; | 635 return false; |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { | 996 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { |
992 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) | 997 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) |
993 ->devToolsAgentImpl(); | 998 ->devToolsAgentImpl(); |
994 } | 999 } |
995 | 1000 |
996 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 1001 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
997 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 1002 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
998 } | 1003 } |
999 | 1004 |
1000 } // namespace blink | 1005 } // namespace blink |
OLD | NEW |