| Index: Source/WebCore/bindings/public/ScheduledAction.h
|
| diff --git a/Source/WebCore/inspector/ScriptArguments.h b/Source/WebCore/bindings/public/ScheduledAction.h
|
| similarity index 62%
|
| copy from Source/WebCore/inspector/ScriptArguments.h
|
| copy to Source/WebCore/bindings/public/ScheduledAction.h
|
| index 26549b6d30b737fd43b0cbc043a56e8b78154aa9..ff3a6feff276bd9e50d1c997fdd8c6b1ba04455f 100644
|
| --- a/Source/WebCore/inspector/ScriptArguments.h
|
| +++ b/Source/WebCore/bindings/public/ScheduledAction.h
|
| @@ -1,10 +1,10 @@
|
| /*
|
| - * Copyright (c) 2010 Google Inc. All rights reserved.
|
| - *
|
| + * Copyright (C) 2011 Google Inc. All rights reserved.
|
| + *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| * met:
|
| - *
|
| + *
|
| * * Redistributions of source code must retain the above copyright
|
| * notice, this list of conditions and the following disclaimer.
|
| * * Redistributions in binary form must reproduce the above
|
| @@ -14,7 +14,7 @@
|
| * * Neither the name of Google Inc. nor the names of its
|
| * contributors may be used to endorse or promote products derived from
|
| * this software without specific prior written permission.
|
| - *
|
| + *
|
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| @@ -28,40 +28,20 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef ScriptArguments_h
|
| -#define ScriptArguments_h
|
| -
|
| -#include "PlatformString.h"
|
| -#include "ScriptState.h"
|
| -#include <wtf/Forward.h>
|
| -#include <wtf/RefCounted.h>
|
| -#include <wtf/Vector.h>
|
| +#ifndef ScheduledAction_h
|
| +#define ScheduledAction_h
|
|
|
| namespace WebCore {
|
|
|
| -class ScriptValue;
|
| +class ScriptExecutionContext;
|
|
|
| -class ScriptArguments : public RefCounted<ScriptArguments> {
|
| +class ScheduledAction {
|
| public:
|
| - static PassRefPtr<ScriptArguments> create(ScriptState*, Vector<ScriptValue>& arguments);
|
| -
|
| - ~ScriptArguments();
|
| -
|
| - const ScriptValue& argumentAt(size_t) const;
|
| - size_t argumentCount() const { return m_arguments.size(); }
|
| -
|
| - ScriptState* globalState() const;
|
| -
|
| - bool getFirstArgumentAsString(WTF::String& result, bool checkForNullOrUndefined = false);
|
| - bool isEqual(ScriptArguments*) const;
|
| -
|
| -private:
|
| - ScriptArguments(ScriptState*, Vector<ScriptValue>& arguments);
|
| -
|
| - ScriptStateProtectedPtr m_scriptState;
|
| - Vector<ScriptValue> m_arguments;
|
| + ScheduledAction() { }
|
| + virtual ~ScheduledAction() { }
|
| + virtual void execute(ScriptExecutionContext*) = 0;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // ScriptArguments_h
|
| +#endif // ScheduledAction
|
|
|