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 | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
9 * reserved. | 9 * reserved. |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 class LocalFrameClient; | 72 class LocalFrameClient; |
73 class NavigationScheduler; | 73 class NavigationScheduler; |
74 class Node; | 74 class Node; |
75 class NodeTraversal; | 75 class NodeTraversal; |
76 class PerformanceMonitor; | 76 class PerformanceMonitor; |
77 template <typename Strategy> | 77 template <typename Strategy> |
78 class PositionWithAffinityTemplate; | 78 class PositionWithAffinityTemplate; |
79 class PluginData; | 79 class PluginData; |
80 class ScriptController; | 80 class ScriptController; |
81 class SpellChecker; | 81 class SpellChecker; |
| 82 class TextSuggestionController; |
82 class WebFrameScheduler; | 83 class WebFrameScheduler; |
83 | 84 |
84 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; | 85 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; |
85 | 86 |
86 class CORE_EXPORT LocalFrame final : public Frame, | 87 class CORE_EXPORT LocalFrame final : public Frame, |
87 public Supplementable<LocalFrame> { | 88 public Supplementable<LocalFrame> { |
88 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); | 89 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
89 | 90 |
90 friend class LocalFrameTest; | 91 friend class LocalFrameTest; |
91 | 92 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Root of the layout tree for the document contained in this frame. | 140 // Root of the layout tree for the document contained in this frame. |
140 LayoutView* contentLayoutObject() const; | 141 LayoutView* contentLayoutObject() const; |
141 LayoutViewItem contentLayoutItem() const; | 142 LayoutViewItem contentLayoutItem() const; |
142 | 143 |
143 Editor& editor() const; | 144 Editor& editor() const; |
144 EventHandler& eventHandler() const; | 145 EventHandler& eventHandler() const; |
145 FrameLoader& loader() const; | 146 FrameLoader& loader() const; |
146 NavigationScheduler& navigationScheduler() const; | 147 NavigationScheduler& navigationScheduler() const; |
147 FrameSelection& selection() const; | 148 FrameSelection& selection() const; |
148 InputMethodController& inputMethodController() const; | 149 InputMethodController& inputMethodController() const; |
| 150 TextSuggestionController& textSuggestionController() const; |
149 ScriptController& script() const; | 151 ScriptController& script() const; |
150 SpellChecker& spellChecker() const; | 152 SpellChecker& spellChecker() const; |
151 FrameConsole& console() const; | 153 FrameConsole& console() const; |
152 | 154 |
153 // This method is used to get the highest level LocalFrame in this | 155 // This method is used to get the highest level LocalFrame in this |
154 // frame's in-process subtree. | 156 // frame's in-process subtree. |
155 // FIXME: This is a temporary hack to support RemoteFrames, and callers | 157 // FIXME: This is a temporary hack to support RemoteFrames, and callers |
156 // should be updated to avoid storing things on the main frame. | 158 // should be updated to avoid storing things on the main frame. |
157 LocalFrame* localFrameRoot(); | 159 LocalFrame* localFrameRoot(); |
158 | 160 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // Usually 0. Non-null if this is the top frame of PagePopup. | 264 // Usually 0. Non-null if this is the top frame of PagePopup. |
263 Member<Element> m_pagePopupOwner; | 265 Member<Element> m_pagePopupOwner; |
264 | 266 |
265 const Member<ScriptController> m_script; | 267 const Member<ScriptController> m_script; |
266 const Member<Editor> m_editor; | 268 const Member<Editor> m_editor; |
267 const Member<SpellChecker> m_spellChecker; | 269 const Member<SpellChecker> m_spellChecker; |
268 const Member<FrameSelection> m_selection; | 270 const Member<FrameSelection> m_selection; |
269 const Member<EventHandler> m_eventHandler; | 271 const Member<EventHandler> m_eventHandler; |
270 const Member<FrameConsole> m_console; | 272 const Member<FrameConsole> m_console; |
271 const Member<InputMethodController> m_inputMethodController; | 273 const Member<InputMethodController> m_inputMethodController; |
| 274 const Member<TextSuggestionController> m_textSuggestionController; |
272 | 275 |
273 int m_navigationDisableCount; | 276 int m_navigationDisableCount; |
274 | 277 |
275 float m_pageZoomFactor; | 278 float m_pageZoomFactor; |
276 float m_textZoomFactor; | 279 float m_textZoomFactor; |
277 | 280 |
278 bool m_inViewSourceMode; | 281 bool m_inViewSourceMode; |
279 | 282 |
280 Member<CoreProbeSink> m_instrumentingAgents; | 283 Member<CoreProbeSink> m_instrumentingAgents; |
281 Member<PerformanceMonitor> m_performanceMonitor; | 284 Member<PerformanceMonitor> m_performanceMonitor; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 317 } |
315 | 318 |
316 inline FrameConsole& LocalFrame::console() const { | 319 inline FrameConsole& LocalFrame::console() const { |
317 return *m_console; | 320 return *m_console; |
318 } | 321 } |
319 | 322 |
320 inline InputMethodController& LocalFrame::inputMethodController() const { | 323 inline InputMethodController& LocalFrame::inputMethodController() const { |
321 return *m_inputMethodController; | 324 return *m_inputMethodController; |
322 } | 325 } |
323 | 326 |
| 327 inline TextSuggestionController& LocalFrame::textSuggestionController() const { |
| 328 return *m_textSuggestionController; |
| 329 } |
| 330 |
324 inline bool LocalFrame::inViewSourceMode() const { | 331 inline bool LocalFrame::inViewSourceMode() const { |
325 return m_inViewSourceMode; | 332 return m_inViewSourceMode; |
326 } | 333 } |
327 | 334 |
328 inline void LocalFrame::setInViewSourceMode(bool mode) { | 335 inline void LocalFrame::setInViewSourceMode(bool mode) { |
329 m_inViewSourceMode = mode; | 336 m_inViewSourceMode = mode; |
330 } | 337 } |
331 | 338 |
332 inline EventHandler& LocalFrame::eventHandler() const { | 339 inline EventHandler& LocalFrame::eventHandler() const { |
333 ASSERT(m_eventHandler); | 340 ASSERT(m_eventHandler); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 explicit ScopedFrameBlamer(LocalFrame*); | 383 explicit ScopedFrameBlamer(LocalFrame*); |
377 ~ScopedFrameBlamer(); | 384 ~ScopedFrameBlamer(); |
378 | 385 |
379 private: | 386 private: |
380 Member<LocalFrame> m_frame; | 387 Member<LocalFrame> m_frame; |
381 }; | 388 }; |
382 | 389 |
383 } // namespace blink | 390 } // namespace blink |
384 | 391 |
385 #endif // LocalFrame_h | 392 #endif // LocalFrame_h |
OLD | NEW |