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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 static PassRefPtr<InspectorObject> createDecodeImageData(const String& i
mageType); | 85 static PassRefPtr<InspectorObject> createDecodeImageData(const String& i
mageType); |
86 | 86 |
87 static PassRefPtr<InspectorObject> createResizeImageData(bool shouldCach
e); | 87 static PassRefPtr<InspectorObject> createResizeImageData(bool shouldCach
e); |
88 | 88 |
89 static PassRefPtr<InspectorObject> createMarkData(bool isMainFrame); | 89 static PassRefPtr<InspectorObject> createMarkData(bool isMainFrame); |
90 | 90 |
91 static PassRefPtr<InspectorObject> createParseHTMLData(unsigned startLin
e); | 91 static PassRefPtr<InspectorObject> createParseHTMLData(unsigned startLin
e); |
92 | 92 |
93 static PassRefPtr<InspectorObject> createAnimationFrameData(int callback
Id); | 93 static PassRefPtr<InspectorObject> createAnimationFrameData(int callback
Id); |
94 | 94 |
95 static PassRefPtr<InspectorObject> createPaintData(const FloatQuad&, int
layerRootNodeId); | 95 static PassRefPtr<InspectorObject> createPaintData(const FloatQuad&, lon
g long layerRootNodeId); |
96 | 96 |
97 static void appendLayoutRoot(InspectorObject* data, const FloatQuad&, in
t rootNodeId); | 97 static PassRefPtr<InspectorObject> createRasterizeData(long long layerRo
otNodeId); |
| 98 |
| 99 static void appendLayoutRoot(InspectorObject* data, const FloatQuad&, lo
ng long rootNodeId); |
98 | 100 |
99 static void appendStyleRecalcDetails(InspectorObject* data, unsigned ele
mentCount); | 101 static void appendStyleRecalcDetails(InspectorObject* data, unsigned ele
mentCount); |
100 | 102 |
101 static inline PassRefPtr<InspectorObject> createWebSocketCreateData(unsi
gned long identifier, const KURL& url, const String& protocol) | 103 static inline PassRefPtr<InspectorObject> createWebSocketCreateData(unsi
gned long identifier, const KURL& url, const String& protocol) |
102 { | 104 { |
103 RefPtr<InspectorObject> data = InspectorObject::create(); | 105 RefPtr<InspectorObject> data = InspectorObject::create(); |
104 data->setNumber("identifier", identifier); | 106 data->setNumber("identifier", identifier); |
105 data->setString("url", url.string()); | 107 data->setString("url", url.string()); |
106 if (!protocol.isNull()) | 108 if (!protocol.isNull()) |
107 data->setString("webSocketProtocol", protocol); | 109 data->setString("webSocketProtocol", protocol); |
108 return data.release(); | 110 return data.release(); |
109 } | 111 } |
110 | 112 |
111 static inline PassRefPtr<InspectorObject> createGenericWebSocketData(uns
igned long identifier) | 113 static inline PassRefPtr<InspectorObject> createGenericWebSocketData(uns
igned long identifier) |
112 { | 114 { |
113 RefPtr<InspectorObject> data = InspectorObject::create(); | 115 RefPtr<InspectorObject> data = InspectorObject::create(); |
114 data->setNumber("identifier", identifier); | 116 data->setNumber("identifier", identifier); |
115 return data.release(); | 117 return data.release(); |
116 } | 118 } |
117 private: | 119 private: |
118 TimelineRecordFactory() { } | 120 TimelineRecordFactory() { } |
119 }; | 121 }; |
120 | 122 |
121 } // namespace WebCore | 123 } // namespace WebCore |
122 | 124 |
123 #endif // !defined(TimelineRecordFactory_h) | 125 #endif // !defined(TimelineRecordFactory_h) |
OLD | NEW |