Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: Source/web/WebDevToolsAgentImpl.cpp

Issue 26434002: Cleanup: Add more conversion helpers for usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698