Changeset 110290 in webkit


Ignore:
Timestamp:
Mar 9, 2012 5:11:28 AM (12 years ago)
Author:
charles.wei@torchmobile.com.cn
Message:

[BlackBerry] Web Notification not working after rebase
https://bugs.webkit.org/show_bug.cgi?id=80690

Reviewed by George Staikos.

  1. NotificationPresenterImpl should be in namespace WebCore
  2. Need to connect NotificationPresenterImpl to webcore the new way: WebCore::provideNotification(Page*, NotificationPresenter*)
  3. Remove the old way of connecting the Notification: ChromeClientBlackBerry::notificationPresenter()
  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::init):

  • WebCoreSupport/ChromeClientBlackBerry.cpp:

(WebCore):

  • WebCoreSupport/ChromeClientBlackBerry.h:

(ChromeClientBlackBerry):

  • WebCoreSupport/NotificationPresenterImpl.cpp:
  • WebCoreSupport/NotificationPresenterImpl.h:
Location:
trunk/Source/WebKit/blackberry
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r110186 r110290  
    7373#include "NetworkManager.h"
    7474#include "NodeRenderStyle.h"
     75#if ENABLE(NOTIFICATIONS)
     76#include "NotificationPresenterImpl.h"
     77#endif
    7578#include "Page.h"
    7679#include "PageCache.h"
     
    428431    pageClients.deviceOrientationClient = new DeviceOrientationClientBlackBerry(this);
    429432    m_page = new Page(pageClients);
     433
     434#if ENABLE(NOTIFICATIONS)
     435    WebCore::provideNotification(m_page, NotificationPresenterImpl::instance());
     436#endif
    430437
    431438#if ENABLE(CLIENT_BASED_GEOLOCATION) && ENABLE_DRT
  • trunk/Source/WebKit/blackberry/ChangeLog

    r110230 r110290  
     12012-03-09  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        [BlackBerry] Web Notification not working after rebase
     4        https://bugs.webkit.org/show_bug.cgi?id=80690
     5
     6        Reviewed by George Staikos.
     7
     8        1. NotificationPresenterImpl should be in namespace WebCore
     9        2. Need to connect NotificationPresenterImpl to webcore the new way:
     10           WebCore::provideNotification(Page*, NotificationPresenter*)
     11        3. Remove the old way of connecting the Notification:
     12           ChromeClientBlackBerry::notificationPresenter()
     13
     14        * Api/WebPage.cpp:
     15        (BlackBerry::WebKit::WebPagePrivate::init):
     16        * WebCoreSupport/ChromeClientBlackBerry.cpp:
     17        (WebCore):
     18        * WebCoreSupport/ChromeClientBlackBerry.h:
     19        (ChromeClientBlackBerry):
     20        * WebCoreSupport/NotificationPresenterImpl.cpp:
     21        * WebCoreSupport/NotificationPresenterImpl.h:
     22
    1232012-03-08  Mike Fenton  <mifenton@rim.com>
    224
  • trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp

    r110175 r110290  
    4444#include "Node.h"
    4545#include "NotImplemented.h"
    46 #include "NotificationPresenterImpl.h"
    4746#include "Page.h"
    4847#include "PageGroup.h"
     
    726725#endif
    727726
    728 #if ENABLE(NOTIFICATIONS)
    729 NotificationPresenter* ChromeClientBlackBerry::notificationPresenter() const
    730 {
    731     return WebKit::NotificationPresenterImpl::instance();
    732 }
    733 #endif
    734 
    735727#if USE(ACCELERATED_COMPOSITING)
    736728void ChromeClientBlackBerry::attachRootGraphicsLayer(Frame* frame, GraphicsLayer* graphicsLayer)
  • trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.h

    r108957 r110290  
    129129#endif
    130130
    131 #if ENABLE(NOTIFICATIONS)
    132     virtual NotificationPresenter* notificationPresenter() const;
    133 #endif
    134 
    135131#if ENABLE(SVG)
    136132    virtual void didSetSVGZoomAndPan(Frame*, unsigned short zoomAndPan);
  • trunk/Source/WebKit/blackberry/WebCoreSupport/NotificationPresenterImpl.cpp

    r109475 r110290  
    2727#include <UUID.h>
    2828
    29 using namespace WebCore;
    3029
    31 namespace WebKit {
     30namespace WebCore {
    3231
    3332NotificationPresenter* NotificationPresenterImpl::instance()
  • trunk/Source/WebKit/blackberry/WebCoreSupport/NotificationPresenterImpl.h

    r103975 r110290  
    3030#include <wtf/text/StringHash.h>
    3131
    32 namespace WebKit {
     32namespace WebCore {
    3333
    3434class NotificationPresenterImpl : public WebCore::NotificationPresenter, public BlackBerry::Platform::NotificationAckListener {
Note: See TracChangeset for help on using the changeset viewer.