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

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

Issue 31063004: Have Frame::loader() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/DOMWindow.cpp ('k') | Source/core/frame/Frame.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 Page* page() const; 90 Page* page() const;
91 HTMLFrameOwnerElement* ownerElement() const; 91 HTMLFrameOwnerElement* ownerElement() const;
92 92
93 void setDOMWindow(PassRefPtr<DOMWindow>); 93 void setDOMWindow(PassRefPtr<DOMWindow>);
94 DOMWindow* domWindow() const; 94 DOMWindow* domWindow() const;
95 Document* document() const; 95 Document* document() const;
96 FrameView* view() const; 96 FrameView* view() const;
97 97
98 Editor& editor() const; 98 Editor& editor() const;
99 EventHandler& eventHandler() const; 99 EventHandler& eventHandler() const;
100 FrameLoader* loader() const; 100 FrameLoader& loader() const;
101 NavigationScheduler& navigationScheduler() const; 101 NavigationScheduler& navigationScheduler() const;
102 FrameSelection& selection() const; 102 FrameSelection& selection() const;
103 FrameTree& tree() const; 103 FrameTree& tree() const;
104 AnimationController& animation() const; 104 AnimationController& animation() const;
105 InputMethodController& inputMethodController() const; 105 InputMethodController& inputMethodController() const;
106 FetchContext& fetchContext() const { return loader()->fetchContext(); } 106 FetchContext& fetchContext() const { return loader().fetchContext(); }
107 ScriptController& script(); 107 ScriptController& script();
108 SpellChecker& spellChecker() const; 108 SpellChecker& spellChecker() const;
109 109
110 RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame. 110 RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame.
111 RenderPart* ownerRenderer() const; // Renderer for the element that cont ains this frame. 111 RenderPart* ownerRenderer() const; // Renderer for the element that cont ains this frame.
112 112
113 void dispatchVisibilityStateChangeEvent(); 113 void dispatchVisibilityStateChangeEvent();
114 114
115 // ======== All public functions below this point are candidates to move out of Frame into another class. ======== 115 // ======== All public functions below this point are candidates to move out of Frame into another class. ========
116 116
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 #endif 195 #endif
196 196
197 bool m_inViewSourceMode; 197 bool m_inViewSourceMode;
198 }; 198 };
199 199
200 inline void Frame::init() 200 inline void Frame::init()
201 { 201 {
202 m_loader.init(); 202 m_loader.init();
203 } 203 }
204 204
205 inline FrameLoader* Frame::loader() const 205 inline FrameLoader& Frame::loader() const
206 { 206 {
207 return &m_loader; 207 return m_loader;
208 } 208 }
209 209
210 inline NavigationScheduler& Frame::navigationScheduler() const 210 inline NavigationScheduler& Frame::navigationScheduler() const
211 { 211 {
212 return m_navigationScheduler; 212 return m_navigationScheduler;
213 } 213 }
214 214
215 inline FrameView* Frame::view() const 215 inline FrameView* Frame::view() const
216 { 216 {
217 return m_view.get(); 217 return m_view.get();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 inline EventHandler& Frame::eventHandler() const 280 inline EventHandler& Frame::eventHandler() const
281 { 281 {
282 ASSERT(m_eventHandler); 282 ASSERT(m_eventHandler);
283 return *m_eventHandler; 283 return *m_eventHandler;
284 } 284 }
285 285
286 } // namespace WebCore 286 } // namespace WebCore
287 287
288 #endif // Frame_h 288 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698