Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: Source/core/html/MediaController.h

Issue 517593003: Allow HTMLMediaElement.currentTime to be set before the transition to HAVE_METADATA (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/MediaController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 void addMediaElement(HTMLMediaElement*); 50 void addMediaElement(HTMLMediaElement*);
51 void removeMediaElement(HTMLMediaElement*); 51 void removeMediaElement(HTMLMediaElement*);
52 52
53 PassRefPtrWillBeRawPtr<TimeRanges> buffered() const; 53 PassRefPtrWillBeRawPtr<TimeRanges> buffered() const;
54 PassRefPtrWillBeRawPtr<TimeRanges> seekable() const; 54 PassRefPtrWillBeRawPtr<TimeRanges> seekable() const;
55 PassRefPtrWillBeRawPtr<TimeRanges> played(); 55 PassRefPtrWillBeRawPtr<TimeRanges> played();
56 56
57 double duration() const; 57 double duration() const;
58 double currentTime() const; 58 double currentTime() const;
59 void setCurrentTime(double, ExceptionState&); 59 void setCurrentTime(double);
60 60
61 bool paused() const { return m_paused; } 61 bool paused() const { return m_paused; }
62 void play(); 62 void play();
63 void pause(); 63 void pause();
64 void unpause(); 64 void unpause();
65 65
66 double defaultPlaybackRate() const { return m_defaultPlaybackRate; } 66 double defaultPlaybackRate() const { return m_defaultPlaybackRate; }
67 void setDefaultPlaybackRate(double); 67 void setDefaultPlaybackRate(double);
68 68
69 double playbackRate() const; 69 double playbackRate() const;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 mutable Timer<MediaController> m_clearPositionTimer; 127 mutable Timer<MediaController> m_clearPositionTimer;
128 OwnPtr<Clock> m_clock; 128 OwnPtr<Clock> m_clock;
129 RawPtrWillBeWeakMember<ExecutionContext> m_executionContext; 129 RawPtrWillBeWeakMember<ExecutionContext> m_executionContext;
130 Timer<MediaController> m_timeupdateTimer; 130 Timer<MediaController> m_timeupdateTimer;
131 double m_previousTimeupdateTime; 131 double m_previousTimeupdateTime;
132 }; 132 };
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // MediaController_h 136 #endif // MediaController_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/MediaController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698