| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 if (m_webFrame->client()) | 164 if (m_webFrame->client()) |
| 165 m_webFrame->client()->didChangeScrollOffset(m_webFrame); | 165 m_webFrame->client()->didChangeScrollOffset(m_webFrame); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void FrameLoaderClientImpl::didUpdateCurrentHistoryItem() | 168 void FrameLoaderClientImpl::didUpdateCurrentHistoryItem() |
| 169 { | 169 { |
| 170 if (m_webFrame->client()) | 170 if (m_webFrame->client()) |
| 171 m_webFrame->client()->didUpdateCurrentHistoryItem(m_webFrame); | 171 m_webFrame->client()->didUpdateCurrentHistoryItem(m_webFrame); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void FrameLoaderClientImpl::didRemoveAllPendingStylesheet() |
| 175 { |
| 176 WebViewImpl* webview = m_webFrame->viewImpl(); |
| 177 if (webview) |
| 178 webview->didRemoveAllPendingStylesheet(m_webFrame); |
| 179 } |
| 180 |
| 174 bool FrameLoaderClientImpl::allowScript(bool enabledPerSettings) | 181 bool FrameLoaderClientImpl::allowScript(bool enabledPerSettings) |
| 175 { | 182 { |
| 176 if (m_webFrame->permissionClient()) | 183 if (m_webFrame->permissionClient()) |
| 177 return m_webFrame->permissionClient()->allowScript(enabledPerSettings); | 184 return m_webFrame->permissionClient()->allowScript(enabledPerSettings); |
| 178 | 185 |
| 179 return enabledPerSettings; | 186 return enabledPerSettings; |
| 180 } | 187 } |
| 181 | 188 |
| 182 bool FrameLoaderClientImpl::allowScriptFromSource(bool enabledPerSettings, const
KURL& scriptURL) | 189 bool FrameLoaderClientImpl::allowScriptFromSource(bool enabledPerSettings, const
KURL& scriptURL) |
| 183 { | 190 { |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 m_webFrame->client()->didAbortLoading(m_webFrame); | 829 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 823 } | 830 } |
| 824 | 831 |
| 825 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 832 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 826 { | 833 { |
| 827 if (m_webFrame->client()) | 834 if (m_webFrame->client()) |
| 828 m_webFrame->client()->didChangeManifest(m_webFrame); | 835 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 829 } | 836 } |
| 830 | 837 |
| 831 } // namespace blink | 838 } // namespace blink |
| OLD | NEW |