| Index: Source/core/events/NavigatorEvents.cpp
|
| diff --git a/Source/modules/quota/StorageErrorCallback.cpp b/Source/core/events/NavigatorEvents.cpp
|
| similarity index 79%
|
| copy from Source/modules/quota/StorageErrorCallback.cpp
|
| copy to Source/core/events/NavigatorEvents.cpp
|
| index b73a122da03574292095f247c3add42c6f58ba8c..a9f9a26e21c25b5ddaa71504eb8ae0af46fbcc52 100644
|
| --- a/Source/modules/quota/StorageErrorCallback.cpp
|
| +++ b/Source/core/events/NavigatorEvents.cpp
|
| @@ -29,24 +29,28 @@
|
| */
|
|
|
| #include "config.h"
|
| +#include "core/events/NavigatorEvents.h"
|
|
|
| -#include "modules/quota/StorageErrorCallback.h"
|
| -
|
| -#include "core/dom/DOMError.h"
|
| +#include "core/frame/Frame.h"
|
| +#include "core/frame/Navigator.h"
|
| +#include "core/page/Page.h"
|
| +#include "core/page/Settings.h"
|
|
|
| namespace WebCore {
|
|
|
| -StorageErrorCallback::CallbackTask::CallbackTask(PassRefPtr<StorageErrorCallback> callback, ExceptionCode ec)
|
| - : m_callback(callback)
|
| - , m_ec(ec)
|
| +long NavigatorEvents::maxTouchPoints(Navigator* navigator)
|
| {
|
| -}
|
| + Frame* frame = navigator->frame();
|
|
|
| -void StorageErrorCallback::CallbackTask::performTask(ExecutionContext*)
|
| -{
|
| - if (!m_callback)
|
| - return;
|
| - m_callback->handleEvent(DOMError::create(m_ec).get());
|
| + if (!frame)
|
| + return 0;
|
| +
|
| + Page* page = frame->page();
|
| +
|
| + if (!page)
|
| + return 0;
|
| +
|
| + return page->settings().maxTouchPoints();
|
| }
|
|
|
| } // namespace WebCore
|
|
|