Summary: | Web Inspector: [chromium] expose inspector protocol version to the embedder. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Pavel Feldman <pfeldman> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Pavel Feldman <pfeldman> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | caseq, loislo, yurys | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Pavel Feldman
2011-09-29 10:00:48 PDT
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> |