| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); | 99 static PassRefPtr<JSONObject> createFrameData(int frameId); |
| 100 | 100 |
| 101 static PassRefPtr<JSONObject> createGPUTaskData(unsigned ownerPID); |
| 102 |
| 101 static void appendLayoutRoot(JSONObject* data, const FloatQuad&, long lo
ng rootNodeId); | 103 static void appendLayoutRoot(JSONObject* data, const FloatQuad&, long lo
ng rootNodeId); |
| 102 | 104 |
| 103 static void appendStyleRecalcDetails(JSONObject* data, unsigned elementC
ount); | 105 static void appendStyleRecalcDetails(JSONObject* data, unsigned elementC
ount); |
| 104 | 106 |
| 105 static void appendImageDetails(JSONObject* data, long long imageElementI
d, const String& url); | 107 static void appendImageDetails(JSONObject* data, long long imageElementI
d, const String& url); |
| 106 | 108 |
| 107 static inline PassRefPtr<JSONObject> createWebSocketCreateData(unsigned
long identifier, const KURL& url, const String& protocol) | 109 static inline PassRefPtr<JSONObject> createWebSocketCreateData(unsigned
long identifier, const KURL& url, const String& protocol) |
| 108 { | 110 { |
| 109 RefPtr<JSONObject> data = JSONObject::create(); | 111 RefPtr<JSONObject> data = JSONObject::create(); |
| 110 data->setNumber("identifier", identifier); | 112 data->setNumber("identifier", identifier); |
| 111 data->setString("url", url.string()); | 113 data->setString("url", url.string()); |
| 112 if (!protocol.isNull()) | 114 if (!protocol.isNull()) |
| 113 data->setString("webSocketProtocol", protocol); | 115 data->setString("webSocketProtocol", protocol); |
| 114 return data.release(); | 116 return data.release(); |
| 115 } | 117 } |
| 116 | 118 |
| 117 static inline PassRefPtr<JSONObject> createGenericWebSocketData(unsigned
long identifier) | 119 static inline PassRefPtr<JSONObject> createGenericWebSocketData(unsigned
long identifier) |
| 118 { | 120 { |
| 119 RefPtr<JSONObject> data = JSONObject::create(); | 121 RefPtr<JSONObject> data = JSONObject::create(); |
| 120 data->setNumber("identifier", identifier); | 122 data->setNumber("identifier", identifier); |
| 121 return data.release(); | 123 return data.release(); |
| 122 } | 124 } |
| 123 private: | 125 private: |
| 124 TimelineRecordFactory() { } | 126 TimelineRecordFactory() { } |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 } // namespace WebCore | 129 } // namespace WebCore |
| 128 | 130 |
| 129 #endif // !defined(TimelineRecordFactory_h) | 131 #endif // !defined(TimelineRecordFactory_h) |
| OLD | NEW |