| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |