| Index: Source/core/platform/graphics/AnnotationMode.h
|
| diff --git a/Source/core/platform/Task.h b/Source/core/platform/graphics/AnnotationMode.h
|
| similarity index 81%
|
| copy from Source/core/platform/Task.h
|
| copy to Source/core/platform/graphics/AnnotationMode.h
|
| index b9d2e46802aebf6391df4ec3dabb580d43b2483c..fb1719dc752a6d698eff4e0c9c5e3c87c83c68fd 100644
|
| --- a/Source/core/platform/Task.h
|
| +++ b/Source/core/platform/graphics/AnnotationMode.h
|
| @@ -28,30 +28,23 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef Task_h
|
| -#define Task_h
|
| -
|
| -#include "wtf/Functional.h"
|
| -#include "public/platform/WebThread.h"
|
| +#ifndef AnnotationMode_h
|
| +#define AnnotationMode_h
|
|
|
| namespace WebCore {
|
|
|
| -class Task : public WebKit::WebThread::Task {
|
| -public:
|
| - explicit Task(const Closure& closure)
|
| - : m_closure(closure)
|
| - {
|
| - }
|
| -
|
| - virtual void run() OVERRIDE
|
| - {
|
| - m_closure();
|
| - }
|
| +enum AnnotationMode {
|
| + AnnotateRendererName = 1 << 0,
|
| + AnnotatePaintPhase = 1 << 1,
|
| + AnnotateElementId = 1 << 2,
|
| + AnnotateElementClass = 1 << 3,
|
| + AnnotateElementTag = 1 << 4,
|
|
|
| -private:
|
| - Closure m_closure;
|
| + AnnotateAll = 0x1f
|
| };
|
|
|
| +typedef unsigned AnnotationModeFlags;
|
| +
|
| } // namespace WebCore
|
|
|
| -#endif // Task_h
|
| +#endif // AnnotationMode_h
|
|
|