OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999-2001 Lars Knoll <knoll@kde.org> | 3 * 1999-2001 Lars Knoll <knoll@kde.org> |
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> | 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> |
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> | 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> |
6 * 2000-2001 Dirk Mueller <mueller@kde.org> | 6 * 2000-2001 Dirk Mueller <mueller@kde.org> |
7 * 2000 Stefan Schimanski <1Stein@gmx.de> | 7 * 2000 Stefan Schimanski <1Stein@gmx.de> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 class Document; | 43 class Document; |
44 class FrameClient; | 44 class FrameClient; |
45 class FrameHost; | 45 class FrameHost; |
46 class FrameOwner; | 46 class FrameOwner; |
47 class HTMLFrameOwnerElement; | 47 class HTMLFrameOwnerElement; |
48 class LayoutPart; | 48 class LayoutPart; |
49 class KURL; | 49 class KURL; |
50 class Page; | 50 class Page; |
51 class SecurityContext; | 51 class SecurityContext; |
52 class Settings; | 52 class Settings; |
53 class Widget; | |
53 class WindowProxy; | 54 class WindowProxy; |
54 class WindowProxyManager; | 55 class WindowProxyManager; |
55 | 56 |
56 class CORE_EXPORT Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame > { | 57 class CORE_EXPORT Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame > { |
57 public: | 58 public: |
58 virtual ~Frame(); | 59 virtual ~Frame(); |
59 | 60 |
60 DECLARE_VIRTUAL_TRACE(); | 61 DECLARE_VIRTUAL_TRACE(); |
61 | 62 |
62 virtual bool isLocalFrame() const { return false; } | 63 virtual bool isLocalFrame() const { return false; } |
63 virtual bool isRemoteFrame() const { return false; } | 64 virtual bool isRemoteFrame() const { return false; } |
64 | 65 |
65 virtual DOMWindow* domWindow() const = 0; | 66 virtual DOMWindow* domWindow() const = 0; |
66 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; | 67 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; |
68 virtual Widget* widget() const = 0; | |
dcheng
2015/04/29 21:37:46
It feels weird that we need to expose this. It loo
Nate Chapin
2015/05/01 20:30:52
Done.
| |
67 | 69 |
68 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) = 0; | 70 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) = 0; |
69 virtual void reload(ReloadPolicy, ClientRedirectPolicy) = 0; | 71 virtual void reload(ReloadPolicy, ClientRedirectPolicy) = 0; |
70 | 72 |
71 virtual void detach(); | 73 virtual void detach(); |
72 void detachChildren(); | 74 void detachChildren(); |
73 virtual void disconnectOwnerElement(); | 75 virtual void disconnectOwnerElement(); |
74 | 76 |
75 FrameClient* client() const; | 77 FrameClient* client() const; |
76 | 78 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 { | 143 { |
142 return m_treeNode; | 144 return m_treeNode; |
143 } | 145 } |
144 | 146 |
145 // Allow equality comparisons of Frames by reference or pointer, interchangeably . | 147 // Allow equality comparisons of Frames by reference or pointer, interchangeably . |
146 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 148 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
147 | 149 |
148 } // namespace blink | 150 } // namespace blink |
149 | 151 |
150 #endif // Frame_h | 152 #endif // Frame_h |
OLD | NEW |