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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 if (m_webFrame->permissionClient()) | 227 if (m_webFrame->permissionClient()) |
228 m_webFrame->permissionClient()->didNotAllowPlugins(m_webFrame); | 228 m_webFrame->permissionClient()->didNotAllowPlugins(m_webFrame); |
229 | 229 |
230 } | 230 } |
231 | 231 |
232 bool FrameLoaderClientImpl::hasWebView() const | 232 bool FrameLoaderClientImpl::hasWebView() const |
233 { | 233 { |
234 return m_webFrame->viewImpl(); | 234 return m_webFrame->viewImpl(); |
235 } | 235 } |
236 | 236 |
| 237 Frame* FrameLoaderClientImpl::parent() const |
| 238 { |
| 239 WebFrameImpl* frame = toWebFrameImpl(m_webFrame->parent()); |
| 240 return frame ? frame->frame() : 0; |
| 241 } |
| 242 |
| 243 Frame* FrameLoaderClientImpl::top() const |
| 244 { |
| 245 WebFrameImpl* frame = toWebFrameImpl(m_webFrame->top()); |
| 246 return frame ? frame->frame() : 0; |
| 247 } |
| 248 |
| 249 Frame* FrameLoaderClientImpl::previousSibling() const |
| 250 { |
| 251 WebFrameImpl* frame = toWebFrameImpl(m_webFrame->previousSibling()); |
| 252 return frame ? frame->frame() : 0; |
| 253 } |
| 254 |
| 255 Frame* FrameLoaderClientImpl::nextSibling() const |
| 256 { |
| 257 WebFrameImpl* frame = toWebFrameImpl(m_webFrame->nextSibling()); |
| 258 return frame ? frame->frame() : 0; |
| 259 } |
| 260 |
| 261 Frame* FrameLoaderClientImpl::firstChild() const |
| 262 { |
| 263 WebFrameImpl* frame = toWebFrameImpl(m_webFrame->firstChild()); |
| 264 return frame ? frame->frame() : 0; |
| 265 } |
| 266 |
| 267 Frame* FrameLoaderClientImpl::lastChild() const |
| 268 { |
| 269 WebFrameImpl* frame = toWebFrameImpl(m_webFrame->lastChild()); |
| 270 return frame ? frame->frame() : 0; |
| 271 } |
| 272 |
237 void FrameLoaderClientImpl::detachedFromParent() | 273 void FrameLoaderClientImpl::detachedFromParent() |
238 { | 274 { |
239 // Alert the client that the frame is being detached. This is the last | 275 // Alert the client that the frame is being detached. This is the last |
240 // chance we have to communicate with the client. | 276 // chance we have to communicate with the client. |
241 RefPtr<WebFrameImpl> protector(m_webFrame); | 277 RefPtr<WebFrameImpl> protector(m_webFrame); |
242 | 278 |
243 WebFrameClient* client = m_webFrame->client(); | 279 WebFrameClient* client = m_webFrame->client(); |
244 if (!client) | 280 if (!client) |
245 return; | 281 return; |
246 | 282 |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 return m_webFrame->sharedWorkerRepositoryClient(); | 781 return m_webFrame->sharedWorkerRepositoryClient(); |
746 } | 782 } |
747 | 783 |
748 void FrameLoaderClientImpl::didStopAllLoaders() | 784 void FrameLoaderClientImpl::didStopAllLoaders() |
749 { | 785 { |
750 if (m_webFrame->client()) | 786 if (m_webFrame->client()) |
751 m_webFrame->client()->didAbortLoading(m_webFrame); | 787 m_webFrame->client()->didAbortLoading(m_webFrame); |
752 } | 788 } |
753 | 789 |
754 } // namespace blink | 790 } // namespace blink |
OLD | NEW |