OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 void InspectorPageAgent::willRunJavaScriptDialog(const String& message) | 1176 void InspectorPageAgent::willRunJavaScriptDialog(const String& message) |
1177 { | 1177 { |
1178 m_frontend->javascriptDialogOpening(message); | 1178 m_frontend->javascriptDialogOpening(message); |
1179 } | 1179 } |
1180 | 1180 |
1181 void InspectorPageAgent::didRunJavaScriptDialog() | 1181 void InspectorPageAgent::didRunJavaScriptDialog() |
1182 { | 1182 { |
1183 m_frontend->javascriptDialogClosed(); | 1183 m_frontend->javascriptDialogClosed(); |
1184 } | 1184 } |
1185 | 1185 |
1186 void InspectorPageAgent::didPaint(RenderObject*, const GraphicsLayer*, GraphicsC
ontext* context, const LayoutRect& rect) | 1186 void InspectorPageAgent::didPaint(LayoutObject*, const GraphicsLayer*, GraphicsC
ontext* context, const LayoutRect& rect) |
1187 { | 1187 { |
1188 if (!m_enabled || m_client->overridesShowPaintRects() || !m_state->getBoolea
n(PageAgentState::pageAgentShowPaintRects)) | 1188 if (!m_enabled || m_client->overridesShowPaintRects() || !m_state->getBoolea
n(PageAgentState::pageAgentShowPaintRects)) |
1189 return; | 1189 return; |
1190 | 1190 |
1191 static int colorSelector = 0; | 1191 static int colorSelector = 0; |
1192 const Color colors[] = { | 1192 const Color colors[] = { |
1193 Color(0, 0x5F, 0, 0x3F), | 1193 Color(0, 0x5F, 0, 0x3F), |
1194 Color(0, 0xAF, 0, 0x3F), | 1194 Color(0, 0xAF, 0, 0x3F), |
1195 Color(0, 0xFF, 0, 0x3F), | 1195 Color(0, 0xFF, 0, 0x3F), |
1196 }; | 1196 }; |
1197 | 1197 |
1198 LayoutRect inflatedRect(rect); | 1198 LayoutRect inflatedRect(rect); |
1199 inflatedRect.inflate(-1); | 1199 inflatedRect.inflate(-1); |
1200 m_overlay->drawOutline(context, inflatedRect, colors[colorSelector++ % WTF_A
RRAY_LENGTH(colors)]); | 1200 m_overlay->drawOutline(context, inflatedRect, colors[colorSelector++ % WTF_A
RRAY_LENGTH(colors)]); |
1201 } | 1201 } |
1202 | 1202 |
1203 void InspectorPageAgent::didLayout(RenderObject*) | 1203 void InspectorPageAgent::didLayout(LayoutObject*) |
1204 { | 1204 { |
1205 if (!m_enabled) | 1205 if (!m_enabled) |
1206 return; | 1206 return; |
1207 m_overlay->update(); | 1207 m_overlay->update(); |
1208 viewportChanged(); | 1208 viewportChanged(); |
1209 } | 1209 } |
1210 | 1210 |
1211 void InspectorPageAgent::didScroll() | 1211 void InspectorPageAgent::didScroll() |
1212 { | 1212 { |
1213 if (m_enabled) | 1213 if (m_enabled) |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1512 void InspectorPageAgent::trace(Visitor* visitor) | 1512 void InspectorPageAgent::trace(Visitor* visitor) |
1513 { | 1513 { |
1514 visitor->trace(m_page); | 1514 visitor->trace(m_page); |
1515 visitor->trace(m_injectedScriptManager); | 1515 visitor->trace(m_injectedScriptManager); |
1516 visitor->trace(m_inspectorResourceContentLoader); | 1516 visitor->trace(m_inspectorResourceContentLoader); |
1517 InspectorBaseAgent::trace(visitor); | 1517 InspectorBaseAgent::trace(visitor); |
1518 } | 1518 } |
1519 | 1519 |
1520 } // namespace blink | 1520 } // namespace blink |
1521 | 1521 |
OLD | NEW |