Changeset 110701 in webkit


Ignore:
Timestamp:
Mar 14, 2012 8:24:13 AM (12 years ago)
Author:
leo.yang@torchmobile.com.cn
Message:

[BlackBerry] Upstream the BlackBerry change to platform/Cursor.h
https://bugs.webkit.org/show_bug.cgi?id=81086

Reviewed by Rob Buis.

Source/WebCore:

  • platform/Cursor.h:

(WebCore):
(WebCore::Cursor::Cursor):
Add the BlackBerry specific PlatformCursor.

  • platform/blackberry/PageClientBlackBerry.h:

There was an alias named PlatformCursorHandle for PlatformCursor
in the internal version of Cursor.h. But it's not necessary so it's
not included in the upstreaming version of Cursor.h. As a result,
use PlatformCursor directly in this file.
(PageClientBlackBerry):

Source/WebKit/blackberry:

There was an alias named PlatformCursorHandle for PlatformCursor
in the internal version of Cursor.h. But it's not necessary so it's
not included in the upstreaming version of Cursor.h. As a result,
use PlatformCursor directly.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::setCursor):

  • Api/WebPage_p.h:

(WebPagePrivate):

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r110699 r110701  
     12012-03-14  Leo Yang  <leo.yang@torchmobile.com.cn>
     2
     3        [BlackBerry] Upstream the BlackBerry change to platform/Cursor.h
     4        https://bugs.webkit.org/show_bug.cgi?id=81086
     5
     6        Reviewed by Rob Buis.
     7
     8        * platform/Cursor.h:
     9        (WebCore):
     10        (WebCore::Cursor::Cursor):
     11        Add the BlackBerry specific PlatformCursor.
     12        * platform/blackberry/PageClientBlackBerry.h:
     13        There was an alias named PlatformCursorHandle for PlatformCursor
     14        in the internal version of Cursor.h. But it's not necessary so it's
     15        not included in the upstreaming version of Cursor.h. As a result,
     16        use PlatformCursor directly in this file.
     17        (PageClientBlackBerry):
     18
    1192012-03-14  Simon Hausmann  <simon.hausmann@nokia.com>
    220
  • trunk/Source/WebCore/platform/Cursor.h

    r105203 r110701  
    4444#elif PLATFORM(CHROMIUM)
    4545#include "PlatformCursor.h"
     46#elif PLATFORM(BLACKBERRY)
     47#include <BlackBerryPlatformCursor.h>
    4648#endif
    4749
     
    9193#elif PLATFORM(CHROMIUM)
    9294    // See PlatformCursor.h
     95#elif PLATFORM(BLACKBERRY)
     96    typedef BlackBerry::Platform::BlackBerryCursor PlatformCursor;
    9397#else
    9498    typedef void* PlatformCursor;
     
    147151
    148152        Cursor()
    149 #if !PLATFORM(IOS)
     153#if !PLATFORM(IOS) && !PLATFORM(BLACKBERRY)
    150154            : m_platformCursor(0)
    151155#endif
  • trunk/Source/WebCore/platform/blackberry/PageClientBlackBerry.h

    r103393 r110701  
    4040class PageClientBlackBerry {
    4141public:
    42     virtual void setCursor(WebCore::PlatformCursorHandle) = 0;
     42    virtual void setCursor(WebCore::PlatformCursor) = 0;
    4343    virtual BlackBerry::Platform::NetworkStreamFactory* networkStreamFactory() = 0;
    4444    virtual BlackBerry::Platform::Graphics::Window* platformWindow() const = 0;
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r110630 r110701  
    18441844}
    18451845
    1846 void WebPagePrivate::setCursor(PlatformCursorHandle handle)
     1846void WebPagePrivate::setCursor(PlatformCursor handle)
    18471847{
    18481848    if (m_currentCursor.type() != handle.type()) {
  • trunk/Source/WebKit/blackberry/Api/WebPage_p.h

    r110562 r110701  
    157157
    158158    // Virtual functions inherited from PageClientBlackBerry.
    159     virtual void setCursor(WebCore::PlatformCursorHandle);
     159    virtual void setCursor(WebCore::PlatformCursor);
    160160    virtual Platform::NetworkStreamFactory* networkStreamFactory();
    161161    virtual Platform::Graphics::Window* platformWindow() const;
  • trunk/Source/WebKit/blackberry/ChangeLog

    r110630 r110701  
     12012-03-14  Leo Yang  <leo.yang@torchmobile.com.cn>
     2
     3        [BlackBerry] Upstream the BlackBerry change to platform/Cursor.h
     4        https://bugs.webkit.org/show_bug.cgi?id=81086
     5
     6        Reviewed by Rob Buis.
     7
     8        There was an alias named PlatformCursorHandle for PlatformCursor
     9        in the internal version of Cursor.h. But it's not necessary so it's
     10        not included in the upstreaming version of Cursor.h. As a result,
     11        use PlatformCursor directly.
     12
     13        * Api/WebPage.cpp:
     14        (BlackBerry::WebKit::WebPagePrivate::setCursor):
     15        * Api/WebPage_p.h:
     16        (WebPagePrivate):
     17
    1182012-03-13  Mike Fenton  <mifenton@rim.com>
    219
Note: See TracChangeset for help on using the changeset viewer.