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

Side by Side Diff: webkit/api/public/WebMediaPlayer.h

Issue 147225: Refactoring to introduce refcount to WebMediaPlayerImpl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « no previous file | webkit/api/src/WebMediaPlayerClientImpl.h » ('j') | 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
11 * copyright notice, this list of conditions and the following disclaimer 11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the 12 * in the documentation and/or other materials provided with the
13 * distribution. 13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its 14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from 15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission. 16 * this software without specific prior written permission.
17 * 17 *
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }; 60 };
61 61
62 virtual ~WebMediaPlayer() {} 62 virtual ~WebMediaPlayer() {}
63 63
64 virtual void load(const WebURL&) = 0; 64 virtual void load(const WebURL&) = 0;
65 virtual void cancelLoad() = 0; 65 virtual void cancelLoad() = 0;
66 66
67 // Playback controls. 67 // Playback controls.
68 virtual void play() = 0; 68 virtual void play() = 0;
69 virtual void pause() = 0; 69 virtual void pause() = 0;
70 virtual void stop() = 0;
71 virtual void seek(float seconds) = 0; 70 virtual void seek(float seconds) = 0;
72 virtual void setEndTime(float seconds) = 0; 71 virtual void setEndTime(float seconds) = 0;
73 virtual void setRate(float) = 0; 72 virtual void setRate(float) = 0;
74 virtual void setVolume(float) = 0; 73 virtual void setVolume(float) = 0;
75 virtual void setVisible(bool) = 0; 74 virtual void setVisible(bool) = 0;
76 virtual bool setAutoBuffer(bool) = 0; 75 virtual bool setAutoBuffer(bool) = 0;
77 virtual bool totalBytesKnown() = 0; 76 virtual bool totalBytesKnown() = 0;
78 virtual float maxTimeBuffered() const = 0; 77 virtual float maxTimeBuffered() const = 0;
79 virtual float maxTimeSeekable() const = 0; 78 virtual float maxTimeSeekable() const = 0;
80 79
81 virtual void setSize(const WebSize&) = 0; 80 virtual void setSize(const WebSize&) = 0;
82 81
83 virtual void paint(WebCanvas*, const WebRect&) = 0; 82 virtual void paint(WebCanvas*, const WebRect&) = 0;
84 83
85 // True if a video is loaded. 84 // True if a video is loaded.
86 virtual bool hasVideo() const = 0; 85 virtual bool hasVideo() const = 0;
87 86
88 // Dimension of the video. 87 // Dimension of the video.
89 virtual WebSize naturalSize() const = 0; 88 virtual WebSize naturalSize() const = 0;
90 89
91 // Getters fo playback state. 90 // Getters of playback state.
92 virtual bool paused() const = 0; 91 virtual bool paused() const = 0;
93 virtual bool seeking() const = 0; 92 virtual bool seeking() const = 0;
94 virtual float duration() const = 0; 93 virtual float duration() const = 0;
95 virtual float currentTime() const = 0; 94 virtual float currentTime() const = 0;
96 95
97 // Get rate of loading the resource. 96 // Get rate of loading the resource.
98 virtual int dataRate() const = 0; 97 virtual int dataRate() const = 0;
99 98
100 // Internal states of loading and network. 99 // Internal states of loading and network.
101 virtual NetworkState networkState() const = 0; 100 virtual NetworkState networkState() const = 0;
102 virtual ReadyState readyState() const = 0; 101 virtual ReadyState readyState() const = 0;
103 102
104 virtual unsigned long long bytesLoaded() const = 0; 103 virtual unsigned long long bytesLoaded() const = 0;
105 virtual unsigned long long totalBytes() const = 0; 104 virtual unsigned long long totalBytes() const = 0;
106 }; 105 };
107 106
108 } // namespace WebKit 107 } // namespace WebKit
109 108
110 #endif 109 #endif
OLDNEW
« no previous file with comments | « no previous file | webkit/api/src/WebMediaPlayerClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698