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

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

Issue 2611783002: Turn off video overlay on android for rotated video. (Closed)
Patch Set: Created 3 years, 11 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 | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')
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 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 356
357 // Called during OnHidden() when we want a suspended player to enter the 357 // Called during OnHidden() when we want a suspended player to enter the
358 // paused state after some idle timeout. 358 // paused state after some idle timeout.
359 void ScheduleIdlePauseTimer(); 359 void ScheduleIdlePauseTimer();
360 360
361 void CreateWatchTimeReporter(); 361 void CreateWatchTimeReporter();
362 362
363 // Returns true if the player is hidden. 363 // Returns true if the player is hidden.
364 bool IsHidden() const; 364 bool IsHidden() const;
365 365
366 // Return whether |pipeline_metadata_| is compatible with an overlay. This
367 // is intended for android.
368 bool DoesOverlaySupportMetadata() const;
369
366 blink::WebLocalFrame* frame_; 370 blink::WebLocalFrame* frame_;
367 371
368 // The playback state last reported to |delegate_|, to avoid setting duplicate 372 // The playback state last reported to |delegate_|, to avoid setting duplicate
369 // states. (Which can have undesired effects like resetting the idle timer.) 373 // states. (Which can have undesired effects like resetting the idle timer.)
370 DelegateState delegate_state_; 374 DelegateState delegate_state_;
371 375
372 // Set when OnSuspendRequested() is called with |must_suspend| unset. 376 // Set when OnSuspendRequested() is called with |must_suspend| unset.
373 bool is_idle_; 377 bool is_idle_;
374 378
375 // Set when OnSuspendRequested() is called with |must_suspend| set. 379 // Set when OnSuspendRequested() is called with |must_suspend| set.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 590
587 // Whether the player is currently in autoplay muted state. 591 // Whether the player is currently in autoplay muted state.
588 bool autoplay_muted_ = false; 592 bool autoplay_muted_ = false;
589 593
590 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 594 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
591 }; 595 };
592 596
593 } // namespace media 597 } // namespace media
594 598
595 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 599 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698