| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 LocalFrameClientImpl::~LocalFrameClientImpl() {} | 135 LocalFrameClientImpl::~LocalFrameClientImpl() {} |
| 136 | 136 |
| 137 DEFINE_TRACE(LocalFrameClientImpl) { | 137 DEFINE_TRACE(LocalFrameClientImpl) { |
| 138 visitor->trace(m_webFrame); | 138 visitor->trace(m_webFrame); |
| 139 LocalFrameClient::trace(visitor); | 139 LocalFrameClient::trace(visitor); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void LocalFrameClientImpl::didCreateNewDocument() { | 142 void LocalFrameClientImpl::didCreateNewDocument() { |
| 143 if (m_webFrame->client()) | 143 if (m_webFrame->client()) |
| 144 m_webFrame->client()->didCreateNewDocument(m_webFrame); | 144 m_webFrame->client()->didCreateNewDocument(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void LocalFrameClientImpl::dispatchDidClearWindowObjectInMainWorld() { | 147 void LocalFrameClientImpl::dispatchDidClearWindowObjectInMainWorld() { |
| 148 if (m_webFrame->client()) { | 148 if (m_webFrame->client()) { |
| 149 m_webFrame->client()->didClearWindowObject(m_webFrame); | 149 m_webFrame->client()->didClearWindowObject(m_webFrame); |
| 150 Document* document = m_webFrame->frame()->document(); | 150 Document* document = m_webFrame->frame()->document(); |
| 151 if (document) { | 151 if (document) { |
| 152 DeviceMotionController::from(*document); | 152 DeviceMotionController::from(*document); |
| 153 DeviceOrientationController::from(*document); | 153 DeviceOrientationController::from(*document); |
| 154 DeviceOrientationAbsoluteController::from(*document); | 154 DeviceOrientationAbsoluteController::from(*document); |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 if (m_webFrame->client()) | 1033 if (m_webFrame->client()) |
| 1034 m_webFrame->client()->setHasReceivedUserGesture(); | 1034 m_webFrame->client()->setHasReceivedUserGesture(); |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 void LocalFrameClientImpl::abortClientNavigation() { | 1037 void LocalFrameClientImpl::abortClientNavigation() { |
| 1038 if (m_webFrame->client()) | 1038 if (m_webFrame->client()) |
| 1039 m_webFrame->client()->abortClientNavigation(); | 1039 m_webFrame->client()->abortClientNavigation(); |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 } // namespace blink | 1042 } // namespace blink |
| OLD | NEW |