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

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: Respond to latest comments 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 class NavigationScheduler; 77 class NavigationScheduler;
78 class Node; 78 class Node;
79 class NodeTraversal; 79 class NodeTraversal;
80 class PerformanceMonitor; 80 class PerformanceMonitor;
81 template <typename Strategy> 81 template <typename Strategy>
82 class PositionWithAffinityTemplate; 82 class PositionWithAffinityTemplate;
83 class PluginData; 83 class PluginData;
84 class ResourceRequest; 84 class ResourceRequest;
85 class ScriptController; 85 class ScriptController;
86 class SpellChecker; 86 class SpellChecker;
87 class TextSuggestionController;
87 class WebFrameScheduler; 88 class WebFrameScheduler;
88 class WebPluginContainerImpl; 89 class WebPluginContainerImpl;
89 class WebTaskRunner; 90 class WebTaskRunner;
90 class WebURLLoader; 91 class WebURLLoader;
91 92
92 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; 93 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>;
93 94
94 class CORE_EXPORT LocalFrame final : public Frame, 95 class CORE_EXPORT LocalFrame final : public Frame,
95 public Supplementable<LocalFrame> { 96 public Supplementable<LocalFrame> {
96 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); 97 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Root of the layout tree for the document contained in this frame. 151 // Root of the layout tree for the document contained in this frame.
151 LayoutView* ContentLayoutObject() const; 152 LayoutView* ContentLayoutObject() const;
152 LayoutViewItem ContentLayoutItem() const; 153 LayoutViewItem ContentLayoutItem() const;
153 154
154 Editor& GetEditor() const; 155 Editor& GetEditor() const;
155 EventHandler& GetEventHandler() const; 156 EventHandler& GetEventHandler() const;
156 FrameLoader& Loader() const; 157 FrameLoader& Loader() const;
157 NavigationScheduler& GetNavigationScheduler() const; 158 NavigationScheduler& GetNavigationScheduler() const;
158 FrameSelection& Selection() const; 159 FrameSelection& Selection() const;
159 InputMethodController& GetInputMethodController() const; 160 InputMethodController& GetInputMethodController() const;
161 TextSuggestionController& GetTextSuggestionController() const;
160 ScriptController& GetScriptController() const; 162 ScriptController& GetScriptController() const;
161 SpellChecker& GetSpellChecker() const; 163 SpellChecker& GetSpellChecker() const;
162 FrameConsole& Console() const; 164 FrameConsole& Console() const;
163 165
164 // This method is used to get the highest level LocalFrame in this 166 // This method is used to get the highest level LocalFrame in this
165 // frame's in-process subtree. 167 // frame's in-process subtree.
166 // FIXME: This is a temporary hack to support RemoteFrames, and callers 168 // FIXME: This is a temporary hack to support RemoteFrames, and callers
167 // should be updated to avoid storing things on the main frame. 169 // should be updated to avoid storing things on the main frame.
168 LocalFrame& LocalFrameRoot() const; 170 LocalFrame& LocalFrameRoot() const;
169 171
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Usually 0. Non-null if this is the top frame of PagePopup. 306 // Usually 0. Non-null if this is the top frame of PagePopup.
305 Member<Element> page_popup_owner_; 307 Member<Element> page_popup_owner_;
306 308
307 const Member<ScriptController> script_controller_; 309 const Member<ScriptController> script_controller_;
308 const Member<Editor> editor_; 310 const Member<Editor> editor_;
309 const Member<SpellChecker> spell_checker_; 311 const Member<SpellChecker> spell_checker_;
310 const Member<FrameSelection> selection_; 312 const Member<FrameSelection> selection_;
311 const Member<EventHandler> event_handler_; 313 const Member<EventHandler> event_handler_;
312 const Member<FrameConsole> console_; 314 const Member<FrameConsole> console_;
313 const Member<InputMethodController> input_method_controller_; 315 const Member<InputMethodController> input_method_controller_;
316 const Member<TextSuggestionController> text_suggestion_controller_;
314 317
315 int navigation_disable_count_; 318 int navigation_disable_count_;
316 319
317 float page_zoom_factor_; 320 float page_zoom_factor_;
318 float text_zoom_factor_; 321 float text_zoom_factor_;
319 322
320 bool in_view_source_mode_; 323 bool in_view_source_mode_;
321 324
322 Member<CoreProbeSink> probe_sink_; 325 Member<CoreProbeSink> probe_sink_;
323 Member<PerformanceMonitor> performance_monitor_; 326 Member<PerformanceMonitor> performance_monitor_;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 437
430 private: 438 private:
431 void LeaveContext(); 439 void LeaveContext();
432 440
433 Member<LocalFrame> frame_; 441 Member<LocalFrame> frame_;
434 }; 442 };
435 443
436 } // namespace blink 444 } // namespace blink
437 445
438 #endif // LocalFrame_h 446 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698