| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3444 return true; | 3444 return true; |
| 3445 | 3445 |
| 3446 // Wait for any pending events to be fired. | 3446 // Wait for any pending events to be fired. |
| 3447 if (async_event_queue_->HasPendingEvents()) | 3447 if (async_event_queue_->HasPendingEvents()) |
| 3448 return true; | 3448 return true; |
| 3449 | 3449 |
| 3450 return false; | 3450 return false; |
| 3451 } | 3451 } |
| 3452 | 3452 |
| 3453 bool HTMLMediaElement::IsFullscreen() const { | 3453 bool HTMLMediaElement::IsFullscreen() const { |
| 3454 return Fullscreen::IsCurrentFullScreenElement(*this); | 3454 return Fullscreen::IsFullscreenElement(*this); |
| 3455 } | 3455 } |
| 3456 | 3456 |
| 3457 void HTMLMediaElement::DidEnterFullscreen() { | 3457 void HTMLMediaElement::DidEnterFullscreen() { |
| 3458 UpdateControlsVisibility(); | 3458 UpdateControlsVisibility(); |
| 3459 | 3459 |
| 3460 // FIXME: There is no embedder-side handling in layout test mode. | 3460 // FIXME: There is no embedder-side handling in layout test mode. |
| 3461 if (GetWebMediaPlayer() && !LayoutTestSupport::IsRunningLayoutTest()) | 3461 if (GetWebMediaPlayer() && !LayoutTestSupport::IsRunningLayoutTest()) |
| 3462 GetWebMediaPlayer()->EnteredFullscreen(); | 3462 GetWebMediaPlayer()->EnteredFullscreen(); |
| 3463 // Cache this in case the player is destroyed before leaving fullscreen. | 3463 // Cache this in case the player is destroyed before leaving fullscreen. |
| 3464 in_overlay_fullscreen_video_ = UsesOverlayFullscreenVideo(); | 3464 in_overlay_fullscreen_video_ = UsesOverlayFullscreenVideo(); |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4075 kMostlyFillViewportBecomeStableSeconds, BLINK_FROM_HERE); | 4075 kMostlyFillViewportBecomeStableSeconds, BLINK_FROM_HERE); |
| 4076 } | 4076 } |
| 4077 | 4077 |
| 4078 void HTMLMediaElement::ViewportFillDebouncerTimerFired(TimerBase*) { | 4078 void HTMLMediaElement::ViewportFillDebouncerTimerFired(TimerBase*) { |
| 4079 mostly_filling_viewport_ = true; | 4079 mostly_filling_viewport_ = true; |
| 4080 if (web_media_player_) | 4080 if (web_media_player_) |
| 4081 web_media_player_->BecameDominantVisibleContent(mostly_filling_viewport_); | 4081 web_media_player_->BecameDominantVisibleContent(mostly_filling_viewport_); |
| 4082 } | 4082 } |
| 4083 | 4083 |
| 4084 } // namespace blink | 4084 } // namespace blink |
| OLD | NEW |