| Index: Source/platform/SharedTimer.cpp
|
| diff --git a/Source/core/editing/UnlinkCommand.cpp b/Source/platform/SharedTimer.cpp
|
| similarity index 77%
|
| copy from Source/core/editing/UnlinkCommand.cpp
|
| copy to Source/platform/SharedTimer.cpp
|
| index 46ac828048dcfff149ac244b24d4e7f06a20862e..09efb4911476fa2b9d454bbe04f2331ba23dea4e 100644
|
| --- a/Source/core/editing/UnlinkCommand.cpp
|
| +++ b/Source/platform/SharedTimer.cpp
|
| @@ -24,24 +24,25 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/editing/UnlinkCommand.h"
|
| +#include "platform/SharedTimer.h"
|
|
|
| -#include "core/html/HTMLAnchorElement.h"
|
| +#include "public/platform/Platform.h"
|
|
|
| namespace blink {
|
|
|
| -UnlinkCommand::UnlinkCommand(Document& document)
|
| - : CompositeEditCommand(document)
|
| +void setSharedTimerFiredFunction(void (*f)())
|
| {
|
| + Platform::current()->setSharedTimerFiredFunction(f);
|
| }
|
|
|
| -void UnlinkCommand::doApply()
|
| +void setSharedTimerFireInterval(double fireTime)
|
| {
|
| - // FIXME: If a caret is inside a link, we should remove it, but currently we don't.
|
| - if (!endingSelection().isNonOrphanedRange())
|
| - return;
|
| -
|
| - removeStyledElement(HTMLAnchorElement::create(document()));
|
| + Platform::current()->setSharedTimerFireInterval(fireTime);
|
| }
|
|
|
| +void stopSharedTimer()
|
| +{
|
| + Platform::current()->stopSharedTimer();
|
| }
|
| +
|
| +} // namespace blink
|
|
|