| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 bool InspectorController::deviceEmulationEnabled() | 402 bool InspectorController::deviceEmulationEnabled() |
| 403 { | 403 { |
| 404 return m_pageAgent->deviceMetricsOverrideEnabled(); | 404 return m_pageAgent->deviceMetricsOverrideEnabled(); |
| 405 } | 405 } |
| 406 | 406 |
| 407 bool InspectorController::screencastEnabled() | 407 bool InspectorController::screencastEnabled() |
| 408 { | 408 { |
| 409 return m_pageAgent->screencastEnabled(); | 409 return m_pageAgent->screencastEnabled(); |
| 410 } | 410 } |
| 411 | 411 |
| 412 PassRefPtr<JSONObject> InspectorController::highlightJSONForNode(Node* node) | |
| 413 { | |
| 414 return m_overlay->highlightJSONForNode(node); | |
| 415 } | |
| 416 | |
| 417 void InspectorController::willProcessTask() | 412 void InspectorController::willProcessTask() |
| 418 { | 413 { |
| 419 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector
TimelineAgent()) | 414 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector
TimelineAgent()) |
| 420 timelineAgent->willProcessTask(); | 415 timelineAgent->willProcessTask(); |
| 421 if (InspectorProfilerAgent* profilerAgent = m_instrumentingAgents->inspector
ProfilerAgent()) | 416 if (InspectorProfilerAgent* profilerAgent = m_instrumentingAgents->inspector
ProfilerAgent()) |
| 422 profilerAgent->willProcessTask(); | 417 profilerAgent->willProcessTask(); |
| 423 } | 418 } |
| 424 | 419 |
| 425 void InspectorController::didProcessTask() | 420 void InspectorController::didProcessTask() |
| 426 { | 421 { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 m_layerTreeAgent->willAddPageOverlay(layer); | 479 m_layerTreeAgent->willAddPageOverlay(layer); |
| 485 } | 480 } |
| 486 | 481 |
| 487 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) | 482 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) |
| 488 { | 483 { |
| 489 if (m_layerTreeAgent) | 484 if (m_layerTreeAgent) |
| 490 m_layerTreeAgent->didRemovePageOverlay(layer); | 485 m_layerTreeAgent->didRemovePageOverlay(layer); |
| 491 } | 486 } |
| 492 | 487 |
| 493 } // namespace blink | 488 } // namespace blink |
| OLD | NEW |