Source/WebCore/ChangeLog

 12012-04-02 Max Feil <mfeil@rim.com>
 2
 3 [BlackBerry] Tab awareness for HTML5 concurrent audio
 4 https://bugs.webkit.org/show_bug.cgi?id=82930
 5
 6 Reviewed by NOBODY (OOPS!).
 7 Support for concurrent HTML5 audio improvements being made in
 8 the platform library, which need to be aware of tabs and which
 9 tab is currently selected.
 10
 11 Test coverage will be added to the following existing manual
 12 test: ManualTests/blackberry/audio-two.html
 13
 14 * platform/blackberry/PageClientBlackBerry.h:
 15 * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
 16 (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
 17 (WebCore::MediaPlayerPrivate::showErrorDialog):
 18 (WebCore::MediaPlayerPrivate::isTabVisible):
 19 (WebCore):
 20 * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h:
 21 (MediaPlayerPrivate):
 22
1232012-04-02 Alexis Menard <alexis.menard@openbossa.org>
224
325 Rename CSSPropertyLonghand files to StylePropertyShorthand.

Source/WebKit/blackberry/ChangeLog

 12012-04-02 Max Feil <mfeil@rim.com>
 2
 3 [BlackBerry] Tab awareness for HTML5 concurrent audio
 4 https://bugs.webkit.org/show_bug.cgi?id=82930
 5
 6 Support for concurrent HTML5 audio improvements being made in
 7 the platform library, which need to be aware of tabs and tab
 8 visibility.
 9
 10 Reviewed by NOBODY (OOPS!).
 11
 12 * Api/WebPageClient.h:
 13 * Api/WebPage_p.h:
 14 (BlackBerry::WebKit::WebPagePrivate::isVisible):
 15
1162012-04-01 Arvid Nilsson <anilsson@rim.com>
217
318 [BlackBerry] Simplify the code that gets accelerated compositing output onto the screen

Source/WebCore/platform/blackberry/PageClientBlackBerry.h

@@public:
6969 virtual WebCore::IntSize viewportSize() const = 0;
7070 virtual int showAlertDialog(BlackBerry::WebKit::WebPageClient::AlertType) = 0;
7171 virtual bool isActive() const = 0;
 72 virtual bool isVisible() const = 0;
7273 virtual bool authenticationChallenge(const WebCore::KURL&, const WebCore::ProtectionSpace&, WebCore::Credential&) = 0;
7374 virtual SaveCredentialType notifyShouldSaveCredential(bool) = 0;
7475};

Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp

@@void MediaPlayerPrivate::setCertificatePath(const String& caPath)
9797
9898MediaPlayerPrivate::MediaPlayerPrivate(MediaPlayer* player)
9999 : m_webCorePlayer(player)
100 #if USE(ACCELERATED_COMPOSITING)
101  , m_platformPlayer(new MMRPlayer(this, true))
102 #else
103  , m_platformPlayer(new MMRPlayer(this, false))
104 #endif
105100 , m_networkState(MediaPlayer::Empty)
106101 , m_readyState(MediaPlayer::HaveNothing)
107102 , m_fullscreenWebPageClient(0)

@@MediaPlayerPrivate::MediaPlayerPrivate(MediaPlayer* player)
113108 , m_userDrivenSeekTimer(this, &MediaPlayerPrivate::userDrivenSeekTimerFired)
114109 , m_lastSeekTime(0)
115110{
 111 void* tabId = 0;
 112 if (frameView() && frameView()->hostWindow())
 113 tabId = frameView()->hostWindow()->platformPageClient();
 114#if USE(ACCELERATED_COMPOSITING)
 115 m_platformPlayer = new MMRPlayer(this, tabId, true);
 116#else
 117 m_platformPlayer = new MMRPlayer(this, tabId, false);
 118#endif
116119}
117120
118121MediaPlayerPrivate::~MediaPlayerPrivate()

@@int MediaPlayerPrivate::showErrorDialog(MMRPlayer::Error type)
644647 }
645648
646649 int rc = 0;
647  HTMLMediaElement* element = static_cast<HTMLMediaElement*>(m_webCorePlayer->mediaPlayerClient());
648  Document* topdoc = element->document()->topDocument();
649  if (topdoc->view() && topdoc->view()->hostWindow())
650  rc = topdoc->view()->hostWindow()->platformPageClient()->showAlertDialog(atype);
 650 if (frameView() && frameView()->hostWindow())
 651 rc = frameView()->hostWindow()->platformPageClient()->showAlertDialog(atype);
651652 return rc;
652653}
653654

@@bool MediaPlayerPrivate::isFullscreen() const
675676 return m_fullscreenWebPageClient;
676677}
677678
 679bool MediaPlayerPrivate::isTabVisible() const
 680{
 681 if (frameView() && frameView()->hostWindow())
 682 return frameView()->hostWindow()->platformPageClient()->isVisible();
 683 return true;
 684}
 685
678686#if USE(ACCELERATED_COMPOSITING)
679687static const double BufferingAnimationDelay = 1.0 / 24;
680688static char* s_bufferingImageData = 0;

Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h

@@public:
131131#endif
132132
133133 virtual bool isFullscreen() const;
 134 virtual bool isTabVisible() const;
134135 virtual int showErrorDialog(BlackBerry::Platform::MMRPlayer::Error);
135136 virtual BlackBerry::Platform::Graphics::Window* platformWindow();
136137

Source/WebKit/blackberry/Api/WebPageClient.h

@@public:
222222 virtual bool lockOrientation(bool landscape) = 0;
223223 virtual void unlockOrientation() = 0;
224224 virtual bool isActive() const = 0;
 225 virtual bool isVisible() const = 0;
225226 virtual void requestWebGLPermission(const WebString&) = 0;
226227
227228 virtual void setToolTip(WebString) = 0;

Source/WebKit/blackberry/Api/WebPage_p.h

@@public:
179179 virtual double currentZoomFactor() const;
180180 virtual int showAlertDialog(WebPageClient::AlertType atype);
181181 virtual bool isActive() const;
 182 virtual bool isVisible() const { return m_visible; }
182183 virtual bool authenticationChallenge(const WebCore::KURL&, const WebCore::ProtectionSpace&, WebCore::Credential&);
183184 virtual SaveCredentialType notifyShouldSaveCredential(bool);
184185