Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Side by Side Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 156123004: Move the frame tree into the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: T -> t Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebFrameImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698