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

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

Issue 1157563004: Revert of Update Blink to use the tree scope info on WebFrame for scoping checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/tests/WebViewTest.cpp ('k') | public/web/WebLocalFrame.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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // pending navigation's URL, because a URL spoof is possible. 143 // pending navigation's URL, because a URL spoof is possible.
144 virtual void didAccessInitialDocument(WebLocalFrame*) { } 144 virtual void didAccessInitialDocument(WebLocalFrame*) { }
145 145
146 // A child frame was created in this frame. This is called when the frame 146 // A child frame was created in this frame. This is called when the frame
147 // is created and initialized. Takes the name of the new frame, the parent 147 // is created and initialized. Takes the name of the new frame, the parent
148 // frame and returns a new WebFrame. The WebFrame is considered in-use 148 // frame and returns a new WebFrame. The WebFrame is considered in-use
149 // until frameDetached() is called on it. 149 // until frameDetached() is called on it.
150 // Note: If you override this, you should almost certainly be overriding 150 // Note: If you override this, you should almost certainly be overriding
151 // frameDetached(). 151 // frameDetached().
152 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const WebString& frameName, WebSandboxFlags sandboxFlags) { return nullptr; } 152 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const WebString& frameName, WebSandboxFlags sandboxFlags) { return nullptr; }
153 // TODO(dcheng): Remove this overload, since it's deprecated.
154 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f rameName, WebSandboxFlags sandboxFlags) { return nullptr; }
153 155
154 // This frame set its opener to null, disowning it. 156 // This frame set its opener to null, disowning it.
155 // See http://html.spec.whatwg.org/#dom-opener. 157 // See http://html.spec.whatwg.org/#dom-opener.
156 virtual void didDisownOpener(WebLocalFrame*) { } 158 virtual void didDisownOpener(WebLocalFrame*) { }
157 159
158 // This frame has been detached from the view, but has not been closed yet. 160 // This frame has been detached from the view, but has not been closed yet.
159 virtual void frameDetached(WebFrame*) { } 161 virtual void frameDetached(WebFrame*) { }
160 162
161 // This frame has become focused.. 163 // This frame has become focused..
162 virtual void frameFocused() { } 164 virtual void frameFocused() { }
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 // App Banners --------------------------------------------------------- 645 // App Banners ---------------------------------------------------------
644 virtual WebAppBannerClient* appBannerClient() { return 0; } 646 virtual WebAppBannerClient* appBannerClient() { return 0; }
645 647
646 protected: 648 protected:
647 virtual ~WebFrameClient() { } 649 virtual ~WebFrameClient() { }
648 }; 650 };
649 651
650 } // namespace blink 652 } // namespace blink
651 653
652 #endif 654 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698