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

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

Issue 1141553006: Update Blink to use the tree scope info on WebFrame for scoping checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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
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*);
35 33
36 // Returns the WebFrame associated with the current V8 context. This 34 // Returns the WebFrame associated with the current V8 context. This
37 // function can return 0 if the context is associated with a Document that 35 // function can return 0 if the context is associated with a Document that
38 // is not currently being displayed in a Frame. 36 // is not currently being displayed in a Frame.
39 BLINK_EXPORT static WebLocalFrame* frameForCurrentContext(); 37 BLINK_EXPORT static WebLocalFrame* frameForCurrentContext();
40 38
41 // Returns the frame corresponding to the given context. This can return 0 39 // Returns the frame corresponding to the given context. This can return 0
42 // if the context is detached from the frame, or if the context doesn't 40 // if the context is detached from the frame, or if the context doesn't
43 // correspond to a frame (e.g., workers). 41 // correspond to a frame (e.g., workers).
44 BLINK_EXPORT static WebLocalFrame* frameForContext(v8::Local<v8::Context>); 42 BLINK_EXPORT static WebLocalFrame* frameForContext(v8::Local<v8::Context>);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 virtual void reloadImage(const WebNode&) = 0; 139 virtual void reloadImage(const WebNode&) = 0;
142 140
143 protected: 141 protected:
144 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } 142 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { }
145 }; 143 };
146 144
147 } // namespace blink 145 } // namespace blink
148 146
149 #endif // WebLocalFrame_h 147 #endif // WebLocalFrame_h
150 148
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698