| 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 | 446 |
| 447 void FrameLoaderClientImpl::dispatchDidFirstVisuallyNonEmptyLayout() | 447 void FrameLoaderClientImpl::dispatchDidFirstVisuallyNonEmptyLayout() |
| 448 { | 448 { |
| 449 if (m_webFrame->client()) | 449 if (m_webFrame->client()) |
| 450 m_webFrame->client()->didFirstVisuallyNonEmptyLayout(m_webFrame); | 450 m_webFrame->client()->didFirstVisuallyNonEmptyLayout(m_webFrame); |
| 451 } | 451 } |
| 452 | 452 |
| 453 void FrameLoaderClientImpl::dispatchDidChangeBrandColor() | 453 void FrameLoaderClientImpl::dispatchDidChangeBrandColor() |
| 454 { | 454 { |
| 455 if (m_webFrame->client()) | 455 if (m_webFrame->client()) |
| 456 m_webFrame->client()->didChangeBrandColor(m_webFrame); | 456 m_webFrame->client()->didChangeBrandColor(); |
| 457 } | 457 } |
| 458 | 458 |
| 459 NavigationPolicy FrameLoaderClientImpl::decidePolicyForNavigation(const Resource
Request& request, DocumentLoader* loader, NavigationPolicy policy) | 459 NavigationPolicy FrameLoaderClientImpl::decidePolicyForNavigation(const Resource
Request& request, DocumentLoader* loader, NavigationPolicy policy) |
| 460 { | 460 { |
| 461 if (!m_webFrame->client()) | 461 if (!m_webFrame->client()) |
| 462 return NavigationPolicyIgnore; | 462 return NavigationPolicyIgnore; |
| 463 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader(loader); | 463 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader(loader); |
| 464 WebNavigationPolicy webPolicy = m_webFrame->client()->decidePolicyForNavigat
ion(m_webFrame, ds->extraData(), WrappedResourceRequest(request), | 464 WebNavigationPolicy webPolicy = m_webFrame->client()->decidePolicyForNavigat
ion(m_webFrame, ds->extraData(), WrappedResourceRequest(request), |
| 465 ds->navigationType(), static_cast<WebNavigationPolicy>(policy), ds->isRe
direct()); | 465 ds->navigationType(), static_cast<WebNavigationPolicy>(policy), ds->isRe
direct()); |
| 466 return static_cast<NavigationPolicy>(webPolicy); | 466 return static_cast<NavigationPolicy>(webPolicy); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 m_webFrame->client()->didAbortLoading(m_webFrame); | 807 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 808 } | 808 } |
| 809 | 809 |
| 810 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 810 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 811 { | 811 { |
| 812 if (m_webFrame->client()) | 812 if (m_webFrame->client()) |
| 813 m_webFrame->client()->didChangeManifest(m_webFrame); | 813 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 814 } | 814 } |
| 815 | 815 |
| 816 } // namespace blink | 816 } // namespace blink |
| OLD | NEW |