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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.h

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.h b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.h
index 9578569b1a5e8b29eeb646a9cc5ab38c83a3c703..633bcfa2fcd6ebae5262fc60a80de8c023f75586 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.h
@@ -62,7 +62,6 @@ public:
~InspectorLayerTreeAgent() override;
DECLARE_VIRTUAL_TRACE();
- void disable(ErrorString*) override;
void restore() override;
// Called from InspectorController
@@ -75,16 +74,17 @@ public:
// Called from the front-end.
void enable(ErrorString*) override;
- void compositingReasons(ErrorString*, const String& layerId, RefPtr<protocol::TypeBuilder::Array<String>>&) override;
- void makeSnapshot(ErrorString*, const String& layerId, String* snapshotId) override;
- void loadSnapshot(ErrorString*, const RefPtr<JSONArray>& tiles, String* snapshotId) override;
- void releaseSnapshot(ErrorString*, const String& snapshotId) override;
- void replaySnapshot(ErrorString*, const String& snapshotId, const int* fromStep, const int* toStep, const double* scale, String* dataURL) override;
- void profileSnapshot(ErrorString*, const String& snapshotId, const int* minRepeatCount, const double* minDuration, const RefPtr<JSONObject>* clipRect, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Array<double>>>&) override;
- void snapshotCommandLog(ErrorString*, const String& snapshotId, RefPtr<protocol::TypeBuilder::Array<JSONObject>>&) override;
+ void disable(ErrorString*) override;
+ void compositingReasons(ErrorString*, const String& in_layerId, OwnPtr<protocol::TypeBuilder::Array<String>>* out_compositingReasons) override;
+ void makeSnapshot(ErrorString*, const String& in_layerId, String* out_snapshotId) override;
+ void loadSnapshot(ErrorString*, PassOwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::LayerTree::PictureTile>> in_tiles, String* out_snapshotId) override;
+ void releaseSnapshot(ErrorString*, const String& in_snapshotId) override;
+ void profileSnapshot(ErrorString*, const String& in_snapshotId, const protocol::TypeBuilder::OptionalValue<int>& in_minRepeatCount, const protocol::TypeBuilder::OptionalValue<double>& in_minDuration, PassOwnPtr<protocol::TypeBuilder::DOM::Rect> in_clipRect, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Array<double>>>* out_timings) override;
+ void replaySnapshot(ErrorString*, const String& in_snapshotId, const protocol::TypeBuilder::OptionalValue<int>& in_fromStep, const protocol::TypeBuilder::OptionalValue<int>& in_toStep, const protocol::TypeBuilder::OptionalValue<double>& in_scale, String* out_dataURL) override;
+ void snapshotCommandLog(ErrorString*, const String& in_snapshotId, OwnPtr<protocol::TypeBuilder::Array<RefPtr<JSONObject>>>* out_commandLog) override;
// Called by other agents.
- PassRefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::LayerTree::Layer>> buildLayerTree();
+ PassOwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::LayerTree::Layer>> buildLayerTree();
private:
static unsigned s_lastSnapshotId;
@@ -99,7 +99,7 @@ private:
typedef HashMap<int, int> LayerIdToNodeIdMap;
void buildLayerIdToNodeIdMap(PaintLayer*, LayerIdToNodeIdMap&);
- void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeIdMap, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::LayerTree::Layer>>&, bool hasWheelEventHandlers, int scrollingRootLayerId);
+ void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeIdMap, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::LayerTree::Layer>>&, bool hasWheelEventHandlers, int scrollingRootLayerId);
int idForNode(Node*);
RawPtrWillBeMember<InspectedFrames> m_inspectedFrames;

Powered by Google App Engine
This is Rietveld 408576698