| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 return; | 360 return; |
| 361 injectedScript.inspectNode(node); | 361 injectedScript.inspectNode(node); |
| 362 } | 362 } |
| 363 | 363 |
| 364 void InspectorController::setInjectedScriptForOrigin(const String& origin, const
String& source) | 364 void InspectorController::setInjectedScriptForOrigin(const String& origin, const
String& source) |
| 365 { | 365 { |
| 366 if (InspectorInspectorAgent* inspectorAgent = m_instrumentingAgents->inspect
orInspectorAgent()) | 366 if (InspectorInspectorAgent* inspectorAgent = m_instrumentingAgents->inspect
orInspectorAgent()) |
| 367 inspectorAgent->setInjectedScriptForOrigin(origin, source); | 367 inspectorAgent->setInjectedScriptForOrigin(origin, source); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void InspectorController::showContextMenu(float x, float y, PassRefPtr<ContextMe
nuProvider> menuProvider) | 370 void InspectorController::showContextMenu(float x, float y, PassRefPtrWillBeRawP
tr<ContextMenuProvider> menuProvider) |
| 371 { | 371 { |
| 372 if (!m_inspectorClient) | 372 if (!m_inspectorClient) |
| 373 return; | 373 return; |
| 374 m_inspectorClient->showContextMenu(x, y, menuProvider); | 374 m_inspectorClient->showContextMenu(x, y, menuProvider); |
| 375 } | 375 } |
| 376 | 376 |
| 377 void InspectorController::dispatchMessageFromFrontend(const String& message) | 377 void InspectorController::dispatchMessageFromFrontend(const String& message) |
| 378 { | 378 { |
| 379 if (m_inspectorBackendDispatcher) | 379 if (m_inspectorBackendDispatcher) |
| 380 m_inspectorBackendDispatcher->dispatch(message); | 380 m_inspectorBackendDispatcher->dispatch(message); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 m_layerTreeAgent->willAddPageOverlay(layer); | 523 m_layerTreeAgent->willAddPageOverlay(layer); |
| 524 } | 524 } |
| 525 | 525 |
| 526 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) | 526 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) |
| 527 { | 527 { |
| 528 if (m_layerTreeAgent) | 528 if (m_layerTreeAgent) |
| 529 m_layerTreeAgent->didRemovePageOverlay(layer); | 529 m_layerTreeAgent->didRemovePageOverlay(layer); |
| 530 } | 530 } |
| 531 | 531 |
| 532 } // namespace blink | 532 } // namespace blink |
| OLD | NEW |