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

Side by Side Diff: Source/core/html/HTMLFrameOwnerElement.h

Issue 334483002: Add Blink APIs for frame tree mirroring. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix some more crashes, etc. Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 21 matching lines...) Expand all
32 class Frame; 32 class Frame;
33 class RenderPart; 33 class RenderPart;
34 class Widget; 34 class Widget;
35 35
36 class HTMLFrameOwnerElement : public HTMLElement, public FrameOwner { 36 class HTMLFrameOwnerElement : public HTMLElement, public FrameOwner {
37 public: 37 public:
38 virtual ~HTMLFrameOwnerElement(); 38 virtual ~HTMLFrameOwnerElement();
39 39
40 // FrameOwner overrides: 40 // FrameOwner overrides:
41 virtual bool isLocal() const { return true; } 41 virtual bool isLocal() const { return true; }
42 virtual void setContentFrame(Frame&) OVERRIDE;
43 virtual void clearContentFrame() OVERRIDE;
abarth-chromium 2014/06/13 18:06:46 This can still be private. That will force caller
dcheng 2014/06/13 23:56:12 Done.
42 virtual SandboxFlags sandboxFlags() const OVERRIDE { return m_sandboxFlags; } 44 virtual SandboxFlags sandboxFlags() const OVERRIDE { return m_sandboxFlags; }
43 virtual void dispatchLoad() OVERRIDE; 45 virtual void dispatchLoad() OVERRIDE;
44 46
45 Frame* contentFrame() const { return m_contentFrame; } 47 Frame* contentFrame() const { return m_contentFrame; }
46 DOMWindow* contentWindow() const; 48 DOMWindow* contentWindow() const;
47 Document* contentDocument() const; 49 Document* contentDocument() const;
48 50
49 void setContentFrame(Frame&);
50 void clearContentFrame();
51
52 void disconnectContentFrame(); 51 void disconnectContentFrame();
53 52
54 // Most subclasses use RenderPart (either RenderEmbeddedObject or RenderIFra me) 53 // Most subclasses use RenderPart (either RenderEmbeddedObject or RenderIFra me)
55 // except for HTMLObjectElement and HTMLEmbedElement which may return any 54 // except for HTMLObjectElement and HTMLEmbedElement which may return any
56 // RenderObject when using fallback content. 55 // RenderObject when using fallback content.
57 RenderPart* renderPart() const; 56 RenderPart* renderPart() const;
58 57
59 Document* getSVGDocument(ExceptionState&) const; 58 Document* getSVGDocument(ExceptionState&) const;
60 59
61 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; } 60 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 126 }
128 127
129 Node& m_root; 128 Node& m_root;
130 }; 129 };
131 130
132 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 131 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
133 132
134 } // namespace WebCore 133 } // namespace WebCore
135 134
136 #endif // HTMLFrameOwnerElement_h 135 #endif // HTMLFrameOwnerElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698