Roll src/third_party/WebKit 3aea697:d9c6159 (svn 201973:201974)
[chromium-blink-merge.git] / tools / win / DebugVisualizers / chrome.natvis
blob7a7c45e1ac1330a3cdaf07a78022f3a10befceca
1 <?xml version="1.0" encoding="utf-8" ?>
2 <AutoVisualizer
3     xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
4   <Type Name="gfx::Point">
5     <AlternativeType Name="gfx::PointF"/>
6     <DisplayString>({x_}, {y_})</DisplayString>
7     <Expand>
8       <Item Name="X">x_</Item>
9       <Item Name="Y">y_</Item>
10     </Expand>
11   </Type>
12   <Type Name="gfx::Size">
13     <AlternativeType Name="gfx::SizeF"/>
14     <DisplayString>({width_}, {height_})</DisplayString>
15     <Expand>
16       <Item Name="Width">width_</Item>
17       <Item Name="Height">height_</Item>
18     </Expand>
19   </Type>
20   <Type Name="gfx::Rect">
21     <AlternativeType Name="gfx::RectF"/>
22     <DisplayString>({origin_.x_}, {origin_.y_}) x ({size_.width_}, {size_.height_})</DisplayString>
23     <Expand>
24       <Item Name="Left">origin_.x_</Item>
25       <Item Name="Top">origin_.y_</Item>
26       <Item Name="Width">size_.width_</Item>
27       <Item Name="Height">size_.height_</Item>
28     </Expand>
29   </Type>
30   <Type Name="aura::Window::Value">
31     <DisplayString>{name,s}: {value}</DisplayString>
32     <Expand/>
33   </Type>
34   <Type Name="aura::Window">
35     <DisplayString>{name_,s}</DisplayString>
36     <Expand>
37       <Item Name="Name">name_</Item>
38       <Item Name="Id">id_</Item>
39       <Item Name="Parent">parent_</Item>
40       <Item Name="Children">children_</Item>
41       <Item Name="Bounds">bounds_</Item>
42       <Item Name="Type">type_</Item>
43       <Item Name="Visible">visible_</Item>
44       <Item Name="Transparent">transparent_</Item>
45       <!--<Synthetic Name="Property Map">
46         <DisplayString>Size = {prop_map_._Mysize}</DisplayString>
47         <Expand>
48           <TreeItems>
49             <Size>prop_map_._Mysize</Size>
50             <HeadPointer>prop_map_._Myhead-&gt;_Parent</HeadPointer>
51             <LeftPointer>_Left</LeftPointer>
52             <RightPointer>_Right</RightPointer>
53             <ValueNode Condition="_Isnil == 0">_Myval.second</ValueNode>
54           </TreeItems>
55         </Expand>
56       </Synthetic>-->
57       <Item Name="Layer">layer_</Item>
58     </Expand>
59   </Type>
60   <Type Name="scoped_ptr&lt;*,*&gt;">
61     <DisplayString Condition="impl_.data_.ptr == 0">null</DisplayString>
62     <DisplayString>{impl_.data_.ptr}</DisplayString>
63     <Expand>
64       <ExpandedItem>impl_.data_.ptr</ExpandedItem>
65     </Expand>
66   </Type>
67   <Type Name="scoped_refptr&lt;*&gt;">
68     <DisplayString Condition="ptr_ == 0">null</DisplayString>
69     <DisplayString>[{((base::subtle::RefCountedBase*)ptr_)-&gt;ref_count_}] {(void*)ptr_} {*ptr_}</DisplayString>
70     <Expand>
71       <Item Name="Ptr">ptr_</Item>
72       <Item Name="RefCount">((base::subtle::RefCountedBase*)ptr_)-&gt;ref_count_</Item>
73     </Expand>
74   </Type>
75   <Type Name="base::RefCounted&lt;*&gt;">
76     <DisplayString>RefCount: {ref_count_}</DisplayString>
77     <Expand>
78       <Item Name="RefCount">ref_count_</Item>
79     </Expand>
80   </Type>
81   <Type Name="IPC::Message::Header">
82     <DisplayString>{{Routing: {routing}, Type: {type}}}</DisplayString>
83     <Expand>
84       <Item Name="RoutingId">routing</Item>
85       <Item Name="Type">type</Item>
86       <Synthetic Name="Priority"
87                  Condition="(flags &amp; IPC::Message::PRIORITY_MASK) ==
88                                 IPC::Message::PRIORITY_LOW">
89         <DisplayString>Low</DisplayString>
90       </Synthetic>
91       <Synthetic Name="Priority"
92                  Condition="(flags &amp; IPC::Message::PRIORITY_MASK) ==
93                                 IPC::Message::PRIORITY_NORMAL">
94         <DisplayString>Normal</DisplayString>
95       </Synthetic>
96       <Synthetic Name="Priority"
97                  Condition="(flags &amp; IPC::Message::PRIORITY_MASK) ==
98                                 IPC::Message::PRIORITY_HIGH">
99         <DisplayString>High</DisplayString>
100       </Synthetic>
101       <Synthetic Name="Sync"
102                  Condition="(flags &amp; IPC::Message::SYNC_BIT) != 0">
103         <DisplayString>true</DisplayString>
104       </Synthetic>
105       <Synthetic Name="Sync"
106                  Condition="(flags &amp; IPC::Message::SYNC_BIT) == 0">
107         <DisplayString>false</DisplayString>
108       </Synthetic>
109       <Synthetic Name="Reply"
110                  Condition="(flags &amp; IPC::Message::REPLY_BIT) != 0">
111         <DisplayString>true</DisplayString>
112       </Synthetic>
113       <Synthetic Name="Reply"
114                  Condition="(flags &amp; IPC::Message::REPLY_BIT) == 0">
115         <DisplayString>false</DisplayString>
116       </Synthetic>
117       <Synthetic Name="ReplyError"
118                  Condition="(flags &amp; IPC::Message::REPLY_ERROR_BIT) != 0">
119         <DisplayString>true</DisplayString>
120       </Synthetic>
121       <Synthetic Name="ReplyError"
122                  Condition="(flags &amp; IPC::Message::REPLY_ERROR_BIT) == 0">
123         <DisplayString>false</DisplayString>
124       </Synthetic>
125       <Synthetic Name="Unblock"
126                  Condition="(flags &amp; IPC::Message::UNBLOCK_BIT) != 0">
127         <DisplayString>true</DisplayString>
128       </Synthetic>
129       <Synthetic Name="Unblock"
130                  Condition="(flags &amp; IPC::Message::UNBLOCK_BIT) == 0">
131         <DisplayString>false</DisplayString>
132       </Synthetic>
133       <Synthetic Name="PumpingMessages"
134                  Condition="(flags &amp; IPC::Message::PUMPING_MSGS_BIT) != 0">
135         <DisplayString>true</DisplayString>
136       </Synthetic>
137       <Synthetic Name="PumpingMessages"
138                  Condition="(flags &amp; IPC::Message::PUMPING_MSGS_BIT) == 0">
139         <DisplayString>false</DisplayString>
140       </Synthetic>
141       <Synthetic Name="HasSentTime"
142                  Condition="(flags &amp; IPC::Message::HAS_SENT_TIME_BIT) != 0">
143         <DisplayString>true</DisplayString>
144       </Synthetic>
145       <Synthetic Name="HasSentTime"
146                  Condition="(flags &amp; IPC::Message::HAS_SENT_TIME_BIT) == 0">
147         <DisplayString>false</DisplayString>
148       </Synthetic>
149     </Expand>
150   </Type>
151   <Type Name="IPC::Message">
152     <DisplayString>{{size = {header_size_+capacity_after_header_}}}</DisplayString>
153     <Expand>
154       <ExpandedItem>*((IPC::Message::Header*)header_),nd</ExpandedItem>
155       <Item Name="Payload">(void*)((char*)header_ + header_size_)</Item>
156     </Expand>
157   </Type>
158   <Type Name="base::TimeDelta">
159     <DisplayString>{delta_}</DisplayString>
160     <Expand>
161       <Synthetic Name="Days">
162         <DisplayString>{(int)(delta_ / {,,base.dll}base::Time::kMicrosecondsPerDay)}</DisplayString>
163       </Synthetic>
164       <Synthetic Name="Hours">
165         <DisplayString>{(int)(delta_ / {,,base.dll}base::Time::kMicrosecondsPerHour)}</DisplayString>
166       </Synthetic>
167       <Synthetic Name="Minutes">
168         <DisplayString>{(int)(delta_ / {,,base.dll}base::Time::kMicrosecondsPerMinute)}</DisplayString>
169       </Synthetic>
170       <Synthetic Name="Seconds">
171         <DisplayString>{(int)(delta_ / {,,base.dll}base::Time::kMicrosecondsPerSecond)}</DisplayString>
172       </Synthetic>
173       <Synthetic Name="Milliseconds">
174         <DisplayString>{(int)(delta_ / {,,base.dll}base::Time::kMicrosecondsPerMillisecond)}</DisplayString>
175       </Synthetic>
176       <Item Name="Microseconds">delta_</Item>
177     </Expand>
178   </Type>
179   <Type Name="GURL">
180     <DisplayString>{spec_}</DisplayString>
181     <Expand>
182       <Item Name="Spec">spec_</Item>
183       <Item Name="IsValid">is_valid_</Item>
184       <Synthetic Name="Scheme">
185         <DisplayString
186             Condition="parsed_.scheme.len==-1">undefined</DisplayString>
187         <DisplayString>spec_._Myres[parsed_.scheme.begin][</DisplayString>
188       </Synthetic>
189       <Synthetic Name="Username">
190         <DisplayString
191             Condition="parsed_.username.len==-1">undefined</DisplayString>
192         <DisplayString>spec_._Myres[parsed_.username.begin][</DisplayString>
193       </Synthetic>
194       <Synthetic Name="Password">
195         <DisplayString
196             Condition="parsed_.password.len==-1">undefined</DisplayString>
197         <DisplayString>spec_._Myres[parsed_.password.begin][</DisplayString>
198       </Synthetic>
199       <Synthetic Name="Host">
200         <DisplayString
201             Condition="parsed_.host.len==-1">undefined</DisplayString>
202         <DisplayString>spec_._Myres[parsed_.host.begin][</DisplayString>
203       </Synthetic>
204       <Synthetic Name="Port">
205         <DisplayString
206             Condition="parsed_.port.len==-1">undefined</DisplayString>
207         <DisplayString>spec_._Myres[parsed_.port.begin][</DisplayString>
208       </Synthetic>
209       <Synthetic Name="Path">
210         <DisplayString
211             Condition="parsed_.path.len==-1">undefined</DisplayString>
212         <DisplayString>spec_._Myres[parsed_.path.begin][</DisplayString>
213       </Synthetic>
214       <Synthetic Name="Query">
215         <DisplayString
216             Condition="parsed_.query.len==-1">undefined</DisplayString>
217         <DisplayString>spec_._Myres[parsed_.query.begin][</DisplayString>
218       </Synthetic>
219       <Synthetic Name="Ref">
220         <DisplayString Condition="parsed_.ref.len==-1">undefined</DisplayString>
221         <DisplayString>spec_._Myres[parsed_.ref.begin][</DisplayString>
222       </Synthetic>
223     </Expand>
224   </Type>
225   <Type Name="base::Value">
226     <DisplayString>{type_}</DisplayString>
227     <Expand>
228       <Item Name="Type">type_</Item>
229     </Expand>
230   </Type>
231   <Type Name="base::FundamentalValue">
232     <DisplayString>Fundamental</DisplayString>
233     <Expand>
234       <ExpandedItem>(base::Value*)this,nd</ExpandedItem>
235       <Item Name="Int">integer_value_</Item>
236       <Item Name="Bool">boolean_value_</Item>
237       <Item Name="Double">double_value_</Item>
238     </Expand>
239   </Type>
240   <Type Name="base::StringValue">
241     <DisplayString>String ({value_})</DisplayString>
242     <Expand>
243       <ExpandedItem>(base::Value*)this,nd</ExpandedItem>
244       <Item Name="Value">value_</Item>
245     </Expand>
246   </Type>
247   <Type Name="base::BinaryValue">
248     <DisplayString>Binary ({size_} byte(s))</DisplayString>
249     <Expand>
250       <ExpandedItem>(base::Value*)this,nd</ExpandedItem>
251       <Item Name="Data">buffer_</Item>
252     </Expand>
253   </Type>
254   <Type Name="base::DictionaryValue">
255     <DisplayString>Dictionary ({dictionary_._Mysize} entries)</DisplayString>
256     <Expand>
257       <ExpandedItem>dictionary_</ExpandedItem>
258     </Expand>
259   </Type>
260   <Type Name="base::ListValue">
261     <DisplayString>List ({list_._Mysize} entries)</DisplayString>
262     <Expand>
263       <ExpandedItem>list_</ExpandedItem>
264     </Expand>
265   </Type>
266 </AutoVisualizer>