| 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" | |
| 37 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
| 38 | 36 |
| 39 namespace blink { | 37 namespace blink { |
| 40 | 38 |
| 41 class ExecutionContext; | 39 class ExecutionContext; |
| 42 | 40 |
| 43 class CORE_EXPORT DOMTimer final : public GarbageCollectedFinalized<DOMTimer>, p
ublic SuspendableTimer { | 41 class CORE_EXPORT DOMTimer final : public GarbageCollectedFinalized<DOMTimer>, p
ublic SuspendableTimer { |
| 44 USING_GARBAGE_COLLECTED_MIXIN(DOMTimer); | 42 USING_GARBAGE_COLLECTED_MIXIN(DOMTimer); |
| 45 public: | 43 public: |
| 46 // Creates a new timer owned by the ExecutionContext, starts it and returns
its ID. | 44 // Creates a new timer owned by the ExecutionContext, starts it and returns
its ID. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 76 | 74 |
| 77 int m_timeoutID; | 75 int m_timeoutID; |
| 78 int m_nestingLevel; | 76 int m_nestingLevel; |
| 79 Member<ScheduledAction> m_action; | 77 Member<ScheduledAction> m_action; |
| 80 RefPtr<UserGestureToken> m_userGestureToken; | 78 RefPtr<UserGestureToken> m_userGestureToken; |
| 81 }; | 79 }; |
| 82 | 80 |
| 83 } // namespace blink | 81 } // namespace blink |
| 84 | 82 |
| 85 #endif // DOMTimer_h | 83 #endif // DOMTimer_h |
| OLD | NEW |