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

Side by Side Diff: public/web/WebLocalFrame.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 | « public/web/WebFrameClient.h ('k') | public/web/WebRemoteFrame.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebFrame.h" 8 #include "WebFrame.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 12 matching lines...) Expand all
23 struct WebPrintPresetOptions; 23 struct WebPrintPresetOptions;
24 24
25 // Interface for interacting with in process frames. This contains methods that 25 // Interface for interacting with in process frames. This contains methods that
26 // require interacting with a frame's document. 26 // require interacting with a frame's document.
27 // FIXME: Move lots of methods from WebFrame in here. 27 // FIXME: Move lots of methods from WebFrame in here.
28 class WebLocalFrame : public WebFrame { 28 class WebLocalFrame : public WebFrame {
29 public: 29 public:
30 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). 30 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close().
31 // It is valid to pass a null client pointer. 31 // It is valid to pass a null client pointer.
32 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*) ; 32 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*) ;
33 // TODO(dcheng): Remove this deprecated overload.
34 BLINK_EXPORT static WebLocalFrame* create(WebFrameClient*);
33 35
34 // Returns the WebFrame associated with the current V8 context. This 36 // Returns the WebFrame associated with the current V8 context. This
35 // function can return 0 if the context is associated with a Document that 37 // function can return 0 if the context is associated with a Document that
36 // is not currently being displayed in a Frame. 38 // is not currently being displayed in a Frame.
37 BLINK_EXPORT static WebLocalFrame* frameForCurrentContext(); 39 BLINK_EXPORT static WebLocalFrame* frameForCurrentContext();
38 40
39 // Returns the frame corresponding to the given context. This can return 0 41 // Returns the frame corresponding to the given context. This can return 0
40 // if the context is detached from the frame, or if the context doesn't 42 // if the context is detached from the frame, or if the context doesn't
41 // correspond to a frame (e.g., workers). 43 // correspond to a frame (e.g., workers).
42 BLINK_EXPORT static WebLocalFrame* frameForContext(v8::Local<v8::Context>); 44 BLINK_EXPORT static WebLocalFrame* frameForContext(v8::Local<v8::Context>);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 virtual void reloadImage(const WebNode&) = 0; 141 virtual void reloadImage(const WebNode&) = 0;
140 142
141 protected: 143 protected:
142 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } 144 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { }
143 }; 145 };
144 146
145 } // namespace blink 147 } // namespace blink
146 148
147 #endif // WebLocalFrame_h 149 #endif // WebLocalFrame_h
148 150
OLDNEW
« no previous file with comments | « public/web/WebFrameClient.h ('k') | public/web/WebRemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698