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

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

Issue 2701983002: Implement complete lifecycle transition for IdleSpellCheckCallback (Closed)
Patch Set: Add lifecycle transition unit tests Created 3 years, 10 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 EventHandler& eventHandler() const; 140 EventHandler& eventHandler() const;
141 FrameLoader& loader() const; 141 FrameLoader& loader() const;
142 NavigationScheduler& navigationScheduler() const; 142 NavigationScheduler& navigationScheduler() const;
143 FrameSelection& selection() const; 143 FrameSelection& selection() const;
144 InputMethodController& inputMethodController() const; 144 InputMethodController& inputMethodController() const;
145 ScriptController& script() const; 145 ScriptController& script() const;
146 SpellChecker& spellChecker() const; 146 SpellChecker& spellChecker() const;
147 FrameConsole& console() const; 147 FrameConsole& console() const;
148 IdleSpellCheckCallback& idleSpellCheckCallback() const; 148 IdleSpellCheckCallback& idleSpellCheckCallback() const;
149 149
150 // Requests spelling and grammar to be checked when the renderer is idle.
151 void setNeedsSpellChecking();
152
150 // This method is used to get the highest level LocalFrame in this 153 // This method is used to get the highest level LocalFrame in this
151 // frame's in-process subtree. 154 // frame's in-process subtree.
152 // FIXME: This is a temporary hack to support RemoteFrames, and callers 155 // FIXME: This is a temporary hack to support RemoteFrames, and callers
153 // should be updated to avoid storing things on the main frame. 156 // should be updated to avoid storing things on the main frame.
154 LocalFrame* localFrameRoot(); 157 LocalFrame* localFrameRoot();
155 158
156 // Note that the result of this function should not be cached: a frame is 159 // Note that the result of this function should not be cached: a frame is
157 // not necessarily detached when it is navigated, so the return value can 160 // not necessarily detached when it is navigated, so the return value can
158 // change. 161 // change.
159 // In addition, this function will always return true for a detached frame. 162 // In addition, this function will always return true for a detached frame.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 explicit ScopedFrameBlamer(LocalFrame*); 381 explicit ScopedFrameBlamer(LocalFrame*);
379 ~ScopedFrameBlamer(); 382 ~ScopedFrameBlamer();
380 383
381 private: 384 private:
382 Member<LocalFrame> m_frame; 385 Member<LocalFrame> m_frame;
383 }; 386 };
384 387
385 } // namespace blink 388 } // namespace blink
386 389
387 #endif // LocalFrame_h 390 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698