OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 | 149 |
150 /** | 150 /** |
151 * @return {string?} | 151 * @return {string?} |
152 */ | 152 */ |
153 parentId: function() | 153 parentId: function() |
154 { | 154 { |
155 return this._rawLayer["parentLayerId"]; | 155 return this._rawLayer["parentLayerId"]; |
156 }, | 156 }, |
157 | 157 |
158 /** | 158 /** |
159 * @return {number} | |
160 */ | |
161 offsetX: function() | |
162 { | |
163 return this._rawLayer["offsetX"]; | |
pfeldman
2013/08/09 09:24:52
. notation.
| |
164 }, | |
165 | |
166 /** | |
167 * @return {number} | |
168 */ | |
169 offsetY: function() | |
170 { | |
171 return this._rawLayer["offsetY"]; | |
172 }, | |
173 | |
174 /** | |
175 * @return {number} | |
176 */ | |
177 width: function() | |
178 { | |
179 return this._rawLayer["width"]; | |
180 }, | |
181 | |
182 /** | |
183 * @return {number} | |
184 */ | |
185 height: function() | |
186 { | |
187 return this._rawLayer["height"]; | |
188 }, | |
189 | |
190 /** | |
159 * @return {WebInspector.Layer} | 191 * @return {WebInspector.Layer} |
160 */ | 192 */ |
161 parent: function() | 193 parent: function() |
162 { | 194 { |
163 return this._parent; | 195 return this._parent; |
164 }, | 196 }, |
165 | 197 |
166 isRoot: function() | 198 isRoot: function() |
167 { | 199 { |
168 return !!this.parentId(); | 200 return !!this.parentId(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 { | 235 { |
204 this._layerTreeModel = layerTreeModel; | 236 this._layerTreeModel = layerTreeModel; |
205 } | 237 } |
206 | 238 |
207 WebInspector.LayerTreeDispatcher.prototype = { | 239 WebInspector.LayerTreeDispatcher.prototype = { |
208 layerTreeDidChange: function() | 240 layerTreeDidChange: function() |
209 { | 241 { |
210 this._layerTreeModel._layerTreeChanged(); | 242 this._layerTreeModel._layerTreeChanged(); |
211 } | 243 } |
212 } | 244 } |
OLD | NEW |