_WKInspectorDebuggableInfoInternal.h [plain text]
#import "_WKInspectorDebuggableInfo.h"
#import "APIDebuggableInfo.h"
#import "WKObject.h"
namespace WebKit {
template<> struct WrapperTraits<API::DebuggableInfo> {
using WrapperClass = _WKInspectorDebuggableInfo;
};
}
@interface _WKInspectorDebuggableInfo () <WKObject> {
@package
API::ObjectStorage<API::DebuggableInfo> _debuggableInfo;
}
@end
inline Inspector::DebuggableType fromWKInspectorDebuggableType(_WKInspectorDebuggableType debuggableType)
{
switch (debuggableType) {
case _WKInspectorDebuggableTypeITML:
return Inspector::DebuggableType::ITML;
case _WKInspectorDebuggableTypeJavaScript:
return Inspector::DebuggableType::JavaScript;
case _WKInspectorDebuggableTypePage:
return Inspector::DebuggableType::Page;
case _WKInspectorDebuggableTypeServiceWorker:
return Inspector::DebuggableType::ServiceWorker;
case _WKInspectorDebuggableTypeWebPage:
return Inspector::DebuggableType::WebPage;
}
ASSERT_NOT_REACHED();
return Inspector::DebuggableType::JavaScript;
}
inline _WKInspectorDebuggableType toWKInspectorDebuggableType(Inspector::DebuggableType debuggableType)
{
switch (debuggableType) {
case Inspector::DebuggableType::ITML:
return _WKInspectorDebuggableTypeITML;
case Inspector::DebuggableType::JavaScript:
return _WKInspectorDebuggableTypeJavaScript;
case Inspector::DebuggableType::Page:
return _WKInspectorDebuggableTypePage;
case Inspector::DebuggableType::ServiceWorker:
return _WKInspectorDebuggableTypeServiceWorker;
case Inspector::DebuggableType::WebPage:
return _WKInspectorDebuggableTypeWebPage;
}
ASSERT_NOT_REACHED();
return _WKInspectorDebuggableTypeJavaScript;
}