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

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

Issue 1765153002: Update DevTools Tracing.Start to accept trace config as a parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 m_layerTreeAgent->didRemovePageOverlay(layer); 589 m_layerTreeAgent->didRemovePageOverlay(layer);
590 } 590 }
591 591
592 void WebDevToolsAgentImpl::layerTreeViewChanged(WebLayerTreeView* layerTreeView) 592 void WebDevToolsAgentImpl::layerTreeViewChanged(WebLayerTreeView* layerTreeView)
593 { 593 {
594 m_layerTreeId = layerTreeView ? layerTreeView->layerTreeId() : 0; 594 m_layerTreeId = layerTreeView ? layerTreeView->layerTreeId() : 0;
595 if (m_tracingAgent) 595 if (m_tracingAgent)
596 m_tracingAgent->setLayerTreeId(m_layerTreeId); 596 m_tracingAgent->setLayerTreeId(m_layerTreeId);
597 } 597 }
598 598
599 void WebDevToolsAgentImpl::enableTracingWithConfigStr(const String& devtoolsStyl eConfig)
600 {
601 m_client->enableTracingWithConfigStr(devtoolsStyleConfig);
602 }
603
599 void WebDevToolsAgentImpl::enableTracing(const String& categoryFilter) 604 void WebDevToolsAgentImpl::enableTracing(const String& categoryFilter)
600 { 605 {
601 m_client->enableTracing(categoryFilter); 606 m_client->enableTracing(categoryFilter);
602 } 607 }
603 608
604 void WebDevToolsAgentImpl::disableTracing() 609 void WebDevToolsAgentImpl::disableTracing()
605 { 610 {
606 m_client->disableTracing(); 611 m_client->disableTracing();
607 } 612 }
608 613
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 if (!protocol::Dispatcher::getCommandName(message, &commandName)) 772 if (!protocol::Dispatcher::getCommandName(message, &commandName))
768 return false; 773 return false;
769 return commandName == "Debugger.pause" 774 return commandName == "Debugger.pause"
770 || commandName == "Debugger.setBreakpoint" 775 || commandName == "Debugger.setBreakpoint"
771 || commandName == "Debugger.setBreakpointByUrl" 776 || commandName == "Debugger.setBreakpointByUrl"
772 || commandName == "Debugger.removeBreakpoint" 777 || commandName == "Debugger.removeBreakpoint"
773 || commandName == "Debugger.setBreakpointsActive"; 778 || commandName == "Debugger.setBreakpointsActive";
774 } 779 }
775 780
776 } // namespace blink 781 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698