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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Use correct base commit Created 3 years, 5 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
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 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 class LocalFrameClient; 73 class LocalFrameClient;
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 ScriptController; 81 class ScriptController;
82 class SpellChecker; 82 class SpellChecker;
83 class TextSuggestionController;
83 class WebFrameScheduler; 84 class WebFrameScheduler;
84 class WebPluginContainerBase; 85 class WebPluginContainerBase;
85 class WebURLLoader; 86 class WebURLLoader;
86 87
87 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; 88 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>;
88 89
89 class CORE_EXPORT LocalFrame final : public Frame, 90 class CORE_EXPORT LocalFrame final : public Frame,
90 public Supplementable<LocalFrame> { 91 public Supplementable<LocalFrame> {
91 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); 92 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame);
92 93
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Root of the layout tree for the document contained in this frame. 144 // Root of the layout tree for the document contained in this frame.
144 LayoutView* ContentLayoutObject() const; 145 LayoutView* ContentLayoutObject() const;
145 LayoutViewItem ContentLayoutItem() const; 146 LayoutViewItem ContentLayoutItem() const;
146 147
147 Editor& GetEditor() const; 148 Editor& GetEditor() const;
148 EventHandler& GetEventHandler() const; 149 EventHandler& GetEventHandler() const;
149 FrameLoader& Loader() const; 150 FrameLoader& Loader() const;
150 NavigationScheduler& GetNavigationScheduler() const; 151 NavigationScheduler& GetNavigationScheduler() const;
151 FrameSelection& Selection() const; 152 FrameSelection& Selection() const;
152 InputMethodController& GetInputMethodController() const; 153 InputMethodController& GetInputMethodController() const;
154 TextSuggestionController& GetTextSuggestionController() const;
153 ScriptController& GetScriptController() const; 155 ScriptController& GetScriptController() const;
154 SpellChecker& GetSpellChecker() const; 156 SpellChecker& GetSpellChecker() const;
155 FrameConsole& Console() const; 157 FrameConsole& Console() const;
156 158
157 // This method is used to get the highest level LocalFrame in this 159 // This method is used to get the highest level LocalFrame in this
158 // frame's in-process subtree. 160 // frame's in-process subtree.
159 // FIXME: This is a temporary hack to support RemoteFrames, and callers 161 // FIXME: This is a temporary hack to support RemoteFrames, and callers
160 // should be updated to avoid storing things on the main frame. 162 // should be updated to avoid storing things on the main frame.
161 LocalFrame& LocalFrameRoot() const; 163 LocalFrame& LocalFrameRoot() const;
162 164
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Usually 0. Non-null if this is the top frame of PagePopup. 300 // Usually 0. Non-null if this is the top frame of PagePopup.
299 Member<Element> page_popup_owner_; 301 Member<Element> page_popup_owner_;
300 302
301 const Member<ScriptController> script_controller_; 303 const Member<ScriptController> script_controller_;
302 const Member<Editor> editor_; 304 const Member<Editor> editor_;
303 const Member<SpellChecker> spell_checker_; 305 const Member<SpellChecker> spell_checker_;
304 const Member<FrameSelection> selection_; 306 const Member<FrameSelection> selection_;
305 const Member<EventHandler> event_handler_; 307 const Member<EventHandler> event_handler_;
306 const Member<FrameConsole> console_; 308 const Member<FrameConsole> console_;
307 const Member<InputMethodController> input_method_controller_; 309 const Member<InputMethodController> input_method_controller_;
310 const Member<TextSuggestionController> text_suggestion_controller_;
308 311
309 int navigation_disable_count_; 312 int navigation_disable_count_;
310 313
311 float page_zoom_factor_; 314 float page_zoom_factor_;
312 float text_zoom_factor_; 315 float text_zoom_factor_;
313 316
314 bool in_view_source_mode_; 317 bool in_view_source_mode_;
315 318
316 Member<CoreProbeSink> probe_sink_; 319 Member<CoreProbeSink> probe_sink_;
317 Member<PerformanceMonitor> performance_monitor_; 320 Member<PerformanceMonitor> performance_monitor_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 } 356 }
354 357
355 inline FrameConsole& LocalFrame::Console() const { 358 inline FrameConsole& LocalFrame::Console() const {
356 return *console_; 359 return *console_;
357 } 360 }
358 361
359 inline InputMethodController& LocalFrame::GetInputMethodController() const { 362 inline InputMethodController& LocalFrame::GetInputMethodController() const {
360 return *input_method_controller_; 363 return *input_method_controller_;
361 } 364 }
362 365
366 inline TextSuggestionController& LocalFrame::GetTextSuggestionController()
367 const {
368 return *text_suggestion_controller_;
369 }
370
363 inline bool LocalFrame::InViewSourceMode() const { 371 inline bool LocalFrame::InViewSourceMode() const {
364 return in_view_source_mode_; 372 return in_view_source_mode_;
365 } 373 }
366 374
367 inline void LocalFrame::SetInViewSourceMode(bool mode) { 375 inline void LocalFrame::SetInViewSourceMode(bool mode) {
368 in_view_source_mode_ = mode; 376 in_view_source_mode_ = mode;
369 } 377 }
370 378
371 inline EventHandler& LocalFrame::GetEventHandler() const { 379 inline EventHandler& LocalFrame::GetEventHandler() const {
372 DCHECK(event_handler_); 380 DCHECK(event_handler_);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 432
425 private: 433 private:
426 void LeaveContext(); 434 void LeaveContext();
427 435
428 Member<LocalFrame> frame_; 436 Member<LocalFrame> frame_;
429 }; 437 };
430 438
431 } // namespace blink 439 } // namespace blink
432 440
433 #endif // LocalFrame_h 441 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698