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

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

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (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 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Called from the front-end. 75 // Called from the front-end.
76 void enable(ErrorString*) override; 76 void enable(ErrorString*) override;
77 void disable(ErrorString*) override; 77 void disable(ErrorString*) override;
78 void compositingReasons(ErrorString*, const String& layerId, OwnPtr<protocol ::Array<String>>* compositingReasons) override; 78 void compositingReasons(ErrorString*, const String& layerId, OwnPtr<protocol ::Array<String>>* compositingReasons) override;
79 void makeSnapshot(ErrorString*, const String& layerId, String* snapshotId) o verride; 79 void makeSnapshot(ErrorString*, const String& layerId, String* snapshotId) o verride;
80 void loadSnapshot(ErrorString*, PassOwnPtr<protocol::Array<protocol::LayerTr ee::PictureTile>> tiles, String* snapshotId) override; 80 void loadSnapshot(ErrorString*, PassOwnPtr<protocol::Array<protocol::LayerTr ee::PictureTile>> tiles, String* snapshotId) override;
81 void releaseSnapshot(ErrorString*, const String& snapshotId) override; 81 void releaseSnapshot(ErrorString*, const String& snapshotId) override;
82 void profileSnapshot(ErrorString*, const String& snapshotId, const Maybe<int >& minRepeatCount, const Maybe<double>& minDuration, const Maybe<protocol::DOM:: Rect>& clipRect, OwnPtr<protocol::Array<protocol::Array<double>>>* timings) over ride; 82 void profileSnapshot(ErrorString*, const String& snapshotId, const Maybe<int >& minRepeatCount, const Maybe<double>& minDuration, const Maybe<protocol::DOM:: Rect>& clipRect, OwnPtr<protocol::Array<protocol::Array<double>>>* timings) over ride;
83 void replaySnapshot(ErrorString*, const String& snapshotId, const Maybe<int> & fromStep, const Maybe<int>& toStep, const Maybe<double>& scale, String* dataUR L) override; 83 void replaySnapshot(ErrorString*, const String& snapshotId, const Maybe<int> & fromStep, const Maybe<int>& toStep, const Maybe<double>& scale, String* dataUR L) override;
84 void snapshotCommandLog(ErrorString*, const String& snapshotId, OwnPtr<proto col::Array<RefPtr<JSONObject>>>* commandLog) override; 84 void snapshotCommandLog(ErrorString*, const String& snapshotId, OwnPtr<proto col::Array<RefPtr<protocol::DictionaryValue>>>* commandLog) override;
85 85
86 // Called by other agents. 86 // Called by other agents.
87 PassOwnPtr<protocol::Array<protocol::LayerTree::Layer>> buildLayerTree(); 87 PassOwnPtr<protocol::Array<protocol::LayerTree::Layer>> buildLayerTree();
88 88
89 private: 89 private:
90 static unsigned s_lastSnapshotId; 90 static unsigned s_lastSnapshotId;
91 91
92 explicit InspectorLayerTreeAgent(InspectedFrames*); 92 explicit InspectorLayerTreeAgent(InspectedFrames*);
93 93
94 GraphicsLayer* rootGraphicsLayer(); 94 GraphicsLayer* rootGraphicsLayer();
(...skipping 11 matching lines...) Expand all
106 Vector<int, 2> m_pageOverlayLayerIds; 106 Vector<int, 2> m_pageOverlayLayerIds;
107 107
108 typedef HashMap<String, RefPtr<PictureSnapshot>> SnapshotById; 108 typedef HashMap<String, RefPtr<PictureSnapshot>> SnapshotById;
109 SnapshotById m_snapshotById; 109 SnapshotById m_snapshotById;
110 }; 110 };
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 114
115 #endif // !defined(InspectorLayerTreeAgent_h) 115 #endif // !defined(InspectorLayerTreeAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698