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

Side by Side Diff: Source/core/inspector/InspectorController.cpp

Issue 900903002: DevTools: do not use Internals for inspector highlight tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comment addressed. Created 5 years, 10 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/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | 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) 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 bool InspectorController::deviceEmulationEnabled() 402 bool InspectorController::deviceEmulationEnabled()
403 { 403 {
404 return m_pageAgent->deviceMetricsOverrideEnabled(); 404 return m_pageAgent->deviceMetricsOverrideEnabled();
405 } 405 }
406 406
407 bool InspectorController::screencastEnabled() 407 bool InspectorController::screencastEnabled()
408 { 408 {
409 return m_pageAgent->screencastEnabled(); 409 return m_pageAgent->screencastEnabled();
410 } 410 }
411 411
412 PassRefPtr<JSONObject> InspectorController::highlightJSONForNode(Node* node)
413 {
414 return m_overlay->highlightJSONForNode(node);
415 }
416
417 void InspectorController::willProcessTask() 412 void InspectorController::willProcessTask()
418 { 413 {
419 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector TimelineAgent()) 414 if (InspectorTimelineAgent* timelineAgent = m_instrumentingAgents->inspector TimelineAgent())
420 timelineAgent->willProcessTask(); 415 timelineAgent->willProcessTask();
421 if (InspectorProfilerAgent* profilerAgent = m_instrumentingAgents->inspector ProfilerAgent()) 416 if (InspectorProfilerAgent* profilerAgent = m_instrumentingAgents->inspector ProfilerAgent())
422 profilerAgent->willProcessTask(); 417 profilerAgent->willProcessTask();
423 } 418 }
424 419
425 void InspectorController::didProcessTask() 420 void InspectorController::didProcessTask()
426 { 421 {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 m_layerTreeAgent->willAddPageOverlay(layer); 479 m_layerTreeAgent->willAddPageOverlay(layer);
485 } 480 }
486 481
487 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) 482 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer)
488 { 483 {
489 if (m_layerTreeAgent) 484 if (m_layerTreeAgent)
490 m_layerTreeAgent->didRemovePageOverlay(layer); 485 m_layerTreeAgent->didRemovePageOverlay(layer);
491 } 486 }
492 487
493 } // namespace blink 488 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorController.h ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698