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

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

Issue 334483002: Add Blink APIs for frame tree mirroring. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix some more crashes, etc. Created 6 years, 6 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
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Returns the frame that opened this frame or 0 if there is none. 194 // Returns the frame that opened this frame or 0 if there is none.
195 BLINK_EXPORT WebFrame* opener() const; 195 BLINK_EXPORT WebFrame* opener() const;
196 196
197 // Sets the frame that opened this one or 0 if there is none. 197 // Sets the frame that opened this one or 0 if there is none.
198 virtual void setOpener(WebFrame*); 198 virtual void setOpener(WebFrame*);
199 199
200 // Reset the frame that opened this frame to 0. 200 // Reset the frame that opened this frame to 0.
201 // This is executed between layout tests runs 201 // This is executed between layout tests runs
202 void clearOpener() { setOpener(0); } 202 void clearOpener() { setOpener(0); }
203 203
204 // Called by the WebView to initialize the main frame for the page.
205 virtual void initializeAsMainFrame(WebView*) = 0;
abarth-chromium 2014/06/13 18:06:46 Why is this API public? If it's called by the Web
dcheng 2014/06/13 23:56:12 I'd like to avoid friending WebViewImpl if possibl
206
204 // Adds the given frame as a child of this frame. 207 // Adds the given frame as a child of this frame.
205 virtual void appendChild(WebFrame*); 208 virtual void appendChild(WebFrame*);
206 209
207 // Removes the given child from this frame. 210 // Removes the given child from this frame.
208 virtual void removeChild(WebFrame*); 211 virtual void removeChild(WebFrame*);
209 212
210 // Returns the parent frame or 0 if this is a top-most frame. 213 // Returns the parent frame or 0 if this is a top-most frame.
211 BLINK_EXPORT WebFrame* parent() const; 214 BLINK_EXPORT WebFrame* parent() const;
212 215
213 // Returns the top-most frame in the hierarchy containing this frame. 216 // Returns the top-most frame in the hierarchy containing this frame.
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 697 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
695 }; 698 };
696 699
697 #if BLINK_IMPLEMENTATION 700 #if BLINK_IMPLEMENTATION
698 WebCore::Frame* toWebCoreFrame(WebFrame*); 701 WebCore::Frame* toWebCoreFrame(WebFrame*);
699 #endif 702 #endif
700 703
701 } // namespace blink 704 } // namespace blink
702 705
703 #endif 706 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698