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

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

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Rebasing... 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 // 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 <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
(...skipping 14 matching lines...) Expand all
25 namespace blink { 25 namespace blink {
26 26
27 class InterfaceProvider; 27 class InterfaceProvider;
28 class InterfaceRegistry; 28 class InterfaceRegistry;
29 class WebAutofillClient; 29 class WebAutofillClient;
30 class WebContentSettingsClient; 30 class WebContentSettingsClient;
31 class WebData; 31 class WebData;
32 class WebDataSource; 32 class WebDataSource;
33 class WebDevToolsAgent; 33 class WebDevToolsAgent;
34 class WebDevToolsAgentClient; 34 class WebDevToolsAgentClient;
35 class WebDocument;
35 class WebDoubleSize; 36 class WebDoubleSize;
36 class WebDOMEvent; 37 class WebDOMEvent;
37 class WebFrameClient; 38 class WebFrameClient;
38 class WebFrameWidget; 39 class WebFrameWidget;
39 class WebFrameScheduler; 40 class WebFrameScheduler;
40 class WebInputMethodController; 41 class WebInputMethodController;
41 class WebRange; 42 class WebRange;
42 class WebSecurityOrigin; 43 class WebSecurityOrigin;
43 class WebScriptExecutionCallback; 44 class WebScriptExecutionCallback;
44 class WebSharedWorkerRepositoryClient; 45 class WebSharedWorkerRepositoryClient;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual void DispatchUnloadEvent() = 0; 132 virtual void DispatchUnloadEvent() = 0;
132 133
133 // Basic properties --------------------------------------------------- 134 // Basic properties ---------------------------------------------------
134 135
135 // The urls of the given combination types of favicon (if any) specified by 136 // The urls of the given combination types of favicon (if any) specified by
136 // the document loaded in this frame. The iconTypesMask is a bit-mask of 137 // the document loaded in this frame. The iconTypesMask is a bit-mask of
137 // WebIconURL::Type values, used to select from the available set of icon 138 // WebIconURL::Type values, used to select from the available set of icon
138 // URLs 139 // URLs
139 virtual WebVector<WebIconURL> IconURLs(int icon_types_mask) const = 0; 140 virtual WebVector<WebIconURL> IconURLs(int icon_types_mask) const = 0;
140 141
142 virtual WebDocument GetDocument() const = 0;
143
141 // Hierarchy ---------------------------------------------------------- 144 // Hierarchy ----------------------------------------------------------
142 145
143 // Get the highest-level LocalFrame in this frame's in-process subtree. 146 // Get the highest-level LocalFrame in this frame's in-process subtree.
144 virtual WebLocalFrame* LocalRoot() = 0; 147 virtual WebLocalFrame* LocalRoot() = 0;
145 148
146 // Returns the frame identified by the given name. This method supports 149 // Returns the frame identified by the given name. This method supports
147 // pseudo-names like _self, _top, and _blank and otherwise performs the same 150 // pseudo-names like _self, _top, and _blank and otherwise performs the same
148 // kind of lookup what |window.open(..., name)| would in Javascript. 151 // kind of lookup what |window.open(..., name)| would in Javascript.
149 virtual WebFrame* FindFrameByName(const WebString& name) = 0; 152 virtual WebFrame* FindFrameByName(const WebString& name) = 0;
150 153
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 // to call these on a WebLocalFrame. 749 // to call these on a WebLocalFrame.
747 bool IsWebLocalFrame() const override = 0; 750 bool IsWebLocalFrame() const override = 0;
748 WebLocalFrame* ToWebLocalFrame() override = 0; 751 WebLocalFrame* ToWebLocalFrame() override = 0;
749 bool IsWebRemoteFrame() const override = 0; 752 bool IsWebRemoteFrame() const override = 0;
750 WebRemoteFrame* ToWebRemoteFrame() override = 0; 753 WebRemoteFrame* ToWebRemoteFrame() override = 0;
751 }; 754 };
752 755
753 } // namespace blink 756 } // namespace blink
754 757
755 #endif // WebLocalFrame_h 758 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698