| 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 m_webViewImpl->addPageOverlay(this, OverlayZOrders::highlight); | 670 m_webViewImpl->addPageOverlay(this, OverlayZOrders::highlight); |
| 671 } | 671 } |
| 672 | 672 |
| 673 void WebDevToolsAgentImpl::hideHighlight() | 673 void WebDevToolsAgentImpl::hideHighlight() |
| 674 { | 674 { |
| 675 m_webViewImpl->removePageOverlay(this); | 675 m_webViewImpl->removePageOverlay(this); |
| 676 } | 676 } |
| 677 | 677 |
| 678 bool WebDevToolsAgentImpl::sendMessageToFrontend(const String& message) | 678 bool WebDevToolsAgentImpl::sendMessageToFrontend(const String& message) |
| 679 { | 679 { |
| 680 WebDevToolsAgentImpl* devToolsAgent = static_cast<WebDevToolsAgentImpl*>(m_w
ebViewImpl->devToolsAgent()); | 680 WebDevToolsAgentImpl* devToolsAgent = toWebDevToolsAgentImpl(m_webViewImpl->
devToolsAgent()); |
| 681 if (!devToolsAgent) | 681 if (!devToolsAgent) |
| 682 return false; | 682 return false; |
| 683 m_client->sendMessageToInspectorFrontend(message); | 683 m_client->sendMessageToInspectorFrontend(message); |
| 684 return true; | 684 return true; |
| 685 } | 685 } |
| 686 | 686 |
| 687 void WebDevToolsAgentImpl::updateInspectorStateCookie(const String& state) | 687 void WebDevToolsAgentImpl::updateInspectorStateCookie(const String& state) |
| 688 { | 688 { |
| 689 m_client->saveAgentRuntimeState(state); | 689 m_client->saveAgentRuntimeState(state); |
| 690 } | 690 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kProfiler_getCPUProfileCmd] | 760 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kProfiler_getCPUProfileCmd] |
| 761 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kHeapProfiler_getHeapSnapshotCmd]; | 761 || commandName == InspectorBackendDispatcher::commandNames[InspectorBack
endDispatcher::kHeapProfiler_getHeapSnapshotCmd]; |
| 762 } | 762 } |
| 763 | 763 |
| 764 void WebDevToolsAgent::processPendingMessages() | 764 void WebDevToolsAgent::processPendingMessages() |
| 765 { | 765 { |
| 766 PageScriptDebugServer::shared().runPendingTasks(); | 766 PageScriptDebugServer::shared().runPendingTasks(); |
| 767 } | 767 } |
| 768 | 768 |
| 769 } // namespace WebKit | 769 } // namespace WebKit |
| OLD | NEW |