| 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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 } | 966 } |
| 967 | 967 |
| 968 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) | 968 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) |
| 969 { | 969 { |
| 970 if (m_webFrame->client()) | 970 if (m_webFrame->client()) |
| 971 return m_webFrame->client()->allowWebGL(enabledPerSettings); | 971 return m_webFrame->client()->allowWebGL(enabledPerSettings); |
| 972 | 972 |
| 973 return enabledPerSettings; | 973 return enabledPerSettings; |
| 974 } | 974 } |
| 975 | 975 |
| 976 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas
on) | |
| 977 { | |
| 978 if (m_webFrame->client()) | |
| 979 m_webFrame->client()->didLoseWebGLContext(arbRobustnessContextLostReason
); | |
| 980 } | |
| 981 | |
| 982 void FrameLoaderClientImpl::dispatchWillInsertBody() | 976 void FrameLoaderClientImpl::dispatchWillInsertBody() |
| 983 { | 977 { |
| 984 if (m_webFrame->client()) | 978 if (m_webFrame->client()) |
| 985 m_webFrame->client()->willInsertBody(m_webFrame); | 979 m_webFrame->client()->willInsertBody(m_webFrame); |
| 986 | 980 |
| 987 if (m_webFrame->parent()) | 981 if (m_webFrame->parent()) |
| 988 return; | 982 return; |
| 989 | 983 |
| 990 if (m_webFrame->viewImpl()) | 984 if (m_webFrame->viewImpl()) |
| 991 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody(); | 985 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 return nullptr; | 1049 return nullptr; |
| 1056 return m_webFrame->client()->frameBlameContext(); | 1050 return m_webFrame->client()->frameBlameContext(); |
| 1057 } | 1051 } |
| 1058 | 1052 |
| 1059 LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle
ment* owner) | 1053 LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle
ment* owner) |
| 1060 { | 1054 { |
| 1061 return ServiceWorkerLinkResource::create(owner); | 1055 return ServiceWorkerLinkResource::create(owner); |
| 1062 } | 1056 } |
| 1063 | 1057 |
| 1064 } // namespace blink | 1058 } // namespace blink |
| OLD | NEW |