Changeset 58061 in webkit


Ignore:
Timestamp:
Apr 21, 2010 11:32:06 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-21 Steve Block <steveblock@google.com>

Reviewed by Kenneth Rohde Christiansen.

Replace Geolocation::suspend()/resume() which are required by Android.
https://bugs.webkit.org/show_bug.cgi?id=37942

These methods were removed in Bug 36255.

Build fix only, no new tests.

  • page/Geolocation.cpp: (WebCore::Geolocation::suspend): (WebCore::Geolocation::resume):
  • page/Geolocation.h:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58057 r58061  
     12010-04-21  Steve Block  <steveblock@google.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        Replace Geolocation::suspend()/resume() which are required by Android.
     6        https://bugs.webkit.org/show_bug.cgi?id=37942
     7
     8        These methods were removed in Bug 36255.
     9
     10        Build fix only, no new tests.
     11
     12        * page/Geolocation.cpp:
     13        (WebCore::Geolocation::suspend):
     14        (WebCore::Geolocation::resume):
     15        * page/Geolocation.h:
     16
    1172010-04-21  Ray Rischpater  <Raymond.Rischpater@Nokia.com>
    218
  • trunk/WebCore/page/Geolocation.cpp

    r57194 r58061  
    380380}
    381381
     382void Geolocation::suspend()
     383{
     384#if !ENABLE(CLIENT_BASED_GEOLOCATION)
     385    if (hasListeners())
     386        m_service->suspend();
     387#endif
     388}
     389
     390void Geolocation::resume()
     391{
     392#if !ENABLE(CLIENT_BASED_GEOLOCATION)
     393    if (hasListeners())
     394        m_service->resume();
     395#endif
     396}
     397
    382398void Geolocation::setIsAllowed(bool allowed)
    383399{
  • trunk/WebCore/page/Geolocation.h

    r57194 r58061  
    6161    int watchPosition(PassRefPtr<PositionCallback>, PassRefPtr<PositionErrorCallback>, PassRefPtr<PositionOptions>);
    6262    void clearWatch(int watchId);
     63
     64    // These methods are used by Android.
     65    void suspend();
     66    void resume();
    6367
    6468    void setIsAllowed(bool);
Note: See TracChangeset for help on using the changeset viewer.