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

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

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 layerObject->setAnchorY(0.0); 140 layerObject->setAnchorY(0.0);
141 layerObject->setAnchorZ(transformOrigin.z()); 141 layerObject->setAnchorZ(transformOrigin.z());
142 } 142 }
143 std::unique_ptr<Array<protocol::LayerTree::ScrollRect>> scrollRects = buildS crollRectsForLayer(graphicsLayer, reportWheelEventListeners); 143 std::unique_ptr<Array<protocol::LayerTree::ScrollRect>> scrollRects = buildS crollRectsForLayer(graphicsLayer, reportWheelEventListeners);
144 if (scrollRects) 144 if (scrollRects)
145 layerObject->setScrollRects(std::move(scrollRects)); 145 layerObject->setScrollRects(std::move(scrollRects));
146 return layerObject; 146 return layerObject;
147 } 147 }
148 148
149 InspectorLayerTreeAgent::InspectorLayerTreeAgent(InspectedFrames* inspectedFrame s) 149 InspectorLayerTreeAgent::InspectorLayerTreeAgent(InspectedFrames* inspectedFrame s)
150 : InspectorBaseAgent<InspectorLayerTreeAgent, protocol::LayerTree::Frontend> ("LayerTree") 150 : m_inspectedFrames(inspectedFrames)
151 , m_inspectedFrames(inspectedFrames)
152 { 151 {
153 } 152 }
154 153
155 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() 154 InspectorLayerTreeAgent::~InspectorLayerTreeAgent()
156 { 155 {
157 } 156 }
158 157
159 DEFINE_TRACE(InspectorLayerTreeAgent) 158 DEFINE_TRACE(InspectorLayerTreeAgent)
160 { 159 {
161 visitor->trace(m_inspectedFrames); 160 visitor->trace(m_inspectedFrames);
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) 452 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer)
454 { 453 {
455 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); 454 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id());
456 if (index == WTF::kNotFound) 455 if (index == WTF::kNotFound)
457 return; 456 return;
458 m_pageOverlayLayerIds.remove(index); 457 m_pageOverlayLayerIds.remove(index);
459 } 458 }
460 459
461 460
462 } // namespace blink 461 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698