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

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

Issue 644463003: [Cast, Android] Don't hold the wake lock if the video is playing remotely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ignore remote players altogether 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
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 unsigned int level, 137 unsigned int level,
138 unsigned int internal_format, 138 unsigned int internal_format,
139 unsigned int type, 139 unsigned int type,
140 bool premultiply_alpha, 140 bool premultiply_alpha,
141 bool flip_y); 141 bool flip_y);
142 142
143 // True if the loaded media has a playable video/audio track. 143 // True if the loaded media has a playable video/audio track.
144 virtual bool hasVideo() const; 144 virtual bool hasVideo() const;
145 virtual bool hasAudio() const; 145 virtual bool hasAudio() const;
146 146
147 virtual bool isRemote() const;
148
147 // Dimensions of the video. 149 // Dimensions of the video.
148 virtual blink::WebSize naturalSize() const; 150 virtual blink::WebSize naturalSize() const;
149 151
150 // Getters of playback state. 152 // Getters of playback state.
151 virtual bool paused() const; 153 virtual bool paused() const;
152 virtual bool seeking() const; 154 virtual bool seeking() const;
153 virtual double duration() const; 155 virtual double duration() const;
154 virtual double timelineOffset() const; 156 virtual double timelineOffset() const;
155 virtual double currentTime() const; 157 virtual double currentTime() const;
156 158
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 506
505 // NOTE: Weak pointers must be invalidated before all other member variables. 507 // NOTE: Weak pointers must be invalidated before all other member variables.
506 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 508 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
507 509
508 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 510 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
509 }; 511 };
510 512
511 } // namespace content 513 } // namespace content
512 514
513 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 515 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698