| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2010-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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 if (m_layerTreeAgent) | 514 if (m_layerTreeAgent) |
| 515 m_layerTreeAgent->willAddPageOverlay(layer); | 515 m_layerTreeAgent->willAddPageOverlay(layer); |
| 516 } | 516 } |
| 517 | 517 |
| 518 void WebDevToolsAgentImpl::didRemovePageOverlay(const GraphicsLayer* layer) | 518 void WebDevToolsAgentImpl::didRemovePageOverlay(const GraphicsLayer* layer) |
| 519 { | 519 { |
| 520 if (m_layerTreeAgent) | 520 if (m_layerTreeAgent) |
| 521 m_layerTreeAgent->didRemovePageOverlay(layer); | 521 m_layerTreeAgent->didRemovePageOverlay(layer); |
| 522 } | 522 } |
| 523 | 523 |
| 524 void WebDevToolsAgentImpl::rootLayerCleared() |
| 525 { |
| 526 if (m_tracingAgent) |
| 527 m_tracingAgent->rootLayerCleared(); |
| 528 } |
| 529 |
| 524 void WebDevToolsAgentImpl::layerTreeViewChanged(WebLayerTreeView* layerTreeView) | 530 void WebDevToolsAgentImpl::layerTreeViewChanged(WebLayerTreeView* layerTreeView) |
| 525 { | 531 { |
| 526 m_layerTreeId = layerTreeView ? layerTreeView->layerTreeId() : 0; | 532 m_layerTreeId = layerTreeView ? layerTreeView->layerTreeId() : 0; |
| 527 if (m_tracingAgent) | 533 if (m_tracingAgent) |
| 528 m_tracingAgent->setLayerTreeId(m_layerTreeId); | 534 m_tracingAgent->setLayerTreeId(m_layerTreeId); |
| 529 } | 535 } |
| 530 | 536 |
| 531 void WebDevToolsAgentImpl::enableTracing(const String& categoryFilter) | 537 void WebDevToolsAgentImpl::enableTracing(const String& categoryFilter) |
| 532 { | 538 { |
| 533 if (m_client) | 539 if (m_client) |
| 534 m_client->enableTracing(categoryFilter); | 540 m_client->enableTracing(categoryFilter); |
| 535 } | 541 } |
| 536 | 542 |
| 537 void WebDevToolsAgentImpl::disableTracing() | 543 void WebDevToolsAgentImpl::disableTracing() |
| 538 { | 544 { |
| 539 if (m_client) | 545 if (m_client) |
| 540 m_client->disableTracing(); | 546 m_client->disableTracing(); |
| 541 } | 547 } |
| 542 | 548 |
| 549 void WebDevToolsAgentImpl::showReloadingBlanket() |
| 550 { |
| 551 if (m_overlay) |
| 552 m_overlay->showReloadingBlanket(); |
| 553 } |
| 554 |
| 555 void WebDevToolsAgentImpl::hideReloadingBlanket() |
| 556 { |
| 557 if (m_overlay) |
| 558 m_overlay->hideReloadingBlanket(); |
| 559 } |
| 560 |
| 543 void WebDevToolsAgentImpl::setCPUThrottlingRate(double rate) | 561 void WebDevToolsAgentImpl::setCPUThrottlingRate(double rate) |
| 544 { | 562 { |
| 545 if (m_client) | 563 if (m_client) |
| 546 m_client->setCPUThrottlingRate(rate); | 564 m_client->setCPUThrottlingRate(rate); |
| 547 } | 565 } |
| 548 | 566 |
| 549 void WebDevToolsAgentImpl::dispatchOnInspectorBackend(int sessionId, int callId,
const WebString& method, const WebString& message) | 567 void WebDevToolsAgentImpl::dispatchOnInspectorBackend(int sessionId, int callId,
const WebString& method, const WebString& message) |
| 550 { | 568 { |
| 551 if (!attached()) | 569 if (!attached()) |
| 552 return; | 570 return; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) | 687 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) |
| 670 { | 688 { |
| 671 return method == "Debugger.pause" | 689 return method == "Debugger.pause" |
| 672 || method == "Debugger.setBreakpoint" | 690 || method == "Debugger.setBreakpoint" |
| 673 || method == "Debugger.setBreakpointByUrl" | 691 || method == "Debugger.setBreakpointByUrl" |
| 674 || method == "Debugger.removeBreakpoint" | 692 || method == "Debugger.removeBreakpoint" |
| 675 || method == "Debugger.setBreakpointsActive"; | 693 || method == "Debugger.setBreakpointsActive"; |
| 676 } | 694 } |
| 677 | 695 |
| 678 } // namespace blink | 696 } // namespace blink |
| OLD | NEW |