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

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: Created 3 years, 6 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Root of the layout tree for the document contained in this frame. 146 // Root of the layout tree for the document contained in this frame.
146 LayoutView* ContentLayoutObject() const; 147 LayoutView* ContentLayoutObject() const;
147 LayoutViewItem ContentLayoutItem() const; 148 LayoutViewItem ContentLayoutItem() const;
148 149
149 Editor& GetEditor() const; 150 Editor& GetEditor() const;
150 EventHandler& GetEventHandler() const; 151 EventHandler& GetEventHandler() const;
151 FrameLoader& Loader() const; 152 FrameLoader& Loader() const;
152 NavigationScheduler& GetNavigationScheduler() const; 153 NavigationScheduler& GetNavigationScheduler() const;
153 FrameSelection& Selection() const; 154 FrameSelection& Selection() const;
154 InputMethodController& GetInputMethodController() const; 155 InputMethodController& GetInputMethodController() const;
156 TextSuggestionController& GetTextSuggestionController() const;
155 ScriptController& GetScriptController() const; 157 ScriptController& GetScriptController() const;
156 SpellChecker& GetSpellChecker() const; 158 SpellChecker& GetSpellChecker() const;
157 FrameConsole& Console() const; 159 FrameConsole& Console() const;
158 160
159 // This method is used to get the highest level LocalFrame in this 161 // This method is used to get the highest level LocalFrame in this
160 // frame's in-process subtree. 162 // frame's in-process subtree.
161 // FIXME: This is a temporary hack to support RemoteFrames, and callers 163 // FIXME: This is a temporary hack to support RemoteFrames, and callers
162 // should be updated to avoid storing things on the main frame. 164 // should be updated to avoid storing things on the main frame.
163 LocalFrame& LocalFrameRoot() const; 165 LocalFrame& LocalFrameRoot() const;
164 166
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 explicit ScopedFrameBlamer(LocalFrame*); 418 explicit ScopedFrameBlamer(LocalFrame*);
411 ~ScopedFrameBlamer(); 419 ~ScopedFrameBlamer();
412 420
413 private: 421 private:
414 Member<LocalFrame> frame_; 422 Member<LocalFrame> frame_;
415 }; 423 };
416 424
417 } // namespace blink 425 } // namespace blink
418 426
419 #endif // LocalFrame_h 427 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698