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

Side by Side Diff: Source/WebCore/platform/Clock.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: Change WebMediaPlayer to only have the xxxFloat methods. 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 18 matching lines...) Expand all
29 #include <wtf/PassRefPtr.h> 29 #include <wtf/PassRefPtr.h>
30 #include <wtf/RefCounted.h> 30 #include <wtf/RefCounted.h>
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class Clock : public RefCounted<Clock> { 34 class Clock : public RefCounted<Clock> {
35 public: 35 public:
36 static PassRefPtr<Clock> create(); 36 static PassRefPtr<Clock> create();
37 virtual ~Clock() { } 37 virtual ~Clock() { }
38 38
39 virtual void setCurrentTime(float) = 0; 39 virtual void setCurrentTime(double) = 0;
40 virtual float currentTime() const = 0; 40 virtual double currentTime() const = 0;
41 41
42 virtual void setPlayRate(float) = 0; 42 virtual void setPlayRate(double) = 0;
43 virtual float playRate() const = 0; 43 virtual double playRate() const = 0;
44 44
45 virtual void start() = 0; 45 virtual void start() = 0;
46 virtual void stop() = 0; 46 virtual void stop() = 0;
47 virtual bool isRunning() const = 0; 47 virtual bool isRunning() const = 0;
48 48
49 protected: 49 protected:
50 Clock() { } 50 Clock() { }
51 }; 51 };
52 52
53 } 53 }
54 54
55 #endif 55 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698