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

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h

Issue 2612713002: Move core/editing timer to frame-specific task runners. (Closed)
Patch Set: Created 3 years, 11 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IdleSpellCheckCallback_h 5 #ifndef IdleSpellCheckCallback_h
6 #define IdleSpellCheckCallback_h 6 #define IdleSpellCheckCallback_h
7 7
8 #include "core/dom/IdleRequestCallback.h" 8 #include "core/dom/IdleRequestCallback.h"
9 #include "platform/Timer.h" 9 #include "platform/Timer.h"
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void hotModeInvocation(IdleDeadline*); 72 void hotModeInvocation(IdleDeadline*);
73 73
74 // Functions for cold mode. 74 // Functions for cold mode.
75 void coldModeTimerFired(TimerBase*); 75 void coldModeTimerFired(TimerBase*);
76 void coldModeInvocation(IdleDeadline*); 76 void coldModeInvocation(IdleDeadline*);
77 bool coldModeFinishesFullDocument() const; 77 bool coldModeFinishesFullDocument() const;
78 78
79 State m_state; 79 State m_state;
80 const Member<LocalFrame> m_frame; 80 const Member<LocalFrame> m_frame;
81 81
82 // TODO(xiaochengh): assign the timer to some proper task runner. 82 TaskRunnerTimer<IdleSpellCheckCallback> m_coldModeTimer;
83 Timer<IdleSpellCheckCallback> m_coldModeTimer;
84 }; 83 };
85 84
86 } // namespace blink 85 } // namespace blink
87 86
88 #endif // IdleSpellCheckCallback_h 87 #endif // IdleSpellCheckCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698