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

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

Issue 33483002: Have Frame::animation() 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
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 inline Editor& Frame::editor() const 235 inline Editor& Frame::editor() const
236 { 236 {
237 return *m_editor; 237 return *m_editor;
238 } 238 }
239 239
240 inline SpellChecker& Frame::spellChecker() const 240 inline SpellChecker& Frame::spellChecker() const
241 { 241 {
242 return *m_spellChecker; 242 return *m_spellChecker;
243 } 243 }
244 244
245 inline AnimationController* Frame::animation() const 245 inline AnimationController& Frame::animation() const
246 { 246 {
247 return m_animationController.get(); 247 return *m_animationController;
248 } 248 }
249 249
250 inline InputMethodController& Frame::inputMethodController() const 250 inline InputMethodController& Frame::inputMethodController() const
251 { 251 {
252 return *m_inputMethodController; 252 return *m_inputMethodController;
253 } 253 }
254 254
255 inline HTMLFrameOwnerElement* Frame::ownerElement() const 255 inline HTMLFrameOwnerElement* Frame::ownerElement() const
256 { 256 {
257 return m_ownerElement; 257 return m_ownerElement;
(...skipping 20 matching lines...) Expand all
278 } 278 }
279 279
280 inline EventHandler* Frame::eventHandler() const 280 inline EventHandler* Frame::eventHandler() const
281 { 281 {
282 return m_eventHandler.get(); 282 return m_eventHandler.get();
283 } 283 }
284 284
285 } // namespace WebCore 285 } // namespace WebCore
286 286
287 #endif // Frame_h 287 #endif // Frame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698