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

Side by Side Diff: Source/WebCore/platform/graphics/MediaPlayer.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: Rebase 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported }; 273 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported };
274 274
275 MediaKeyException generateKeyRequest(const String& keySystem, const unsigned char* initData, unsigned initDataLength); 275 MediaKeyException generateKeyRequest(const String& keySystem, const unsigned char* initData, unsigned initDataLength);
276 MediaKeyException addKey(const String& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, cons t String& sessionId); 276 MediaKeyException addKey(const String& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, cons t String& sessionId);
277 MediaKeyException cancelKeyRequest(const String& keySystem, const String& se ssionId); 277 MediaKeyException cancelKeyRequest(const String& keySystem, const String& se ssionId);
278 #endif 278 #endif
279 279
280 bool paused() const; 280 bool paused() const;
281 bool seeking() const; 281 bool seeking() const;
282 282
283 static float invalidTime() { return -1.0f;} 283 static double invalidTime() { return -1.0;}
284 float duration() const; 284 double duration() const;
285 float currentTime() const; 285 double currentTime() const;
286 void seek(float time); 286 void seek(double time);
287 287
288 float startTime() const; 288 double startTime() const;
289 289
290 double initialTime() const; 290 double initialTime() const;
291 291
292 float rate() const; 292 double rate() const;
293 void setRate(float); 293 void setRate(double);
294 294
295 bool preservesPitch() const; 295 bool preservesPitch() const;
296 void setPreservesPitch(bool); 296 void setPreservesPitch(bool);
297 297
298 PassRefPtr<TimeRanges> buffered(); 298 PassRefPtr<TimeRanges> buffered();
299 PassRefPtr<TimeRanges> seekable(); 299 PassRefPtr<TimeRanges> seekable();
300 float maxTimeSeekable(); 300 double maxTimeSeekable();
301 301
302 bool didLoadingProgress(); 302 bool didLoadingProgress();
303 303
304 float volume() const; 304 double volume() const;
305 void setVolume(float); 305 void setVolume(double);
306 306
307 bool muted() const; 307 bool muted() const;
308 void setMuted(bool); 308 void setMuted(bool);
309 309
310 bool hasClosedCaptions() const; 310 bool hasClosedCaptions() const;
311 void setClosedCaptionsVisible(bool closedCaptionsVisible); 311 void setClosedCaptionsVisible(bool closedCaptionsVisible);
312 312
313 bool autoplay() const; 313 bool autoplay() const;
314 void setAutoplay(bool); 314 void setAutoplay(bool);
315 315
(...skipping 23 matching lines...) Expand all
339 339
340 enum MovieLoadType { Unknown, Download, StoredStream, LiveStream }; 340 enum MovieLoadType { Unknown, Download, StoredStream, LiveStream };
341 MovieLoadType movieLoadType() const; 341 MovieLoadType movieLoadType() const;
342 342
343 enum Preload { None, MetaData, Auto }; 343 enum Preload { None, MetaData, Auto };
344 Preload preload() const; 344 Preload preload() const;
345 void setPreload(Preload); 345 void setPreload(Preload);
346 346
347 void networkStateChanged(); 347 void networkStateChanged();
348 void readyStateChanged(); 348 void readyStateChanged();
349 void volumeChanged(float); 349 void volumeChanged(double);
350 void muteChanged(bool); 350 void muteChanged(bool);
351 void timeChanged(); 351 void timeChanged();
352 void sizeChanged(); 352 void sizeChanged();
353 void rateChanged(); 353 void rateChanged();
354 void playbackStateChanged(); 354 void playbackStateChanged();
355 void durationChanged(); 355 void durationChanged();
356 void firstVideoFrameAvailable(); 356 void firstVideoFrameAvailable();
357 void characteristicChanged(); 357 void characteristicChanged();
358 358
359 void repaint(); 359 void repaint();
(...skipping 23 matching lines...) Expand all
383 383
384 // whether accelerated rendering is supported by the media engine for the cu rrent media. 384 // whether accelerated rendering is supported by the media engine for the cu rrent media.
385 bool supportsAcceleratedRendering() const; 385 bool supportsAcceleratedRendering() const;
386 // called when the rendering system flips the into or out of accelerated ren dering mode. 386 // called when the rendering system flips the into or out of accelerated ren dering mode.
387 void acceleratedRenderingStateChanged(); 387 void acceleratedRenderingStateChanged();
388 388
389 bool hasSingleSecurityOrigin() const; 389 bool hasSingleSecurityOrigin() const;
390 390
391 bool didPassCORSAccessCheck() const; 391 bool didPassCORSAccessCheck() const;
392 392
393 float mediaTimeForTimeValue(float) const; 393 double mediaTimeForTimeValue(double) const;
394 394
395 double maximumDurationToCacheMediaTime() const; 395 double maximumDurationToCacheMediaTime() const;
396 396
397 unsigned decodedFrameCount() const; 397 unsigned decodedFrameCount() const;
398 unsigned droppedFrameCount() const; 398 unsigned droppedFrameCount() const;
399 unsigned audioDecodedByteCount() const; 399 unsigned audioDecodedByteCount() const;
400 unsigned videoDecodedByteCount() const; 400 unsigned videoDecodedByteCount() const;
401 401
402 void setPrivateBrowsingMode(bool); 402 void setPrivateBrowsingMode(bool);
403 403
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 OwnPtr<MediaPlayerPrivateInterface> m_private; 454 OwnPtr<MediaPlayerPrivateInterface> m_private;
455 MediaPlayerFactory* m_currentMediaEngine; 455 MediaPlayerFactory* m_currentMediaEngine;
456 KURL m_url; 456 KURL m_url;
457 String m_contentMIMEType; 457 String m_contentMIMEType;
458 String m_contentTypeCodecs; 458 String m_contentTypeCodecs;
459 String m_keySystem; 459 String m_keySystem;
460 FrameView* m_frameView; 460 FrameView* m_frameView;
461 IntSize m_size; 461 IntSize m_size;
462 Preload m_preload; 462 Preload m_preload;
463 bool m_visible; 463 bool m_visible;
464 float m_rate; 464 double m_rate;
465 float m_volume; 465 double m_volume;
466 bool m_muted; 466 bool m_muted;
467 bool m_preservesPitch; 467 bool m_preservesPitch;
468 bool m_privateBrowsing; 468 bool m_privateBrowsing;
469 bool m_shouldPrepareToRender; 469 bool m_shouldPrepareToRender;
470 bool m_contentMIMETypeWasInferredFromExtension; 470 bool m_contentMIMETypeWasInferredFromExtension;
471 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 471 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)
472 WebMediaPlayerProxy* m_playerProxy; // not owned or used, passed to m_pri vate 472 WebMediaPlayerProxy* m_playerProxy; // not owned or used, passed to m_pri vate
473 #endif 473 #endif
474 474
475 RefPtr<MediaSource> m_mediaSource; 475 RefPtr<MediaSource> m_mediaSource;
(...skipping 11 matching lines...) Expand all
487 typedef void (*MediaEngineClearMediaCacheForSite)(const String&); 487 typedef void (*MediaEngineClearMediaCacheForSite)(const String&);
488 488
489 typedef void (*MediaEngineRegistrar)(CreateMediaEnginePlayer, MediaEngineSupport edTypes, MediaEngineSupportsType, 489 typedef void (*MediaEngineRegistrar)(CreateMediaEnginePlayer, MediaEngineSupport edTypes, MediaEngineSupportsType,
490 MediaEngineGetSitesInMediaCache, MediaEngineClearMediaCache, MediaEngineClea rMediaCacheForSite); 490 MediaEngineGetSitesInMediaCache, MediaEngineClearMediaCache, MediaEngineClea rMediaCacheForSite);
491 491
492 } 492 }
493 493
494 #endif // ENABLE(VIDEO) 494 #endif // ENABLE(VIDEO)
495 495
496 #endif 496 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/platform/ClockGeneric.cpp ('k') | Source/WebCore/platform/graphics/MediaPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698