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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree") 141 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree")
142 , m_frontend(0) 142 , m_frontend(0)
143 , m_page(page) 143 , m_page(page)
144 { 144 {
145 } 145 }
146 146
147 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() 147 InspectorLayerTreeAgent::~InspectorLayerTreeAgent()
148 { 148 {
149 } 149 }
150 150
151 void InspectorLayerTreeAgent::trace(Visitor* visitor)
152 {
153 visitor->trace(m_page);
154 InspectorBaseAgent::trace(visitor);
155 }
156
151 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend) 157 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend)
152 { 158 {
153 m_frontend = frontend->layertree(); 159 m_frontend = frontend->layertree();
154 } 160 }
155 161
156 void InspectorLayerTreeAgent::clearFrontend() 162 void InspectorLayerTreeAgent::clearFrontend()
157 { 163 {
158 m_frontend = 0; 164 m_frontend = 0;
159 disable(0); 165 disable(0);
160 } 166 }
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) 411 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer)
406 { 412 {
407 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); 413 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id());
408 if (index == WTF::kNotFound) 414 if (index == WTF::kNotFound)
409 return; 415 return;
410 m_pageOverlayLayerIds.remove(index); 416 m_pageOverlayLayerIds.remove(index);
411 } 417 }
412 418
413 419
414 } // namespace WebCore 420 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698