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

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: Fix dependency 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 138 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 } 362 }
360 363
361 inline FrameConsole& LocalFrame::Console() const { 364 inline FrameConsole& LocalFrame::Console() const {
362 return *console_; 365 return *console_;
363 } 366 }
364 367
365 inline InputMethodController& LocalFrame::GetInputMethodController() const { 368 inline InputMethodController& LocalFrame::GetInputMethodController() const {
366 return *input_method_controller_; 369 return *input_method_controller_;
367 } 370 }
368 371
372 inline TextSuggestionController& LocalFrame::GetTextSuggestionController()
373 const {
374 return *text_suggestion_controller_;
375 }
376
369 inline bool LocalFrame::InViewSourceMode() const { 377 inline bool LocalFrame::InViewSourceMode() const {
370 return in_view_source_mode_; 378 return in_view_source_mode_;
371 } 379 }
372 380
373 inline void LocalFrame::SetInViewSourceMode(bool mode) { 381 inline void LocalFrame::SetInViewSourceMode(bool mode) {
374 in_view_source_mode_ = mode; 382 in_view_source_mode_ = mode;
375 } 383 }
376 384
377 inline EventHandler& LocalFrame::GetEventHandler() const { 385 inline EventHandler& LocalFrame::GetEventHandler() const {
378 DCHECK(event_handler_); 386 DCHECK(event_handler_);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 explicit ScopedFrameBlamer(LocalFrame*); 429 explicit ScopedFrameBlamer(LocalFrame*);
422 ~ScopedFrameBlamer(); 430 ~ScopedFrameBlamer();
423 431
424 private: 432 private:
425 Member<LocalFrame> frame_; 433 Member<LocalFrame> frame_;
426 }; 434 };
427 435
428 } // namespace blink 436 } // namespace blink
429 437
430 #endif // LocalFrame_h 438 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698