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

Side by Side Diff: content/renderer/media/renderer_webmediaplayer_delegate.h

Issue 2693203002: Provide a WebContents API to discover the playback of a fullscreen video. (Closed)
Patch Set: apply review comments Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_
6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void DidPlay(int player_id, 51 void DidPlay(int player_id,
52 bool has_video, 52 bool has_video,
53 bool has_audio, 53 bool has_audio,
54 MediaContentType media_content_type) override; 54 MediaContentType media_content_type) override;
55 void DidPause(int player_id) override; 55 void DidPause(int player_id) override;
56 void PlayerGone(int player_id) override; 56 void PlayerGone(int player_id) override;
57 void SetIdle(int player_id, bool is_idle) override; 57 void SetIdle(int player_id, bool is_idle) override;
58 bool IsIdle(int player_id) override; 58 bool IsIdle(int player_id) override;
59 void ClearStaleFlag(int player_id) override; 59 void ClearStaleFlag(int player_id) override;
60 bool IsStale(int player_id) override; 60 bool IsStale(int player_id) override;
61 void SetIsEffectivelyFullscreen(int player_id, bool is_fullscreen) override;
61 62
62 // content::RenderFrameObserver overrides. 63 // content::RenderFrameObserver overrides.
63 void WasHidden() override; 64 void WasHidden() override;
64 void WasShown() override; 65 void WasShown() override;
65 bool OnMessageReceived(const IPC::Message& msg) override; 66 bool OnMessageReceived(const IPC::Message& msg) override;
66 void OnDestruct() override; 67 void OnDestruct() override;
67 68
68 // Zeros out |idle_cleanup_interval_|, sets |idle_timeout_| to |idle_timeout|, 69 // Zeros out |idle_cleanup_interval_|, sets |idle_timeout_| to |idle_timeout|,
69 // and |is_low_end_device_| to |is_low_end_device|. A zero cleanup interval 70 // and |is_low_end_device_| to |is_low_end_device|. A zero cleanup interval
70 // will cause the idle timer to run with each run of the message loop. 71 // will cause the idle timer to run with each run of the message loop.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Determined at construction time based on system information; determines 147 // Determined at construction time based on system information; determines
147 // when the idle cleanup timer should be fired more aggressively. 148 // when the idle cleanup timer should be fired more aggressively.
148 bool is_low_end_device_; 149 bool is_low_end_device_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(RendererWebMediaPlayerDelegate); 151 DISALLOW_COPY_AND_ASSIGN(RendererWebMediaPlayerDelegate);
151 }; 152 };
152 153
153 } // namespace media 154 } // namespace media
154 155
155 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ 156 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698