Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(875)

Unified Diff: Source/core/platform/graphics/AnnotationMode.h

Issue 18551004: Miscellaneous cleanup to reduce number of includes in platform/graphics/ Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698