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

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

Issue 1119823003: Allow createLocalChild to specify previous sibling frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change appendChild to use insertAfter 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
« Source/web/tests/WebFrameTest.cpp ('K') | « public/web/WebFrame.h ('k') | no next file » | 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 WebRemoteFrame_h 5 #ifndef WebRemoteFrame_h
6 #define WebRemoteFrame_h 6 #define WebRemoteFrame_h
7 7
8 #include "public/web/WebFrame.h" 8 #include "public/web/WebFrame.h"
9 #include "public/web/WebSandboxFlags.h" 9 #include "public/web/WebSandboxFlags.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class WebFrameClient; 13 class WebFrameClient;
14 class WebRemoteFrameClient; 14 class WebRemoteFrameClient;
15 15
16 class WebRemoteFrame : public WebFrame { 16 class WebRemoteFrame : public WebFrame {
17 public: 17 public:
18 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*); 18 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*);
19 19
20 // TODO(alexmos): Remove once Chromium side is updated to take previous sibl ing.
20 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla gs, WebFrameClient*) = 0; 21 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla gs, WebFrameClient*) = 0;
22 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla gs, WebFrameClient*, WebFrame*) = 0;
21 23
22 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebSandboxF lags, WebRemoteFrameClient*) = 0; 24 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebSandboxF lags, WebRemoteFrameClient*) = 0;
23 25
24 // Transfer initial drawing parameters from a local frame. 26 // Transfer initial drawing parameters from a local frame.
25 virtual void initializeFromFrame(WebLocalFrame*) const = 0; 27 virtual void initializeFromFrame(WebLocalFrame*) const = 0;
26 28
27 // Set security origin replicated from another process. 29 // Set security origin replicated from another process.
28 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; 30 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0;
29 31
30 // Set sandbox flags replicated from another process. 32 // Set sandbox flags replicated from another process.
31 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; 33 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0;
32 34
33 // Set frame name replicated from another process. 35 // Set frame name replicated from another process.
34 virtual void setReplicatedName(const WebString&) const = 0; 36 virtual void setReplicatedName(const WebString&) const = 0;
35 37
36 virtual void DispatchLoadEventForFrameOwner() const = 0; 38 virtual void DispatchLoadEventForFrameOwner() const = 0;
37 39
38 virtual void didStartLoading() = 0; 40 virtual void didStartLoading() = 0;
39 virtual void didStopLoading() = 0; 41 virtual void didStopLoading() = 0;
40 }; 42 };
41 43
42 } // namespace blink 44 } // namespace blink
43 45
44 #endif // WebRemoteFrame_h 46 #endif // WebRemoteFrame_h
OLDNEW
« Source/web/tests/WebFrameTest.cpp ('K') | « public/web/WebFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698