OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 return new DOMTimer(context, action, timeout, singleShot, timeoutID); | 76 return new DOMTimer(context, action, timeout, singleShot, timeoutID); |
77 } | 77 } |
78 | 78 |
79 DOMTimer(ExecutionContext*, | 79 DOMTimer(ExecutionContext*, |
80 ScheduledAction*, | 80 ScheduledAction*, |
81 int interval, | 81 int interval, |
82 bool singleShot, | 82 bool singleShot, |
83 int timeoutID); | 83 int timeoutID); |
84 void fired() override; | 84 void fired() override; |
85 | 85 |
86 WebTaskRunner* timerTaskRunner() const override; | 86 RefPtr<WebTaskRunner> timerTaskRunner() const override; |
87 | 87 |
88 int m_timeoutID; | 88 int m_timeoutID; |
89 int m_nestingLevel; | 89 int m_nestingLevel; |
90 Member<ScheduledAction> m_action; | 90 Member<ScheduledAction> m_action; |
91 RefPtr<UserGestureToken> m_userGestureToken; | 91 RefPtr<UserGestureToken> m_userGestureToken; |
92 }; | 92 }; |
93 | 93 |
94 } // namespace blink | 94 } // namespace blink |
95 | 95 |
96 #endif // DOMTimer_h | 96 #endif // DOMTimer_h |
OLD | NEW |