| 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 14 matching lines...) Expand all Loading... |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef DOMTimer_h | 27 #ifndef DOMTimer_h |
| 28 #define DOMTimer_h | 28 #define DOMTimer_h |
| 29 | 29 |
| 30 #include "bindings/core/v8/ScheduledAction.h" | 30 #include "bindings/core/v8/ScheduledAction.h" |
| 31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 32 #include "core/frame/SuspendableTimer.h" | 32 #include "core/frame/SuspendableTimer.h" |
| 33 #include "platform/UserGestureIndicator.h" | 33 #include "platform/UserGestureIndicator.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "wtf/OwnPtr.h" |
| 36 #include "wtf/PassOwnPtr.h" |
| 35 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
| 36 | 38 |
| 37 namespace blink { | 39 namespace blink { |
| 38 | 40 |
| 39 class ExecutionContext; | 41 class ExecutionContext; |
| 40 | 42 |
| 41 class CORE_EXPORT DOMTimer final : public GarbageCollectedFinalized<DOMTimer>, p
ublic SuspendableTimer { | 43 class CORE_EXPORT DOMTimer final : public GarbageCollectedFinalized<DOMTimer>, p
ublic SuspendableTimer { |
| 42 USING_GARBAGE_COLLECTED_MIXIN(DOMTimer); | 44 USING_GARBAGE_COLLECTED_MIXIN(DOMTimer); |
| 43 public: | 45 public: |
| 44 // Creates a new timer owned by the ExecutionContext, starts it and returns
its ID. | 46 // Creates a new timer owned by the ExecutionContext, starts it and returns
its ID. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 74 | 76 |
| 75 int m_timeoutID; | 77 int m_timeoutID; |
| 76 int m_nestingLevel; | 78 int m_nestingLevel; |
| 77 Member<ScheduledAction> m_action; | 79 Member<ScheduledAction> m_action; |
| 78 RefPtr<UserGestureToken> m_userGestureToken; | 80 RefPtr<UserGestureToken> m_userGestureToken; |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 } // namespace blink | 83 } // namespace blink |
| 82 | 84 |
| 83 #endif // DOMTimer_h | 85 #endif // DOMTimer_h |
| OLD | NEW |