| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 void setRegionSettings(const String&); | 90 void setRegionSettings(const String&); |
| 91 | 91 |
| 92 bool isScrollingRegion() { return m_scroll; } | 92 bool isScrollingRegion() { return m_scroll; } |
| 93 | 93 |
| 94 PassRefPtrWillBeRawPtr<HTMLDivElement> getDisplayTree(Document&); | 94 PassRefPtrWillBeRawPtr<HTMLDivElement> getDisplayTree(Document&); |
| 95 | 95 |
| 96 void appendVTTCueBox(PassRefPtrWillBeRawPtr<VTTCueBox>); | 96 void appendVTTCueBox(PassRefPtrWillBeRawPtr<VTTCueBox>); |
| 97 void displayLastVTTCueBox(); | 97 void displayLastVTTCueBox(); |
| 98 void willRemoveVTTCueBox(VTTCueBox*); | 98 void willRemoveVTTCueBox(VTTCueBox*); |
| 99 | 99 |
| 100 void trace(Visitor*); | 100 virtual void trace(Visitor*); |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 VTTRegion(); | 103 VTTRegion(); |
| 104 | 104 |
| 105 void prepareRegionDisplayTree(); | 105 void prepareRegionDisplayTree(); |
| 106 | 106 |
| 107 // The timer is needed to continue processing when cue scrolling ended. | 107 // The timer is needed to continue processing when cue scrolling ended. |
| 108 void startTimer(); | 108 void startTimer(); |
| 109 void stopTimer(); | 109 void stopTimer(); |
| 110 void scrollTimerFired(Timer<VTTRegion>*); | 110 void scrollTimerFired(Timer<VTTRegion>*); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // The timer is used to display the next cue line after the current one has | 150 // The timer is used to display the next cue line after the current one has |
| 151 // been displayed. It's main use is for scrolling regions and it triggers as | 151 // been displayed. It's main use is for scrolling regions and it triggers as |
| 152 // soon as the animation for rolling out one line has finished, but | 152 // soon as the animation for rolling out one line has finished, but |
| 153 // currently it is used also for non-scrolling regions to use a single | 153 // currently it is used also for non-scrolling regions to use a single |
| 154 // code path. | 154 // code path. |
| 155 Timer<VTTRegion> m_scrollTimer; | 155 Timer<VTTRegion> m_scrollTimer; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace blink | 158 } // namespace blink |
| 159 #endif | 159 #endif |
| OLD | NEW |