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

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

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on top of DOMWindow moves and UseCounter overload for Frame Created 6 years, 1 month 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) 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 23 matching lines...) Expand all
34 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class ChromeClient; 38 class ChromeClient;
39 class Document; 39 class Document;
40 class FrameClient; 40 class FrameClient;
41 class FrameHost; 41 class FrameHost;
42 class FrameOwner; 42 class FrameOwner;
43 class HTMLFrameOwnerElement; 43 class HTMLFrameOwnerElement;
44 class LocalDOMWindow; 44 class DOMWindow;
45 class KURL; 45 class KURL;
46 class Page; 46 class Page;
47 class RenderPart; 47 class RenderPart;
48 class Settings; 48 class Settings;
49 class WebLayer; 49 class WebLayer;
50 50
51 struct Referrer; 51 struct Referrer;
52 52
53 class Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame> { 53 class Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame> {
54 public: 54 public:
55 virtual ~Frame(); 55 virtual ~Frame();
56 56
57 virtual void trace(Visitor*); 57 virtual void trace(Visitor*);
58 58
59 virtual bool isLocalFrame() const { return false; } 59 virtual bool isLocalFrame() const { return false; }
60 virtual bool isRemoteFrame() const { return false; } 60 virtual bool isRemoteFrame() const { return false; }
61 61
62 // FIXME: This should return a DOMWindow*. 62 virtual DOMWindow* domWindow() const = 0;
63 virtual LocalDOMWindow* domWindow() const = 0;
64 63
65 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) = 0; 64 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) = 0;
66 65
67 virtual void detach(); 66 virtual void detach();
68 void detachChildren(); 67 void detachChildren();
69 virtual void disconnectOwnerElement(); 68 virtual void disconnectOwnerElement();
70 69
71 FrameClient* client() const; 70 FrameClient* client() const;
72 71
73 // NOTE: Page is moving out of Blink up into the browser process as 72 // NOTE: Page is moving out of Blink up into the browser process as
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 { 126 {
128 return m_treeNode; 127 return m_treeNode;
129 } 128 }
130 129
131 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 130 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
132 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 131 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
133 132
134 } // namespace blink 133 } // namespace blink
135 134
136 #endif // Frame_h 135 #endif // Frame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698