| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 #include "public/web/WebPermissionClient.h" | 82 #include "public/web/WebPermissionClient.h" |
| 83 #include "public/web/WebPlugin.h" | 83 #include "public/web/WebPlugin.h" |
| 84 #include "public/web/WebPluginParams.h" | 84 #include "public/web/WebPluginParams.h" |
| 85 #include "public/web/WebPluginPlaceholder.h" | 85 #include "public/web/WebPluginPlaceholder.h" |
| 86 #include "public/web/WebSecurityOrigin.h" | 86 #include "public/web/WebSecurityOrigin.h" |
| 87 #include "public/web/WebTransitionElementData.h" | 87 #include "public/web/WebTransitionElementData.h" |
| 88 #include "public/web/WebViewClient.h" | 88 #include "public/web/WebViewClient.h" |
| 89 #include "web/PluginPlaceholderImpl.h" | 89 #include "web/PluginPlaceholderImpl.h" |
| 90 #include "web/SharedWorkerRepositoryClientImpl.h" | 90 #include "web/SharedWorkerRepositoryClientImpl.h" |
| 91 #include "web/WebDataSourceImpl.h" | 91 #include "web/WebDataSourceImpl.h" |
| 92 #include "web/WebDevToolsFrontendImpl.h" |
| 92 #include "web/WebLocalFrameImpl.h" | 93 #include "web/WebLocalFrameImpl.h" |
| 93 #include "web/WebPluginContainerImpl.h" | 94 #include "web/WebPluginContainerImpl.h" |
| 94 #include "web/WebPluginLoadObserver.h" | 95 #include "web/WebPluginLoadObserver.h" |
| 95 #include "web/WebViewImpl.h" | 96 #include "web/WebViewImpl.h" |
| 96 #include "wtf/StringExtras.h" | 97 #include "wtf/StringExtras.h" |
| 97 #include "wtf/text/CString.h" | 98 #include "wtf/text/CString.h" |
| 98 #include "wtf/text/WTFString.h" | 99 #include "wtf/text/WTFString.h" |
| 99 #include <v8.h> | 100 #include <v8.h> |
| 100 | 101 |
| 101 namespace blink { | 102 namespace blink { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 124 DeviceMotionController::from(*document); | 125 DeviceMotionController::from(*document); |
| 125 DeviceOrientationController::from(*document); | 126 DeviceOrientationController::from(*document); |
| 126 if (RuntimeEnabledFeatures::deviceLightEnabled()) | 127 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 127 DeviceLightController::from(*document); | 128 DeviceLightController::from(*document); |
| 128 NavigatorGamepad::from(*document); | 129 NavigatorGamepad::from(*document); |
| 129 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) | 130 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) |
| 130 NavigatorServiceWorker::from(*document); | 131 NavigatorServiceWorker::from(*document); |
| 131 DOMWindowStorageController::from(*document); | 132 DOMWindowStorageController::from(*document); |
| 132 } | 133 } |
| 133 } | 134 } |
| 135 // FIXME: when extensions go out of process, this whole concept stops workin
g. |
| 136 WebDevToolsFrontendImpl* devToolsFrontend = m_webFrame->top()->isWebLocalFra
me() ? toWebLocalFrameImpl(m_webFrame->top())->devToolsFrontend() : nullptr; |
| 137 if (devToolsFrontend) |
| 138 devToolsFrontend->didClearWindowObject(m_webFrame); |
| 134 } | 139 } |
| 135 | 140 |
| 136 void FrameLoaderClientImpl::documentElementAvailable() | 141 void FrameLoaderClientImpl::documentElementAvailable() |
| 137 { | 142 { |
| 138 if (m_webFrame->client()) | 143 if (m_webFrame->client()) |
| 139 m_webFrame->client()->didCreateDocumentElement(m_webFrame); | 144 m_webFrame->client()->didCreateDocumentElement(m_webFrame); |
| 140 } | 145 } |
| 141 | 146 |
| 142 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte
xt, int extensionGroup, int worldId) | 147 void FrameLoaderClientImpl::didCreateScriptContext(v8::Handle<v8::Context> conte
xt, int extensionGroup, int worldId) |
| 143 { | 148 { |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 | 937 |
| 933 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 938 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 934 { | 939 { |
| 935 if (m_webFrame->client()) { | 940 if (m_webFrame->client()) { |
| 936 m_webFrame->client()->suddenTerminationDisablerChanged( | 941 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 937 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 942 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 938 } | 943 } |
| 939 } | 944 } |
| 940 | 945 |
| 941 } // namespace blink | 946 } // namespace blink |
| OLD | NEW |