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

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

Issue 2581063002: Add IdleSpellCheckCallback to LocalFrame (Closed)
Patch Set: Fri Dec 16 12:24:18 JST 2016 Created 4 years 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 template <typename Traversal> 51 template <typename Traversal>
52 class EditingAlgorithm; 52 class EditingAlgorithm;
53 class Element; 53 class Element;
54 template <typename Strategy> 54 template <typename Strategy>
55 class EphemeralRangeTemplate; 55 class EphemeralRangeTemplate;
56 class EventHandler; 56 class EventHandler;
57 class FloatSize; 57 class FloatSize;
58 class FrameConsole; 58 class FrameConsole;
59 class FrameSelection; 59 class FrameSelection;
60 class FrameView; 60 class FrameView;
61 class IdleSpellCheckCallback;
61 class InputMethodController; 62 class InputMethodController;
62 class InstrumentingAgents; 63 class InstrumentingAgents;
63 class InterfaceProvider; 64 class InterfaceProvider;
64 class InterfaceRegistry; 65 class InterfaceRegistry;
65 class IntPoint; 66 class IntPoint;
66 class IntSize; 67 class IntSize;
67 class LayoutView; 68 class LayoutView;
68 class LayoutViewItem; 69 class LayoutViewItem;
69 class LocalDOMWindow; 70 class LocalDOMWindow;
70 class NavigationScheduler; 71 class NavigationScheduler;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 138
138 Editor& editor() const; 139 Editor& editor() const;
139 EventHandler& eventHandler() const; 140 EventHandler& eventHandler() const;
140 FrameLoader& loader() const; 141 FrameLoader& loader() const;
141 NavigationScheduler& navigationScheduler() const; 142 NavigationScheduler& navigationScheduler() const;
142 FrameSelection& selection() const; 143 FrameSelection& selection() const;
143 InputMethodController& inputMethodController() const; 144 InputMethodController& inputMethodController() const;
144 ScriptController& script() const; 145 ScriptController& script() const;
145 SpellChecker& spellChecker() const; 146 SpellChecker& spellChecker() const;
146 FrameConsole& console() const; 147 FrameConsole& console() const;
148 IdleSpellCheckCallback& idleSpellCheckCallback() const;
147 149
148 // This method is used to get the highest level LocalFrame in this 150 // This method is used to get the highest level LocalFrame in this
149 // frame's in-process subtree. 151 // frame's in-process subtree.
150 // FIXME: This is a temporary hack to support RemoteFrames, and callers 152 // FIXME: This is a temporary hack to support RemoteFrames, and callers
151 // should be updated to avoid storing things on the main frame. 153 // should be updated to avoid storing things on the main frame.
152 LocalFrame* localFrameRoot(); 154 LocalFrame* localFrameRoot();
153 155
154 // Note that the result of this function should not be cached: a frame is 156 // Note that the result of this function should not be cached: a frame is
155 // not necessarily detached when it is navigated, so the return value can 157 // not necessarily detached when it is navigated, so the return value can
156 // change. 158 // change.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // Usually 0. Non-null if this is the top frame of PagePopup. 253 // Usually 0. Non-null if this is the top frame of PagePopup.
252 Member<Element> m_pagePopupOwner; 254 Member<Element> m_pagePopupOwner;
253 255
254 const Member<ScriptController> m_script; 256 const Member<ScriptController> m_script;
255 const Member<Editor> m_editor; 257 const Member<Editor> m_editor;
256 const Member<SpellChecker> m_spellChecker; 258 const Member<SpellChecker> m_spellChecker;
257 const Member<FrameSelection> m_selection; 259 const Member<FrameSelection> m_selection;
258 const Member<EventHandler> m_eventHandler; 260 const Member<EventHandler> m_eventHandler;
259 const Member<FrameConsole> m_console; 261 const Member<FrameConsole> m_console;
260 const Member<InputMethodController> m_inputMethodController; 262 const Member<InputMethodController> m_inputMethodController;
263 const Member<IdleSpellCheckCallback> m_idleSpellCheckCallback;
261 264
262 int m_navigationDisableCount; 265 int m_navigationDisableCount;
263 266
264 float m_pageZoomFactor; 267 float m_pageZoomFactor;
265 float m_textZoomFactor; 268 float m_textZoomFactor;
266 269
267 bool m_inViewSourceMode; 270 bool m_inViewSourceMode;
268 271
269 Member<InstrumentingAgents> m_instrumentingAgents; 272 Member<InstrumentingAgents> m_instrumentingAgents;
270 Member<PerformanceMonitor> m_performanceMonitor; 273 Member<PerformanceMonitor> m_performanceMonitor;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 323
321 inline void LocalFrame::setInViewSourceMode(bool mode) { 324 inline void LocalFrame::setInViewSourceMode(bool mode) {
322 m_inViewSourceMode = mode; 325 m_inViewSourceMode = mode;
323 } 326 }
324 327
325 inline EventHandler& LocalFrame::eventHandler() const { 328 inline EventHandler& LocalFrame::eventHandler() const {
326 ASSERT(m_eventHandler); 329 ASSERT(m_eventHandler);
327 return *m_eventHandler; 330 return *m_eventHandler;
328 } 331 }
329 332
333 inline IdleSpellCheckCallback& LocalFrame::idleSpellCheckCallback() const {
334 DCHECK(m_idleSpellCheckCallback);
335 return *m_idleSpellCheckCallback;
336 }
337
330 DEFINE_TYPE_CASTS(LocalFrame, 338 DEFINE_TYPE_CASTS(LocalFrame,
331 Frame, 339 Frame,
332 localFrame, 340 localFrame,
333 localFrame->isLocalFrame(), 341 localFrame->isLocalFrame(),
334 localFrame.isLocalFrame()); 342 localFrame.isLocalFrame());
335 343
336 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); 344 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame);
337 345
338 class FrameNavigationDisabler { 346 class FrameNavigationDisabler {
339 WTF_MAKE_NONCOPYABLE(FrameNavigationDisabler); 347 WTF_MAKE_NONCOPYABLE(FrameNavigationDisabler);
(...skipping 29 matching lines...) Expand all
369 explicit ScopedFrameBlamer(LocalFrame*); 377 explicit ScopedFrameBlamer(LocalFrame*);
370 ~ScopedFrameBlamer(); 378 ~ScopedFrameBlamer();
371 379
372 private: 380 private:
373 Member<LocalFrame> m_frame; 381 Member<LocalFrame> m_frame;
374 }; 382 };
375 383
376 } // namespace blink 384 } // namespace blink
377 385
378 #endif // LocalFrame_h 386 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698