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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 | 747 |
748 return enabledPerSettings; | 748 return enabledPerSettings; |
749 } | 749 } |
750 | 750 |
751 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas
on) | 751 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas
on) |
752 { | 752 { |
753 if (m_webFrame->client()) | 753 if (m_webFrame->client()) |
754 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); | 754 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); |
755 } | 755 } |
756 | 756 |
| 757 bool FrameLoaderClientImpl::allowWebGLDebugRendererInfo() |
| 758 { |
| 759 WebViewImpl* webview = m_webFrame->viewImpl(); |
| 760 if (webview && webview->permissionClient()) |
| 761 return webview->permissionClient()->allowWebGLDebugRendererInfo(m_webFra
me); |
| 762 return false; |
| 763 } |
| 764 |
757 void FrameLoaderClientImpl::dispatchWillInsertBody() | 765 void FrameLoaderClientImpl::dispatchWillInsertBody() |
758 { | 766 { |
759 if (m_webFrame->client()) | 767 if (m_webFrame->client()) |
760 m_webFrame->client()->willInsertBody(m_webFrame); | 768 m_webFrame->client()->willInsertBody(m_webFrame); |
761 } | 769 } |
762 | 770 |
763 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP
rovider(PassOwnPtr<WebServiceWorkerProviderClient> client) | 771 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP
rovider(PassOwnPtr<WebServiceWorkerProviderClient> client) |
764 { | 772 { |
765 if (!m_webFrame->client()) | 773 if (!m_webFrame->client()) |
766 return nullptr; | 774 return nullptr; |
767 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame
, client.leakPtr())); | 775 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame
, client.leakPtr())); |
768 } | 776 } |
769 | 777 |
770 void FrameLoaderClientImpl::didStopAllLoaders() | 778 void FrameLoaderClientImpl::didStopAllLoaders() |
771 { | 779 { |
772 if (m_webFrame->client()) | 780 if (m_webFrame->client()) |
773 m_webFrame->client()->didAbortLoading(m_webFrame); | 781 m_webFrame->client()->didAbortLoading(m_webFrame); |
774 } | 782 } |
775 | 783 |
776 } // namespace WebKit | 784 } // namespace WebKit |
OLD | NEW |