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

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

Issue 1307013004: Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move setSandboxFlags call Created 5 years, 2 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 "WebFrame.h" 8 #include "WebFrame.h"
9 #include "WebFrameLoadType.h" 9 #include "WebFrameLoadType.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Returns the frame inside a given frame or iframe element. Returns 0 if 46 // Returns the frame inside a given frame or iframe element. Returns 0 if
47 // the given element is not a frame, iframe or if the frame is empty. 47 // the given element is not a frame, iframe or if the frame is empty.
48 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); 48 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&);
49 49
50 // Initialization --------------------------------------------------------- 50 // Initialization ---------------------------------------------------------
51 51
52 // Used when we might swap from a remote frame to a local frame. 52 // Used when we might swap from a remote frame to a local frame.
53 // Creates a provisional, semi-attached frame that will be fully 53 // Creates a provisional, semi-attached frame that will be fully
54 // swapped into the frame tree if it commits. 54 // swapped into the frame tree if it commits.
55 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*, const WebString & name, WebSandboxFlags) = 0; 55 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*, const WebString & name, WebSandboxFlags, const WebFrameOwnerProperties&) = 0;
56 56
57 virtual void setAutofillClient(WebAutofillClient*) = 0; 57 virtual void setAutofillClient(WebAutofillClient*) = 0;
58 virtual WebAutofillClient* autofillClient() = 0; 58 virtual WebAutofillClient* autofillClient() = 0;
59 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; 59 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0;
60 virtual WebDevToolsAgent* devToolsAgent() = 0; 60 virtual WebDevToolsAgent* devToolsAgent() = 0;
61 61
62 // Basic properties ---------------------------------------------------
63
64 // Updates the scrolling and margin properties in the frame's FrameOwner.
65 // This is used when this frame's parent is in another process and it
66 // dynamically updates these properties.
67 // TODO(dcheng): Currently, the update only takes effect on next frame
dcheng 2015/10/21 21:04:01 What's this TODO for? =)
lazyboy 2015/10/23 21:19:35 This corresponds to the FIXMEs in https://coderev
68 // navigation. This matches the in-process frame behavior.
69 virtual void setFrameOwnerProperties(const WebFrameOwnerProperties&) = 0;
70
62 // Navigation Ping -------------------------------------------------------- 71 // Navigation Ping --------------------------------------------------------
63 virtual void sendPings(const WebNode& contextNode, const WebURL& destination URL) = 0; 72 virtual void sendPings(const WebNode& contextNode, const WebURL& destination URL) = 0;
64 73
65 // Navigation ---------------------------------------------------------- 74 // Navigation ----------------------------------------------------------
66 75
67 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem. 76 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem.
68 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebURLRe quest::CachePolicy) 77 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebURLRe quest::CachePolicy)
69 const = 0; 78 const = 0;
70 79
71 // Returns a WebURLRequest corresponding to the reload of the current 80 // Returns a WebURLRequest corresponding to the reload of the current
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Returns the effective sandbox flags which are inherited from their parent frame. 189 // Returns the effective sandbox flags which are inherited from their parent frame.
181 virtual WebSandboxFlags effectiveSandboxFlags() const = 0; 190 virtual WebSandboxFlags effectiveSandboxFlags() const = 0;
182 191
183 protected: 192 protected:
184 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } 193 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { }
185 }; 194 };
186 195
187 } // namespace blink 196 } // namespace blink
188 197
189 #endif // WebLocalFrame_h 198 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698