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

Side by Side Diff: public/platform/WebMediaPlayer.h

Issue 284143002: Change blink::WebMediaPlayer::buffered() to return by-value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual void load(LoadType, const WebURL&, CORSMode) = 0; 100 virtual void load(LoadType, const WebURL&, CORSMode) = 0;
101 101
102 // Playback controls. 102 // Playback controls.
103 virtual void play() = 0; 103 virtual void play() = 0;
104 virtual void pause() = 0; 104 virtual void pause() = 0;
105 virtual bool supportsSave() const = 0; 105 virtual bool supportsSave() const = 0;
106 virtual void seek(double seconds) = 0; 106 virtual void seek(double seconds) = 0;
107 virtual void setRate(double) = 0; 107 virtual void setRate(double) = 0;
108 virtual void setVolume(double) = 0; 108 virtual void setVolume(double) = 0;
109 virtual void setPreload(Preload) { }; 109 virtual void setPreload(Preload) { };
110 virtual const WebTimeRanges& buffered() = 0; 110 virtual WebTimeRanges buffered() const = 0;
111 virtual double maxTimeSeekable() const = 0; 111 virtual double maxTimeSeekable() const = 0;
112 112
113 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha) = 0; 113 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha) = 0;
114 114
115 // True if the loaded media has a playable video/audio track. 115 // True if the loaded media has a playable video/audio track.
116 virtual bool hasVideo() const = 0; 116 virtual bool hasVideo() const = 0;
117 virtual bool hasAudio() const = 0; 117 virtual bool hasAudio() const = 0;
118 118
119 // Dimension of the video. 119 // Dimension of the video.
120 virtual WebSize naturalSize() const = 0; 120 virtual WebSize naturalSize() const = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Instruct WebMediaPlayer to enter/exit fullscreen. 160 // Instruct WebMediaPlayer to enter/exit fullscreen.
161 virtual void enterFullscreen() { } 161 virtual void enterFullscreen() { }
162 virtual void exitFullscreen() { } 162 virtual void exitFullscreen() { }
163 // Returns true if the player can enter fullscreen. 163 // Returns true if the player can enter fullscreen.
164 virtual bool canEnterFullscreen() const { return false; } 164 virtual bool canEnterFullscreen() const { return false; }
165 }; 165 };
166 166
167 } // namespace blink 167 } // namespace blink
168 168
169 #endif 169 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698