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

Side by Side Diff: Source/core/frame/FrameClient.h

Issue 1132133009: Plumb whether or not a frame is in shadow DOM to the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments 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
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | 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 FrameClient_h 5 #ifndef FrameClient_h
6 #define FrameClient_h 6 #define FrameClient_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Frame; 12 class Frame;
13 class LocalFrame; 13 class LocalFrame;
14 class MessageEvent; 14 class MessageEvent;
15 class SecurityOrigin; 15 class SecurityOrigin;
16 16
17 class CORE_EXPORT FrameClient { 17 class CORE_EXPORT FrameClient {
18 public: 18 public:
19 virtual bool inShadowTree() const = 0;
20
21 // TODO(dcheng): Move this into FrameLoaderClient, since remote frames don't
22 // need this.
19 virtual void willBeDetached() = 0; 23 virtual void willBeDetached() = 0;
20 virtual void detached() = 0; 24 virtual void detached() = 0;
21 25
22 virtual Frame* opener() const = 0; 26 virtual Frame* opener() const = 0;
23 virtual void setOpener(Frame*) = 0; 27 virtual void setOpener(Frame*) = 0;
24 28
25 virtual Frame* parent() const = 0; 29 virtual Frame* parent() const = 0;
26 virtual Frame* top() const = 0; 30 virtual Frame* top() const = 0;
27 virtual Frame* previousSibling() const = 0; 31 virtual Frame* previousSibling() const = 0;
28 virtual Frame* nextSibling() const = 0; 32 virtual Frame* nextSibling() const = 0;
29 virtual Frame* firstChild() const = 0; 33 virtual Frame* firstChild() const = 0;
30 virtual Frame* lastChild() const = 0; 34 virtual Frame* lastChild() const = 0;
31 35
32 // Returns true if the embedder intercepted the postMessage call 36 // Returns true if the embedder intercepted the postMessage call
33 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, Me ssageEvent*, LocalFrame* /*sourceFrame*/) const { return false; } 37 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, Me ssageEvent*, LocalFrame* /*sourceFrame*/) const { return false; }
34 38
35 virtual ~FrameClient() { } 39 virtual ~FrameClient() { }
36 }; 40 };
37 41
38 } // namespace blink 42 } // namespace blink
39 43
40 #endif // FrameClient_h 44 #endif // FrameClient_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698