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

Unified Diff: sky/engine/core/inspector/ContentSearchUtils.h

Issue 727593004: Wire up the Inspector V8 Debugger (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Actually works Created 6 years, 1 month 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
Index: sky/engine/core/inspector/ContentSearchUtils.h
diff --git a/sky/engine/web/painting/ContinuousPainter.cpp b/sky/engine/core/inspector/ContentSearchUtils.h
similarity index 60%
copy from sky/engine/web/painting/ContinuousPainter.cpp
copy to sky/engine/core/inspector/ContentSearchUtils.h
index 5122135c36701058ca49d6cf1610c31c79ee1d32..da4306d1b267fae3a4e048ce6803b7d345daf990 100644
--- a/sky/engine/web/painting/ContinuousPainter.cpp
+++ b/sky/engine/core/inspector/ContentSearchUtils.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 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
@@ -26,31 +26,33 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config.h"
-#include "web/painting/ContinuousPainter.h"
+#ifndef ContentSearchUtils_h
+#define ContentSearchUtils_h
-#include "platform/TraceEvent.h"
-#include "platform/graphics/GraphicsLayer.h"
-
-using namespace blink;
+#include "core/InspectorTypeBuilder.h"
+#include "wtf/PassOwnPtr.h"
+#include "wtf/text/TextPosition.h"
+#include "wtf/text/WTFString.h"
namespace blink {
-void ContinuousPainter::setNeedsDisplayRecursive(GraphicsLayer* layer)
-{
- if (!layer)
- return;
+class ScriptRegexp;
+
+namespace ContentSearchUtils {
- TRACE_EVENT0("blink", "ContinuousPainter::setNeedsDisplayRecursive");
- layer->setNeedsDisplay();
+enum MagicCommentType {
+ JavaScriptMagicComment,
+ CSSMagicComment
+};
- setNeedsDisplayRecursive(layer->maskLayer());
- setNeedsDisplayRecursive(layer->contentsClippingMaskLayer());
+PassOwnPtr<ScriptRegexp> createSearchRegex(const String& query, bool caseSensitive, bool isRegex);
+PassRefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> > searchInTextByLines(const String& text, const String& query, const bool caseSensitive, const bool isRegex);
- const Vector<GraphicsLayer*>& children = layer->children();
- Vector<GraphicsLayer*>::const_iterator it;
- for (it = children.begin(); it != children.end(); ++it)
- setNeedsDisplayRecursive(*it);
-}
+String findSourceURL(const String& content, MagicCommentType, bool* deprecated);
+String findSourceMapURL(const String& content, MagicCommentType, bool* deprecated);
+} // namespace ContentSearchUtils
} // namespace blink
+
+
+#endif // !defined(ContentSearchUtils_h)

Powered by Google App Engine
This is Rietveld 408576698