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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 599103003: Switch from WebMediaPlayer::maxTimeSeekable() to seekable() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile on android Created 6 years, 2 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 | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Playback controls. 105 // Playback controls.
106 virtual void play(); 106 virtual void play();
107 virtual void pause(); 107 virtual void pause();
108 virtual void seek(double seconds); 108 virtual void seek(double seconds);
109 virtual bool supportsSave() const; 109 virtual bool supportsSave() const;
110 virtual void setRate(double rate); 110 virtual void setRate(double rate);
111 virtual void setVolume(double volume); 111 virtual void setVolume(double volume);
112 virtual void requestRemotePlayback(); 112 virtual void requestRemotePlayback();
113 virtual void requestRemotePlaybackControl(); 113 virtual void requestRemotePlaybackControl();
114 virtual blink::WebTimeRanges buffered() const; 114 virtual blink::WebTimeRanges buffered() const;
115 virtual double maxTimeSeekable() const; 115 virtual blink::WebTimeRanges seekable() const;
116 116
117 // Poster image, as defined in the <video> element. 117 // Poster image, as defined in the <video> element.
118 virtual void setPoster(const blink::WebURL& poster) OVERRIDE; 118 virtual void setPoster(const blink::WebURL& poster) OVERRIDE;
119 119
120 // Methods for painting. 120 // Methods for painting.
121 // FIXME: This path "only works" on Android. It is a workaround for the 121 // FIXME: This path "only works" on Android. It is a workaround for the
122 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture 122 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture
123 // internally. It should be removed and replaced by the normal paint path. 123 // internally. It should be removed and replaced by the normal paint path.
124 // https://code.google.com/p/skia/issues/detail?id=1189 124 // https://code.google.com/p/skia/issues/detail?id=1189
125 virtual void paint(blink::WebCanvas* canvas, 125 virtual void paint(blink::WebCanvas* canvas,
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 504
505 // NOTE: Weak pointers must be invalidated before all other member variables. 505 // NOTE: Weak pointers must be invalidated before all other member variables.
506 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 506 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
507 507
508 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 508 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
509 }; 509 };
510 510
511 } // namespace content 511 } // namespace content
512 512
513 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 513 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698