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

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 2475643004: Monitor the intersection of video and viewport. (Closed)
Patch Set: Consolidate two ElementVisibilityObserver in AUtoplayUmaHelper. Created 4 years, 1 month 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 blink::WebAudioSourceProvider* getAudioSourceProvider() override; 176 blink::WebAudioSourceProvider* getAudioSourceProvider() override;
177 177
178 void setContentDecryptionModule( 178 void setContentDecryptionModule(
179 blink::WebContentDecryptionModule* cdm, 179 blink::WebContentDecryptionModule* cdm,
180 blink::WebContentDecryptionModuleResult result) override; 180 blink::WebContentDecryptionModuleResult result) override;
181 181
182 bool supportsOverlayFullscreenVideo() override; 182 bool supportsOverlayFullscreenVideo() override;
183 void enteredFullscreen() override; 183 void enteredFullscreen() override;
184 void exitedFullscreen() override; 184 void exitedFullscreen() override;
185 void videoViewportRatioChanged(double ratio) override;
185 186
186 // WebMediaPlayerDelegate::Observer implementation. 187 // WebMediaPlayerDelegate::Observer implementation.
187 void OnHidden() override; 188 void OnHidden() override;
188 void OnShown() override; 189 void OnShown() override;
189 void OnSuspendRequested(bool must_suspend) override; 190 void OnSuspendRequested(bool must_suspend) override;
190 void OnPlay() override; 191 void OnPlay() override;
191 void OnPause() override; 192 void OnPause() override;
192 void OnVolumeMultiplierUpdate(double multiplier) override; 193 void OnVolumeMultiplierUpdate(double multiplier) override;
193 194
194 #if defined(OS_ANDROID) // WMPI_CAST 195 #if defined(OS_ANDROID) // WMPI_CAST
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 566
566 // Monitors the player events. 567 // Monitors the player events.
567 base::WeakPtr<MediaObserver> observer_; 568 base::WeakPtr<MediaObserver> observer_;
568 569
569 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 570 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
570 }; 571 };
571 572
572 } // namespace media 573 } // namespace media
573 574
574 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 575 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698