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

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

Issue 257873002: DevTools: do not use internals for highlight testing, use protocol instead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/sdk/DOMModel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 m_attached = true; 239 m_attached = true;
240 } 240 }
241 241
242 void WebDevToolsAgentImpl::detach() 242 void WebDevToolsAgentImpl::detach()
243 { 243 {
244 blink::Platform::current()->currentThread()->removeTaskObserver(this); 244 blink::Platform::current()->currentThread()->removeTaskObserver(this);
245 245
246 // Prevent controller from sending messages to the frontend. 246 // Prevent controller from sending messages to the frontend.
247 InspectorController* ic = inspectorController(); 247 InspectorController* ic = inspectorController();
248 ic->disconnectFrontend(); 248 ic->disconnectFrontend();
249 ic->hideHighlight();
250 m_attached = false; 249 m_attached = false;
251 } 250 }
252 251
253 void WebDevToolsAgentImpl::didNavigate() 252 void WebDevToolsAgentImpl::didNavigate()
254 { 253 {
255 ClientMessageLoopAdapter::didNavigate(); 254 ClientMessageLoopAdapter::didNavigate();
256 } 255 }
257 256
258 void WebDevToolsAgentImpl::didBeginFrame(int frameId) 257 void WebDevToolsAgentImpl::didBeginFrame(int frameId)
259 { 258 {
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd) 703 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd)
705 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd); 704 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd);
706 } 705 }
707 706
708 void WebDevToolsAgent::processPendingMessages() 707 void WebDevToolsAgent::processPendingMessages()
709 { 708 {
710 PageScriptDebugServer::shared().runPendingTasks(); 709 PageScriptDebugServer::shared().runPendingTasks();
711 } 710 }
712 711
713 } // namespace blink 712 } // namespace blink
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/DOMModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698