diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-04-07 12:02:02 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-04-07 12:02:02 -0700 |
commit | bb69eea599d55bb1958713e8f1614c9e7f38b2f2 (patch) | |
tree | 959f60bd0c0b7c108872818d90217006ab8aa01e | |
parent | 59ffdea8571156a5a3442bdd740cae186b10425a (diff) | |
parent | e4cbbfc01b360475415d07bc3a4276fc46e828b9 (diff) | |
download | external_webkit-bb69eea599d55bb1958713e8f1614c9e7f38b2f2.zip external_webkit-bb69eea599d55bb1958713e8f1614c9e7f38b2f2.tar.gz external_webkit-bb69eea599d55bb1958713e8f1614c9e7f38b2f2.tar.bz2 |
am e4cbbfc0: Merge "Show the fullscreen button all the time" into honeycomb-mr1
* commit 'e4cbbfc01b360475415d07bc3a4276fc46e828b9':
Show the fullscreen button all the time
-rw-r--r-- | WebCore/platform/graphics/android/MediaPlayerPrivateAndroid.h | 1 | ||||
-rw-r--r-- | WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/WebCore/platform/graphics/android/MediaPlayerPrivateAndroid.h b/WebCore/platform/graphics/android/MediaPlayerPrivateAndroid.h index 6948799..20a5829 100644 --- a/WebCore/platform/graphics/android/MediaPlayerPrivateAndroid.h +++ b/WebCore/platform/graphics/android/MediaPlayerPrivateAndroid.h @@ -121,7 +121,6 @@ protected: float m_currentTime; bool m_paused; - bool m_hasVideo; MediaPlayer::ReadyState m_readyState; MediaPlayer::NetworkState m_networkState; diff --git a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp index d61b0dd..982e384 100644 --- a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp +++ b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp @@ -147,7 +147,6 @@ MediaPlayerPrivate::MediaPlayerPrivate(MediaPlayer* player) m_duration(1), // keep this minimal to avoid initial seek problem m_currentTime(0), m_paused(true), - m_hasVideo(false), m_readyState(MediaPlayer::HaveNothing), m_networkState(MediaPlayer::Empty), m_poster(0), @@ -164,7 +163,6 @@ void MediaPlayerPrivate::onEnded() m_player->timeChanged(); m_paused = true; m_player->playbackStateChanged(); - m_hasVideo = false; m_networkState = MediaPlayer::Idle; } @@ -172,7 +170,6 @@ void MediaPlayerPrivate::onPaused() { m_paused = true; m_player->playbackStateChanged(); - m_hasVideo = false; m_networkState = MediaPlayer::Idle; m_player->playbackStateChanged(); } @@ -283,13 +280,12 @@ public: m_duration = duration / 1000.0f; m_naturalSize = IntSize(width, height); m_naturalSizeUnknown = false; - m_hasVideo = true; m_player->durationChanged(); m_player->sizeChanged(); } virtual bool hasAudio() const { return false; } // do not display the audio UI - virtual bool hasVideo() const { return m_hasVideo; } + virtual bool hasVideo() const { return true; } virtual bool supportsFullscreen() const { return true; } MediaPlayerVideoPrivate(MediaPlayer* player) : MediaPlayerPrivate(player) |