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

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 1685003002: Plumb the correct owner document through DocumentInit::m_owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // Hierarchy ---------------------------------------------------------- 197 // Hierarchy ----------------------------------------------------------
198 198
199 // Returns the containing view. 199 // Returns the containing view.
200 virtual WebView* view() const = 0; 200 virtual WebView* view() const = 0;
201 201
202 // Returns the frame that opened this frame or 0 if there is none. 202 // Returns the frame that opened this frame or 0 if there is none.
203 BLINK_EXPORT WebFrame* opener() const; 203 BLINK_EXPORT WebFrame* opener() const;
204 204
205 // Sets the frame that opened this one or 0 if there is none. 205 // Sets the frame that opened this one or 0 if there is none.
206 virtual void setOpener(WebFrame*); 206 BLINK_EXPORT void setOpener(WebFrame*);
207 207
208 // Reset the frame that opened this frame to 0. 208 // Reset the frame that opened this frame to 0.
209 // This is executed between layout tests runs 209 // This is executed between layout tests runs
210 void clearOpener() { setOpener(0); } 210 void clearOpener() { setOpener(0); }
211 211
212 // Inserts the given frame as a child of this frame, so that it is the next 212 // Inserts the given frame as a child of this frame, so that it is the next
213 // child after |previousSibling|, or first child if |previousSibling| is nul l. 213 // child after |previousSibling|, or first child if |previousSibling| is nul l.
214 BLINK_EXPORT void insertAfter(WebFrame* child, WebFrame* previousSibling); 214 BLINK_EXPORT void insertAfter(WebFrame* child, WebFrame* previousSibling);
215 215
216 // Adds the given frame as a child of this frame. 216 // Adds the given frame as a child of this frame.
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 WebFrame* m_firstChild; 612 WebFrame* m_firstChild;
613 WebFrame* m_lastChild; 613 WebFrame* m_lastChild;
614 614
615 WebFrame* m_opener; 615 WebFrame* m_opener;
616 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 616 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
617 }; 617 };
618 618
619 } // namespace blink 619 } // namespace blink
620 620
621 #endif 621 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698