Patch to follow.
Please find generated file content below: ====================================== #ifndef InspectorProtocolVersion_h #define InspectorProtocolVersion_h #include "PlatformString.h" namespace WebCore { String inspectorProtocolVersion() { return "tip-of-tree"; } bool supportsInspectorProtocolVersion(const String& version) { if (version == "draft-01") return true; if (version == "tip-of-tree") return true; return false; } } #endif // !defined(InspectorProtocolVersion_h) ======================================
Created attachment 109171 [details] Patch
Created attachment 109270 [details] Patch
============================================== #ifndef InspectorProtocolVersion_h #define InspectorProtocolVersion_h #include "PlatformString.h" #include <wtf/Vector.h> namespace WebCore { String inspectorProtocolVersion() { return "0.1"; } int inspectorProtocolVersionMajor() { return 0; } int inspectorProtocolVersionMinor() { return 1; } bool supportsInspectorProtocolVersion(const String& version) { Vector<String> tokens; version.split(".", tokens); if (tokens.size() != 2) return false; bool ok = true; int major = tokens[0].toInt(&ok); if (!ok || major != 0) return false; int minor = tokens[1].toInt(&ok); if (!ok || minor < 1) return false; return true; } } #endif // !defined(InspectorProtocolVersion_h) ==============================================
Committed r96398: <http://trac.webkit.org/changeset/96398>