| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 static PassRefPtr<JSONObject> createParseHTMLData(unsigned startLine); | 89 static PassRefPtr<JSONObject> createParseHTMLData(unsigned startLine); |
| 90 | 90 |
| 91 static PassRefPtr<JSONObject> createAnimationFrameData(int callbackId); | 91 static PassRefPtr<JSONObject> createAnimationFrameData(int callbackId); |
| 92 | 92 |
| 93 static PassRefPtr<JSONObject> createNodeData(long long nodeId); | 93 static PassRefPtr<JSONObject> createNodeData(long long nodeId); |
| 94 | 94 |
| 95 static PassRefPtr<JSONObject> createLayerData(long long layerRootNodeId)
; | 95 static PassRefPtr<JSONObject> createLayerData(long long layerRootNodeId)
; |
| 96 | 96 |
| 97 static PassRefPtr<JSONObject> createPaintData(const FloatQuad&, long lon
g layerRootNodeId); | 97 static PassRefPtr<JSONObject> createPaintData(const FloatQuad&, long lon
g layerRootNodeId); |
| 98 | 98 |
| 99 static PassRefPtr<JSONObject> createFrameData(int frameId); |
| 100 |
| 99 static void appendLayoutRoot(JSONObject* data, const FloatQuad&, long lo
ng rootNodeId); | 101 static void appendLayoutRoot(JSONObject* data, const FloatQuad&, long lo
ng rootNodeId); |
| 100 | 102 |
| 101 static void appendStyleRecalcDetails(JSONObject* data, unsigned elementC
ount); | 103 static void appendStyleRecalcDetails(JSONObject* data, unsigned elementC
ount); |
| 102 | 104 |
| 103 static void appendImageDetails(JSONObject* data, long long imageElementI
d, const String& url); | 105 static void appendImageDetails(JSONObject* data, long long imageElementI
d, const String& url); |
| 104 | 106 |
| 105 static inline PassRefPtr<JSONObject> createWebSocketCreateData(unsigned
long identifier, const KURL& url, const String& protocol) | 107 static inline PassRefPtr<JSONObject> createWebSocketCreateData(unsigned
long identifier, const KURL& url, const String& protocol) |
| 106 { | 108 { |
| 107 RefPtr<JSONObject> data = JSONObject::create(); | 109 RefPtr<JSONObject> data = JSONObject::create(); |
| 108 data->setNumber("identifier", identifier); | 110 data->setNumber("identifier", identifier); |
| 109 data->setString("url", url.string()); | 111 data->setString("url", url.string()); |
| 110 if (!protocol.isNull()) | 112 if (!protocol.isNull()) |
| 111 data->setString("webSocketProtocol", protocol); | 113 data->setString("webSocketProtocol", protocol); |
| 112 return data.release(); | 114 return data.release(); |
| 113 } | 115 } |
| 114 | 116 |
| 115 static inline PassRefPtr<JSONObject> createGenericWebSocketData(unsigned
long identifier) | 117 static inline PassRefPtr<JSONObject> createGenericWebSocketData(unsigned
long identifier) |
| 116 { | 118 { |
| 117 RefPtr<JSONObject> data = JSONObject::create(); | 119 RefPtr<JSONObject> data = JSONObject::create(); |
| 118 data->setNumber("identifier", identifier); | 120 data->setNumber("identifier", identifier); |
| 119 return data.release(); | 121 return data.release(); |
| 120 } | 122 } |
| 121 private: | 123 private: |
| 122 TimelineRecordFactory() { } | 124 TimelineRecordFactory() { } |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } // namespace WebCore | 127 } // namespace WebCore |
| 126 | 128 |
| 127 #endif // !defined(TimelineRecordFactory_h) | 129 #endif // !defined(TimelineRecordFactory_h) |
| OLD | NEW |