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

Side by Side Diff: public/platform/WebScheduler.h

Issue 1119683003: Implement requestIdleCallback API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/WebScheduler.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 WebScheduler_h 5 #ifndef WebScheduler_h
6 #define WebScheduler_h 6 #define WebScheduler_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "public/platform/WebThread.h" 9 #include "public/platform/WebThread.h"
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 #ifdef INSIDE_BLINK 86 #ifdef INSIDE_BLINK
87 // Helpers for posting bound functions as tasks. 87 // Helpers for posting bound functions as tasks.
88 typedef Function<void(double deadlineSeconds)> IdleTask; 88 typedef Function<void(double deadlineSeconds)> IdleTask;
89 typedef Function<void()> Task; 89 typedef Function<void()> Task;
90 90
91 void postIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>); 91 void postIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>);
92 void postNonNestableIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>); 92 void postNonNestableIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>);
93 void postIdleTaskAfterWakeup(const WebTraceLocation&, PassOwnPtr<IdleTask>); 93 void postIdleTaskAfterWakeup(const WebTraceLocation&, PassOwnPtr<IdleTask>);
94 void postLoadingTask(const WebTraceLocation&, PassOwnPtr<Task>); 94 void postLoadingTask(const WebTraceLocation&, PassOwnPtr<Task>);
95 void postTimerTask(const WebTraceLocation&, PassOwnPtr<Task>, long long dela yMs);
95 #endif 96 #endif
96 }; 97 };
97 98
98 } // namespace blink 99 } // namespace blink
99 100
100 #endif // WebScheduler_h 101 #endif // WebScheduler_h
OLDNEW
« no previous file with comments | « Source/platform/WebScheduler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698