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

Side by Side Diff: Source/WebCore/html/MediaControllerInterface.h

Issue 13454026: Update all float attributes in HTMLMediaElement and related objects to double (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed GTK change since the file is gone now. Created 7 years, 8 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
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 27 matching lines...) Expand all
38 38
39 class MediaControllerInterface { 39 class MediaControllerInterface {
40 public: 40 public:
41 virtual ~MediaControllerInterface() { }; 41 virtual ~MediaControllerInterface() { };
42 42
43 // MediaController IDL: 43 // MediaController IDL:
44 virtual PassRefPtr<TimeRanges> buffered() const = 0; 44 virtual PassRefPtr<TimeRanges> buffered() const = 0;
45 virtual PassRefPtr<TimeRanges> seekable() const = 0; 45 virtual PassRefPtr<TimeRanges> seekable() const = 0;
46 virtual PassRefPtr<TimeRanges> played() = 0; 46 virtual PassRefPtr<TimeRanges> played() = 0;
47 47
48 virtual float duration() const = 0; 48 virtual double duration() const = 0;
49 virtual float currentTime() const = 0; 49 virtual double currentTime() const = 0;
50 virtual void setCurrentTime(float, ExceptionCode&) = 0; 50 virtual void setCurrentTime(double, ExceptionCode&) = 0;
51 51
52 virtual bool paused() const = 0; 52 virtual bool paused() const = 0;
53 virtual void play() = 0; 53 virtual void play() = 0;
54 virtual void pause() = 0; 54 virtual void pause() = 0;
55 55
56 virtual float defaultPlaybackRate() const = 0; 56 virtual double defaultPlaybackRate() const = 0;
57 virtual void setDefaultPlaybackRate(float) = 0; 57 virtual void setDefaultPlaybackRate(double) = 0;
58 58
59 virtual float playbackRate() const = 0; 59 virtual double playbackRate() const = 0;
60 virtual void setPlaybackRate(float) = 0; 60 virtual void setPlaybackRate(double) = 0;
61 61
62 virtual float volume() const = 0; 62 virtual double volume() const = 0;
63 virtual void setVolume(float, ExceptionCode&) = 0; 63 virtual void setVolume(double, ExceptionCode&) = 0;
64 64
65 virtual bool muted() const = 0; 65 virtual bool muted() const = 0;
66 virtual void setMuted(bool) = 0; 66 virtual void setMuted(bool) = 0;
67 67
68 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA }; 68 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA };
69 virtual ReadyState readyState() const = 0; 69 virtual ReadyState readyState() const = 0;
70 70
71 // MediaControlElements: 71 // MediaControlElements:
72 virtual bool supportsFullscreen() const = 0; 72 virtual bool supportsFullscreen() const = 0;
73 virtual bool isFullscreen() const = 0; 73 virtual bool isFullscreen() const = 0;
(...skipping 16 matching lines...) Expand all
90 90
91 virtual bool hasCurrentSrc() const = 0; 91 virtual bool hasCurrentSrc() const = 0;
92 92
93 virtual void returnToRealtime() = 0; 93 virtual void returnToRealtime() = 0;
94 }; 94 };
95 95
96 } 96 }
97 97
98 #endif 98 #endif
99 #endif 99 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698