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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 class NavigationScheduler; | 74 class NavigationScheduler; |
75 class Node; | 75 class Node; |
76 class NodeTraversal; | 76 class NodeTraversal; |
77 class PerformanceMonitor; | 77 class PerformanceMonitor; |
78 template <typename Strategy> | 78 template <typename Strategy> |
79 class PositionWithAffinityTemplate; | 79 class PositionWithAffinityTemplate; |
80 class PluginData; | 80 class PluginData; |
81 class ResourceRequest; | 81 class ResourceRequest; |
82 class ScriptController; | 82 class ScriptController; |
83 class SpellChecker; | 83 class SpellChecker; |
| 84 class TextSuggestionController; |
84 class WebFrameScheduler; | 85 class WebFrameScheduler; |
85 class WebPluginContainerImpl; | 86 class WebPluginContainerImpl; |
86 class WebTaskRunner; | 87 class WebTaskRunner; |
87 class WebURLLoader; | 88 class WebURLLoader; |
88 | 89 |
89 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; | 90 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; |
90 | 91 |
91 class CORE_EXPORT LocalFrame final : public Frame, | 92 class CORE_EXPORT LocalFrame final : public Frame, |
92 public Supplementable<LocalFrame> { | 93 public Supplementable<LocalFrame> { |
93 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); | 94 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // Root of the layout tree for the document contained in this frame. | 148 // Root of the layout tree for the document contained in this frame. |
148 LayoutView* ContentLayoutObject() const; | 149 LayoutView* ContentLayoutObject() const; |
149 LayoutViewItem ContentLayoutItem() const; | 150 LayoutViewItem ContentLayoutItem() const; |
150 | 151 |
151 Editor& GetEditor() const; | 152 Editor& GetEditor() const; |
152 EventHandler& GetEventHandler() const; | 153 EventHandler& GetEventHandler() const; |
153 FrameLoader& Loader() const; | 154 FrameLoader& Loader() const; |
154 NavigationScheduler& GetNavigationScheduler() const; | 155 NavigationScheduler& GetNavigationScheduler() const; |
155 FrameSelection& Selection() const; | 156 FrameSelection& Selection() const; |
156 InputMethodController& GetInputMethodController() const; | 157 InputMethodController& GetInputMethodController() const; |
| 158 TextSuggestionController& GetTextSuggestionController() const; |
157 ScriptController& GetScriptController() const; | 159 ScriptController& GetScriptController() const; |
158 SpellChecker& GetSpellChecker() const; | 160 SpellChecker& GetSpellChecker() const; |
159 FrameConsole& Console() const; | 161 FrameConsole& Console() const; |
160 | 162 |
161 // This method is used to get the highest level LocalFrame in this | 163 // This method is used to get the highest level LocalFrame in this |
162 // frame's in-process subtree. | 164 // frame's in-process subtree. |
163 // FIXME: This is a temporary hack to support RemoteFrames, and callers | 165 // FIXME: This is a temporary hack to support RemoteFrames, and callers |
164 // should be updated to avoid storing things on the main frame. | 166 // should be updated to avoid storing things on the main frame. |
165 LocalFrame& LocalFrameRoot() const; | 167 LocalFrame& LocalFrameRoot() const; |
166 | 168 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // Usually 0. Non-null if this is the top frame of PagePopup. | 296 // Usually 0. Non-null if this is the top frame of PagePopup. |
295 Member<Element> page_popup_owner_; | 297 Member<Element> page_popup_owner_; |
296 | 298 |
297 const Member<ScriptController> script_controller_; | 299 const Member<ScriptController> script_controller_; |
298 const Member<Editor> editor_; | 300 const Member<Editor> editor_; |
299 const Member<SpellChecker> spell_checker_; | 301 const Member<SpellChecker> spell_checker_; |
300 const Member<FrameSelection> selection_; | 302 const Member<FrameSelection> selection_; |
301 const Member<EventHandler> event_handler_; | 303 const Member<EventHandler> event_handler_; |
302 const Member<FrameConsole> console_; | 304 const Member<FrameConsole> console_; |
303 const Member<InputMethodController> input_method_controller_; | 305 const Member<InputMethodController> input_method_controller_; |
| 306 const Member<TextSuggestionController> text_suggestion_controller_; |
304 | 307 |
305 int navigation_disable_count_; | 308 int navigation_disable_count_; |
306 | 309 |
307 float page_zoom_factor_; | 310 float page_zoom_factor_; |
308 float text_zoom_factor_; | 311 float text_zoom_factor_; |
309 | 312 |
310 bool in_view_source_mode_; | 313 bool in_view_source_mode_; |
311 | 314 |
312 Member<CoreProbeSink> probe_sink_; | 315 Member<CoreProbeSink> probe_sink_; |
313 Member<PerformanceMonitor> performance_monitor_; | 316 Member<PerformanceMonitor> performance_monitor_; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 } | 351 } |
349 | 352 |
350 inline FrameConsole& LocalFrame::Console() const { | 353 inline FrameConsole& LocalFrame::Console() const { |
351 return *console_; | 354 return *console_; |
352 } | 355 } |
353 | 356 |
354 inline InputMethodController& LocalFrame::GetInputMethodController() const { | 357 inline InputMethodController& LocalFrame::GetInputMethodController() const { |
355 return *input_method_controller_; | 358 return *input_method_controller_; |
356 } | 359 } |
357 | 360 |
| 361 inline TextSuggestionController& LocalFrame::GetTextSuggestionController() |
| 362 const { |
| 363 return *text_suggestion_controller_; |
| 364 } |
| 365 |
358 inline bool LocalFrame::InViewSourceMode() const { | 366 inline bool LocalFrame::InViewSourceMode() const { |
359 return in_view_source_mode_; | 367 return in_view_source_mode_; |
360 } | 368 } |
361 | 369 |
362 inline void LocalFrame::SetInViewSourceMode(bool mode) { | 370 inline void LocalFrame::SetInViewSourceMode(bool mode) { |
363 in_view_source_mode_ = mode; | 371 in_view_source_mode_ = mode; |
364 } | 372 } |
365 | 373 |
366 inline EventHandler& LocalFrame::GetEventHandler() const { | 374 inline EventHandler& LocalFrame::GetEventHandler() const { |
367 DCHECK(event_handler_); | 375 DCHECK(event_handler_); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 427 |
420 private: | 428 private: |
421 void LeaveContext(); | 429 void LeaveContext(); |
422 | 430 |
423 Member<LocalFrame> frame_; | 431 Member<LocalFrame> frame_; |
424 }; | 432 }; |
425 | 433 |
426 } // namespace blink | 434 } // namespace blink |
427 | 435 |
428 #endif // LocalFrame_h | 436 #endif // LocalFrame_h |
OLD | NEW |