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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 unsigned long identifier) | 375 unsigned long identifier) |
376 { | 376 { |
377 if (m_webFrame->client()) | 377 if (m_webFrame->client()) |
378 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); | 378 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); |
379 } | 379 } |
380 | 380 |
381 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad(bool documentIsEmpty) | 381 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad(bool documentIsEmpty) |
382 { | 382 { |
383 if (m_webFrame->client()) | 383 if (m_webFrame->client()) |
384 m_webFrame->client()->didFinishDocumentLoad(m_webFrame, documentIsEmpty)
; | 384 m_webFrame->client()->didFinishDocumentLoad(m_webFrame, documentIsEmpty)
; |
| 385 if (WebViewImpl* webview = m_webFrame->viewImpl()) |
| 386 webview->didFinishDocumentLoad(m_webFrame); |
385 } | 387 } |
386 | 388 |
387 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache(const Resourc
eRequest& request, const ResourceResponse& response) | 389 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache(const Resourc
eRequest& request, const ResourceResponse& response) |
388 { | 390 { |
389 if (m_webFrame->client()) | 391 if (m_webFrame->client()) |
390 m_webFrame->client()->didLoadResourceFromMemoryCache(m_webFrame, Wrapped
ResourceRequest(request), WrappedResourceResponse(response)); | 392 m_webFrame->client()->didLoadResourceFromMemoryCache(m_webFrame, Wrapped
ResourceRequest(request), WrappedResourceResponse(response)); |
391 } | 393 } |
392 | 394 |
393 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents() | 395 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents() |
394 { | 396 { |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 | 976 |
975 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 977 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
976 { | 978 { |
977 if (m_webFrame->client()) { | 979 if (m_webFrame->client()) { |
978 m_webFrame->client()->suddenTerminationDisablerChanged( | 980 m_webFrame->client()->suddenTerminationDisablerChanged( |
979 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 981 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
980 } | 982 } |
981 } | 983 } |
982 | 984 |
983 } // namespace blink | 985 } // namespace blink |
OLD | NEW |