| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "core/dom/ContextLifecycleObserver.h" | 34 #include "core/dom/ContextLifecycleObserver.h" |
| 35 #include "core/html/track/TextTrack.h" | 35 #include "core/html/track/TextTrack.h" |
| 36 #include "platform/Timer.h" | 36 #include "platform/Timer.h" |
| 37 #include "platform/geometry/FloatPoint.h" | 37 #include "platform/geometry/FloatPoint.h" |
| 38 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
| 39 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 40 #include "wtf/RefCounted.h" | 40 #include "wtf/RefCounted.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 class Document; |
| 44 class ExceptionState; | 45 class ExceptionState; |
| 45 class HTMLDivElement; | 46 class HTMLDivElement; |
| 46 class VTTCueBox; | 47 class VTTCueBox; |
| 47 class VTTScanner; | 48 class VTTScanner; |
| 48 | 49 |
| 49 class VTTRegion FINAL : public RefCountedWillBeGarbageCollectedFinalized<VTTRegi
on> { | 50 class VTTRegion FINAL : public RefCountedWillBeGarbageCollectedFinalized<VTTRegi
on> { |
| 50 public: | 51 public: |
| 51 static PassRefPtrWillBeRawPtr<VTTRegion> create() | 52 static PassRefPtrWillBeRawPtr<VTTRegion> create() |
| 52 { | 53 { |
| 53 return adoptRefWillBeNoop(new VTTRegion()); | 54 return adoptRefWillBeNoop(new VTTRegion()); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // The timer is used to display the next cue line after the current one has | 149 // The timer is used to display the next cue line after the current one has |
| 149 // been displayed. It's main use is for scrolling regions and it triggers as | 150 // been displayed. It's main use is for scrolling regions and it triggers as |
| 150 // soon as the animation for rolling out one line has finished, but | 151 // soon as the animation for rolling out one line has finished, but |
| 151 // currently it is used also for non-scrolling regions to use a single | 152 // currently it is used also for non-scrolling regions to use a single |
| 152 // code path. | 153 // code path. |
| 153 Timer<VTTRegion> m_scrollTimer; | 154 Timer<VTTRegion> m_scrollTimer; |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 } // namespace WebCore | 157 } // namespace WebCore |
| 157 #endif | 158 #endif |
| OLD | NEW |