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