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

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

Issue 154283004: Move ReadyState enum from MediaControllerInterface to HTMLMediaElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typedef Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/MediaController.cpp ('k') | no next file » | 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 virtual double playbackRate() const = 0; 56 virtual double playbackRate() const = 0;
57 virtual void setPlaybackRate(double) = 0; 57 virtual void setPlaybackRate(double) = 0;
58 58
59 virtual double volume() const = 0; 59 virtual double volume() const = 0;
60 virtual void setVolume(double, ExceptionState&) = 0; 60 virtual void setVolume(double, ExceptionState&) = 0;
61 61
62 virtual bool muted() const = 0; 62 virtual bool muted() const = 0;
63 virtual void setMuted(bool) = 0; 63 virtual void setMuted(bool) = 0;
64 64
65 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA };
66 virtual ReadyState readyState() const = 0;
67
68 // MediaControlElements: 65 // MediaControlElements:
69 virtual bool isFullscreen() const = 0; 66 virtual bool isFullscreen() const = 0;
70 virtual void enterFullscreen() = 0; 67 virtual void enterFullscreen() = 0;
71 68
72 virtual bool hasAudio() const = 0; 69 virtual bool hasAudio() const = 0;
73 virtual bool hasVideo() const = 0; 70 virtual bool hasVideo() const = 0;
74 virtual bool hasClosedCaptions() const = 0; 71 virtual bool hasClosedCaptions() const = 0;
75 virtual void setClosedCaptionsVisible(bool) = 0; 72 virtual void setClosedCaptionsVisible(bool) = 0;
76 virtual bool closedCaptionsVisible() const = 0; 73 virtual bool closedCaptionsVisible() const = 0;
77 74
78 virtual void beginScrubbing() = 0; 75 virtual void beginScrubbing() = 0;
79 virtual void endScrubbing() = 0; 76 virtual void endScrubbing() = 0;
80 77
81 virtual bool canPlay() const = 0; 78 virtual bool canPlay() const = 0;
82 79
83 virtual bool hasCurrentSrc() const = 0; 80 virtual bool hasCurrentSrc() const = 0;
84 }; 81 };
85 82
86 } 83 }
87 84
88 #endif 85 #endif
OLDNEW
« no previous file with comments | « Source/core/html/MediaController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698