| 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 } | 954 } |
| 955 | 955 |
| 956 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) | 956 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) |
| 957 { | 957 { |
| 958 if (m_webFrame->client()) | 958 if (m_webFrame->client()) |
| 959 return m_webFrame->client()->allowWebGL(enabledPerSettings); | 959 return m_webFrame->client()->allowWebGL(enabledPerSettings); |
| 960 | 960 |
| 961 return enabledPerSettings; | 961 return enabledPerSettings; |
| 962 } | 962 } |
| 963 | 963 |
| 964 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas
on) | |
| 965 { | |
| 966 if (m_webFrame->client()) | |
| 967 m_webFrame->client()->didLoseWebGLContext(arbRobustnessContextLostReason
); | |
| 968 } | |
| 969 | |
| 970 void FrameLoaderClientImpl::dispatchWillInsertBody() | 964 void FrameLoaderClientImpl::dispatchWillInsertBody() |
| 971 { | 965 { |
| 972 if (m_webFrame->client()) | 966 if (m_webFrame->client()) |
| 973 m_webFrame->client()->willInsertBody(m_webFrame); | 967 m_webFrame->client()->willInsertBody(m_webFrame); |
| 974 | 968 |
| 975 if (m_webFrame->parent()) | 969 if (m_webFrame->parent()) |
| 976 return; | 970 return; |
| 977 | 971 |
| 978 if (m_webFrame->viewImpl()) | 972 if (m_webFrame->viewImpl()) |
| 979 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody(); | 973 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 | 1025 |
| 1032 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 1026 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 1033 { | 1027 { |
| 1034 if (m_webFrame->client()) { | 1028 if (m_webFrame->client()) { |
| 1035 m_webFrame->client()->suddenTerminationDisablerChanged( | 1029 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 1036 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 1030 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 1037 } | 1031 } |
| 1038 } | 1032 } |
| 1039 | 1033 |
| 1040 } // namespace blink | 1034 } // namespace blink |
| OLD | NEW |