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

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

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Addressed CR feedback from alexmos@. Created 3 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "v8/include/v8.h" 43 #include "v8/include/v8.h"
44 44
45 namespace blink { 45 namespace blink {
46 46
47 class Frame; 47 class Frame;
48 class OpenedFrameTracker; 48 class OpenedFrameTracker;
49 class Page; 49 class Page;
50 class Visitor; 50 class Visitor;
51 class WebAssociatedURLLoader; 51 class WebAssociatedURLLoader;
52 struct WebAssociatedURLLoaderOptions; 52 struct WebAssociatedURLLoaderOptions;
53 class WebDocument;
54 class WebElement; 53 class WebElement;
55 class WebLocalFrame; 54 class WebLocalFrame;
56 class WebPerformance; 55 class WebPerformance;
57 class WebRemoteFrame; 56 class WebRemoteFrame;
58 class WebSecurityOrigin; 57 class WebSecurityOrigin;
59 class WebString; 58 class WebString;
60 class WebURL; 59 class WebURL;
61 class WebURLRequest; 60 class WebURLRequest;
62 class WebView; 61 class WebView;
63 enum class WebSandboxFlags; 62 enum class WebSandboxFlags;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 WebFrame* FirstChild() const; 185 WebFrame* FirstChild() const;
187 186
188 // Returns the next sibling frame. 187 // Returns the next sibling frame.
189 WebFrame* NextSibling() const; 188 WebFrame* NextSibling() const;
190 189
191 // Returns the next frame in "frame traversal order". 190 // Returns the next frame in "frame traversal order".
192 WebFrame* TraverseNext() const; 191 WebFrame* TraverseNext() const;
193 192
194 // Content ------------------------------------------------------------ 193 // Content ------------------------------------------------------------
195 194
196 virtual WebDocument GetDocument() const = 0;
197
198 virtual WebPerformance Performance() const = 0; 195 virtual WebPerformance Performance() const = 0;
199 196
200 // Scripting ---------------------------------------------------------- 197 // Scripting ----------------------------------------------------------
201 198
202 // Returns the global proxy object. 199 // Returns the global proxy object.
203 virtual v8::Local<v8::Object> GlobalProxy() const = 0; 200 virtual v8::Local<v8::Object> GlobalProxy() const = 0;
204 201
205 // Returns true if the WebFrame currently executing JavaScript has access 202 // Returns true if the WebFrame currently executing JavaScript has access
206 // to the given WebFrame, or false otherwise. 203 // to the given WebFrame, or false otherwise.
207 static bool ScriptCanAccess(WebFrame*); 204 static bool ScriptCanAccess(WebFrame*);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 WebFrame* first_child_; 293 WebFrame* first_child_;
297 WebFrame* last_child_; 294 WebFrame* last_child_;
298 295
299 WebFrame* opener_; 296 WebFrame* opener_;
300 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; 297 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_;
301 }; 298 };
302 299
303 } // namespace blink 300 } // namespace blink
304 301
305 #endif 302 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698