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

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

Issue 640803004: Add a basic DOMWindow base class and use it in WindowProxy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 2 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 | « Source/core/frame/LocalDOMWindow.h ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void init(); 72 void init();
73 void setView(PassRefPtrWillBeRawPtr<FrameView>); 73 void setView(PassRefPtrWillBeRawPtr<FrameView>);
74 void createView(const IntSize&, const Color&, bool, 74 void createView(const IntSize&, const Color&, bool,
75 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, 75 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false,
76 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); 76 ScrollbarMode = ScrollbarAuto, bool verticalLock = false);
77 77
78 // Frame overrides: 78 // Frame overrides:
79 virtual ~LocalFrame(); 79 virtual ~LocalFrame();
80 virtual void trace(Visitor*) override; 80 virtual void trace(Visitor*) override;
81 virtual bool isLocalFrame() const override { return true; } 81 virtual bool isLocalFrame() const override { return true; }
82 virtual LocalDOMWindow* domWindow() const override;
82 virtual void navigate(Document& originDocument, const KURL&, bool lockBa ckForwardList) override; 83 virtual void navigate(Document& originDocument, const KURL&, bool lockBa ckForwardList) override;
83 virtual void detach() override; 84 virtual void detach() override;
84 virtual void disconnectOwnerElement() override; 85 virtual void disconnectOwnerElement() override;
85 86
86 void addDestructionObserver(FrameDestructionObserver*); 87 void addDestructionObserver(FrameDestructionObserver*);
87 void removeDestructionObserver(FrameDestructionObserver*); 88 void removeDestructionObserver(FrameDestructionObserver*);
88 89
89 void willDetachFrameHost(); 90 void willDetachFrameHost();
90 91
91 virtual void setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow>) overri de; 92 void setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow>);
92 FrameView* view() const; 93 FrameView* view() const;
93 Document* document() const; 94 Document* document() const;
94 void setPagePopupOwner(Element&); 95 void setPagePopupOwner(Element&);
95 Element* pagePopupOwner() const { return m_pagePopupOwner.get(); } 96 Element* pagePopupOwner() const { return m_pagePopupOwner.get(); }
96 97
97 RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame. 98 RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame.
98 99
99 Editor& editor() const; 100 Editor& editor() const;
100 EventHandler& eventHandler() const; 101 EventHandler& eventHandler() const;
101 FrameLoader& loader() const; 102 FrameLoader& loader() const;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 170
170 String localLayerTreeAsText(unsigned flags) const; 171 String localLayerTreeAsText(unsigned flags) const;
171 172
172 void detachView(); 173 void detachView();
173 174
174 WillBeHeapHashSet<RawPtrWillBeWeakMember<FrameDestructionObserver> > m_d estructionObservers; 175 WillBeHeapHashSet<RawPtrWillBeWeakMember<FrameDestructionObserver> > m_d estructionObservers;
175 mutable FrameLoader m_loader; 176 mutable FrameLoader m_loader;
176 mutable NavigationScheduler m_navigationScheduler; 177 mutable NavigationScheduler m_navigationScheduler;
177 178
178 RefPtrWillBeMember<FrameView> m_view; 179 RefPtrWillBeMember<FrameView> m_view;
180 RefPtrWillBeMember<LocalDOMWindow> m_domWindow;
179 // Usually 0. Non-null if this is the top frame of PagePopup. 181 // Usually 0. Non-null if this is the top frame of PagePopup.
180 RefPtrWillBeMember<Element> m_pagePopupOwner; 182 RefPtrWillBeMember<Element> m_pagePopupOwner;
181 183
182 const OwnPtrWillBeMember<ScriptController> m_script; 184 const OwnPtrWillBeMember<ScriptController> m_script;
183 const OwnPtrWillBeMember<Editor> m_editor; 185 const OwnPtrWillBeMember<Editor> m_editor;
184 const OwnPtrWillBeMember<SpellChecker> m_spellChecker; 186 const OwnPtrWillBeMember<SpellChecker> m_spellChecker;
185 const OwnPtrWillBeMember<FrameSelection> m_selection; 187 const OwnPtrWillBeMember<FrameSelection> m_selection;
186 const OwnPtrWillBeMember<EventHandler> m_eventHandler; 188 const OwnPtrWillBeMember<EventHandler> m_eventHandler;
187 const OwnPtrWillBeMember<FrameConsole> m_console; 189 const OwnPtrWillBeMember<FrameConsole> m_console;
188 const OwnPtrWillBeMember<InputMethodController> m_inputMethodController; 190 const OwnPtrWillBeMember<InputMethodController> m_inputMethodController;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame()); 281 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame());
280 282
281 } // namespace blink 283 } // namespace blink
282 284
283 // During refactoring, there are some places where we need to do type conversion s that 285 // During refactoring, there are some places where we need to do type conversion s that
284 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. 286 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out.
285 // At that time this #define will be removed and all the uses of it will need to be corrected. 287 // At that time this #define will be removed and all the uses of it will need to be corrected.
286 #define toLocalFrameTemporary toLocalFrame 288 #define toLocalFrameTemporary toLocalFrame
287 289
288 #endif // LocalFrame_h 290 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.h ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698