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 17 matching lines...) Expand all Loading... |
28 #ifndef Frame_h | 28 #ifndef Frame_h |
29 #define Frame_h | 29 #define Frame_h |
30 | 30 |
31 #include "core/loader/FrameLoader.h" | 31 #include "core/loader/FrameLoader.h" |
32 #include "core/loader/NavigationScheduler.h" | 32 #include "core/loader/NavigationScheduler.h" |
33 #include "core/page/AdjustViewSizeOrNot.h" | 33 #include "core/page/AdjustViewSizeOrNot.h" |
34 #include "core/page/FrameTree.h" | 34 #include "core/page/FrameTree.h" |
35 #include "core/platform/ScrollTypes.h" | 35 #include "core/platform/ScrollTypes.h" |
36 #include "core/platform/graphics/IntSize.h" | 36 #include "core/platform/graphics/IntSize.h" |
37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 38 #include "wtf/NonNullPtr.h" |
38 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
39 | 40 |
40 namespace WebCore { | 41 namespace WebCore { |
41 | 42 |
42 class AnimationController; | 43 class AnimationController; |
43 class Color; | 44 class Color; |
44 class DOMWindow; | 45 class DOMWindow; |
45 class Document; | 46 class Document; |
46 class DragImage; | 47 class DragImage; |
47 class Editor; | 48 class Editor; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 DOMWindow* domWindow() const; | 94 DOMWindow* domWindow() const; |
94 Document* document() const; | 95 Document* document() const; |
95 FrameView* view() const; | 96 FrameView* view() const; |
96 | 97 |
97 Editor& editor() const; | 98 Editor& editor() const; |
98 EventHandler* eventHandler() const; | 99 EventHandler* eventHandler() const; |
99 FrameLoader* loader() const; | 100 FrameLoader* loader() const; |
100 NavigationScheduler* navigationScheduler() const; | 101 NavigationScheduler* navigationScheduler() const; |
101 FrameSelection& selection() const; | 102 FrameSelection& selection() const; |
102 FrameTree* tree() const; | 103 FrameTree* tree() const; |
103 AnimationController* animation() const; | 104 NonNullPtr<AnimationController> animation() const; |
104 InputMethodController& inputMethodController() const; | 105 InputMethodController& inputMethodController() const; |
105 FetchContext& fetchContext() const { return loader()->fetchContext(); } | 106 FetchContext& fetchContext() const { return loader()->fetchContext(); } |
106 ScriptController* script(); | 107 ScriptController* script(); |
107 | 108 |
108 RenderView* contentRenderer() const; // Root of the render tree for the
document contained in this frame. | 109 RenderView* contentRenderer() const; // Root of the render tree for the
document contained in this frame. |
109 RenderPart* ownerRenderer() const; // Renderer for the element that cont
ains this frame. | 110 RenderPart* ownerRenderer() const; // Renderer for the element that cont
ains this frame. |
110 | 111 |
111 void dispatchVisibilityStateChangeEvent(); | 112 void dispatchVisibilityStateChangeEvent(); |
112 | 113 |
113 // ======== All public functions below this point are candidates to move out
of Frame into another class. ======== | 114 // ======== All public functions below this point are candidates to move out
of Frame into another class. ======== |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 inline FrameSelection& Frame::selection() const | 235 inline FrameSelection& Frame::selection() const |
235 { | 236 { |
236 return *m_selection; | 237 return *m_selection; |
237 } | 238 } |
238 | 239 |
239 inline Editor& Frame::editor() const | 240 inline Editor& Frame::editor() const |
240 { | 241 { |
241 return *m_editor; | 242 return *m_editor; |
242 } | 243 } |
243 | 244 |
244 inline AnimationController* Frame::animation() const | 245 inline NonNullPtr<AnimationController> Frame::animation() const |
245 { | 246 { |
246 return m_animationController.get(); | 247 return m_animationController.get(); |
247 } | 248 } |
248 | 249 |
249 inline InputMethodController& Frame::inputMethodController() const | 250 inline InputMethodController& Frame::inputMethodController() const |
250 { | 251 { |
251 return *m_inputMethodController; | 252 return *m_inputMethodController; |
252 } | 253 } |
253 | 254 |
254 inline HTMLFrameOwnerElement* Frame::ownerElement() const | 255 inline HTMLFrameOwnerElement* Frame::ownerElement() const |
(...skipping 22 matching lines...) Expand all Loading... |
277 } | 278 } |
278 | 279 |
279 inline EventHandler* Frame::eventHandler() const | 280 inline EventHandler* Frame::eventHandler() const |
280 { | 281 { |
281 return m_eventHandler.get(); | 282 return m_eventHandler.get(); |
282 } | 283 } |
283 | 284 |
284 } // namespace WebCore | 285 } // namespace WebCore |
285 | 286 |
286 #endif // Frame_h | 287 #endif // Frame_h |
OLD | NEW |