| OLD | NEW |
| (Empty) | |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
| 2 <link rel="import" href="class_ref.html"> |
| 3 <link rel="import" href="field_ref.html"> |
| 4 <link rel="import" href="function_ref.html"> |
| 5 <link rel="import" href="instance_ref.html"> |
| 6 <link rel="import" href="observatory_element.html"> |
| 7 <link rel="import" href="nav_bar.html"> |
| 8 <link rel="import" href="object_common.html"> |
| 9 <link rel="import" href="context_ref.html"> |
| 10 |
| 11 <polymer-element name="context-view" extends="observatory-element"> |
| 12 <template> |
| 13 <link rel="stylesheet" href="css/shared.css"> |
| 14 <nav-bar> |
| 15 <top-nav-menu></top-nav-menu> |
| 16 <isolate-nav-menu isolate="{{ context.isolate }}"></isolate-nav-menu> |
| 17 <!-- TODO(turnidge): Add library nav menu here. --> |
| 18 <class-nav-menu cls="{{ context.clazz }}"></class-nav-menu> |
| 19 <nav-menu link="." anchor="instance" last="{{ true }}"></nav-menu> |
| 20 <nav-refresh callback="{{ refresh }}"></nav-refresh> |
| 21 <nav-control></nav-control> |
| 22 </nav-bar> |
| 23 |
| 24 <template if="{{ !context.isError }}"> |
| 25 <div class="content"> |
| 26 <h1>instance of Context</h1> |
| 27 |
| 28 <object-common object="{{ context }}"></object-common> |
| 29 |
| 30 <div class="memberList"> |
| 31 <div class="memberItem"> </div> |
| 32 |
| 33 <div class="memberItem"> |
| 34 <div class="memberName">parent context</div> |
| 35 <div class="memberValue"> |
| 36 <any-service-ref ref="{{ context.parentContext }}"></any-service-r
ef> |
| 37 </div> |
| 38 </div> |
| 39 </div> |
| 40 </div> |
| 41 |
| 42 <hr> |
| 43 |
| 44 <div class="content"> |
| 45 <template if="{{ context.variables.isNotEmpty }}"> |
| 46 variables ({{ context.variables.length }}) |
| 47 <curly-block expand="{{ context.variables.length <= 8 }}"> |
| 48 <div class="memberList"> |
| 49 <template repeat="{{ variable in context.variables }}"> |
| 50 <div class="memberItem"> |
| 51 <div class="memberName">[{{ variable['index']}}]</div> |
| 52 <div class="memberValue"> |
| 53 <any-service-ref ref="{{ variable['value'] }}"></any-service
-ref> |
| 54 </div> |
| 55 </div> |
| 56 </template> |
| 57 </div> |
| 58 </curly-block><br><br> |
| 59 </template> |
| 60 </div> |
| 61 |
| 62 <br><br><br><br> |
| 63 <br><br><br><br> |
| 64 |
| 65 </template> |
| 66 </template> |
| 67 </polymer-element> |
| 68 |
| 69 <script type="application/dart" src="context_view.dart"></script> |
| OLD | NEW |