| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 LocalFrameClient::Trace(visitor); | 140 LocalFrameClient::Trace(visitor); |
| 141 } | 141 } |
| 142 | 142 |
| 143 void LocalFrameClientImpl::DidCreateNewDocument() { | 143 void LocalFrameClientImpl::DidCreateNewDocument() { |
| 144 if (web_frame_->Client()) | 144 if (web_frame_->Client()) |
| 145 web_frame_->Client()->DidCreateNewDocument(web_frame_); | 145 web_frame_->Client()->DidCreateNewDocument(web_frame_); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void LocalFrameClientImpl::DispatchDidClearWindowObjectInMainWorld() { | 148 void LocalFrameClientImpl::DispatchDidClearWindowObjectInMainWorld() { |
| 149 if (web_frame_->Client()) { | 149 if (web_frame_->Client()) { |
| 150 web_frame_->Client()->DidClearWindowObject(web_frame_); | 150 web_frame_->Client()->DidClearWindowObject(); |
| 151 Document* document = web_frame_->GetFrame()->GetDocument(); | 151 Document* document = web_frame_->GetFrame()->GetDocument(); |
| 152 if (document) { | 152 if (document) { |
| 153 DeviceMotionController::From(*document); | 153 DeviceMotionController::From(*document); |
| 154 DeviceOrientationController::From(*document); | 154 DeviceOrientationController::From(*document); |
| 155 DeviceOrientationAbsoluteController::From(*document); | 155 DeviceOrientationAbsoluteController::From(*document); |
| 156 if (RuntimeEnabledFeatures::deviceLightEnabled()) | 156 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 157 DeviceLightController::From(*document); | 157 DeviceLightController::From(*document); |
| 158 NavigatorGamepad::From(*document); | 158 NavigatorGamepad::From(*document); |
| 159 NavigatorServiceWorker::From(*document); | 159 NavigatorServiceWorker::From(*document); |
| 160 DOMWindowStorageController::From(*document); | 160 DOMWindowStorageController::From(*document); |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 void LocalFrameClientImpl::AbortClientNavigation() { | 997 void LocalFrameClientImpl::AbortClientNavigation() { |
| 998 if (web_frame_->Client()) | 998 if (web_frame_->Client()) |
| 999 web_frame_->Client()->AbortClientNavigation(); | 999 web_frame_->Client()->AbortClientNavigation(); |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { | 1002 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { |
| 1003 return web_frame_->GetTextCheckerClient(); | 1003 return web_frame_->GetTextCheckerClient(); |
| 1004 } | 1004 } |
| 1005 | 1005 |
| 1006 } // namespace blink | 1006 } // namespace blink |
| OLD | NEW |