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