Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <head> | 1 <head> |
| 2 <link rel="import" href="error_view.html"> | 2 <link rel="import" href="error_view.html"> |
| 3 <link rel="import" href="field_ref.html"> | 3 <link rel="import" href="field_ref.html"> |
| 4 <link rel="import" href="function_ref.html"> | 4 <link rel="import" href="function_ref.html"> |
| 5 <link rel="import" href="instance_ref.html"> | 5 <link rel="import" href="instance_ref.html"> |
| 6 <link rel="import" href="library_ref.html"> | 6 <link rel="import" href="library_ref.html"> |
| 7 <link rel="import" href="nav_bar.html"> | 7 <link rel="import" href="nav_bar.html"> |
| 8 <link rel="import" href="isolate_element.html"> | 8 <link rel="import" href="observatory_element.html"> |
| 9 </head> | 9 </head> |
| 10 <polymer-element name="class-view" extends="isolate-element"> | 10 <polymer-element name="class-view" extends="observatory-element"> |
| 11 <template> | 11 <template> |
| 12 <nav-bar> | 12 <nav-bar> |
| 13 <top-nav-menu></top-nav-menu> | 13 <top-nav-menu></top-nav-menu> |
| 14 <isolate-nav-menu isolate="{{ isolate }}"></isolate-nav-menu> | 14 <isolate-nav-menu isolate="{{ cls.isolate }}"></isolate-nav-menu> |
| 15 <library-nav-menu isolate="{{ isolate }}" library="{{ cls['library'] }}">< /library-nav-menu> | 15 <library-nav-menu library="{{ cls['library'] }}"></library-nav-menu> |
| 16 <class-nav-menu isolate="{{ isolate }}" cls="{{ cls }}" last="{{ true }}"> </class-nav-menu> | 16 <class-nav-menu cls="{{ cls }}" last="{{ true }}"></class-nav-menu> |
| 17 <nav-refresh callback="{{ refresh }}"></nav-refresh> | 17 <nav-refresh callback="{{ refresh }}"></nav-refresh> |
| 18 </nav-bar> | 18 </nav-bar> |
| 19 | 19 |
| 20 <div class="row"> | 20 <div class="row"> |
| 21 <div class="col-md-8 col-md-offset-2"> | 21 <div class="col-md-8 col-md-offset-2"> |
| 22 <div class="panel panel-warning"> | 22 <div class="panel panel-warning"> |
| 23 <div class="panel-heading"> | 23 <div class="panel-heading"> |
| 24 class <strong>{{ cls['user_name'] }}</strong> | 24 class <strong>{{ cls.name }}</strong> |
| 25 <template if="{{ cls['super']['type'] != 'Null' }}"> | 25 <template if="{{ cls['super']['type'] != 'Null' }}"> |
| 26 extends | 26 extends |
| 27 <class-ref app="{{ app }}" ref="{{ cls['super'] }}"></class-ref> | 27 <class-ref ref="{{ cls['super'] }}"></class-ref> |
| 28 </template> | 28 </template> |
| 29 <library-ref app="{{ app }}" ref="{{ cls['library'] }}"></library-ref> | 29 <p></p> |
|
turnidge
2014/03/10 21:03:28
It's good to see the "app" arg go away.
| |
| 30 <library-ref ref="{{ cls['library'] }}"></library-ref> | |
| 30 </div> | 31 </div> |
| 31 <div class="panel-body"> | 32 <div class="panel-body"> |
| 32 <table class="table table-hover"> | 33 <table class="table table-hover"> |
| 33 <tbody> | 34 <tbody> |
| 34 <tr> | 35 <tr> |
| 35 <td>Abstract</td><td>{{ cls['abstract'] }}</td> | 36 <td>Abstract</td><td>{{ cls['abstract'] }}</td> |
| 36 </tr> | 37 </tr> |
| 37 <tr> | 38 <tr> |
| 38 <td>Const</td><td>{{ cls['const'] }}</td> | 39 <td>Const</td><td>{{ cls['const'] }}</td> |
| 39 </tr> | 40 </tr> |
| 40 <tr> | 41 <tr> |
| 41 <td>Finalized</td><td>{{ cls['const'] }}</td> | 42 <td>Finalized</td><td>{{ cls['const'] }}</td> |
| 42 </tr> | 43 </tr> |
| 43 <tr> | 44 <tr> |
| 44 <td>Implemented</td><td>{{ cls['implemented'] }}</td> | 45 <td>Implemented</td><td>{{ cls['implemented'] }}</td> |
| 45 </tr> | 46 </tr> |
| 46 <tr> | 47 <tr> |
| 47 <td>Patch</td><td>{{ cls['patch'] }}</td> | 48 <td>Patch</td><td>{{ cls['patch'] }}</td> |
| 48 </tr> | 49 </tr> |
| 49 <tr> | 50 <tr> |
| 50 <td>VM Name</td><td>{{ cls['name'] }}</td> | 51 <td>VM Name</td><td>{{ cls['name'] }}</td> |
| 51 </tr> | 52 </tr> |
| 52 </tbody> | 53 </tbody> |
| 53 </table> | 54 </table> |
| 54 <template if="{{ cls['error'] == null }}"> | 55 <template if="{{ cls['error'] == null }}"> |
| 55 <blockquote><strong>Fields</strong></blockquote> | 56 <blockquote><strong>Fields</strong></blockquote> |
| 56 <table class="table table-hover"> | 57 <table class="table table-hover"> |
| 57 <tbody> | 58 <tbody> |
| 58 <tr template repeat="{{ field in cls['fields'] }}"> | 59 <tr template repeat="{{ field in cls['fields'] }}"> |
| 59 <td><field-ref app="{{ app }}" ref="{{ field }}"></field-ref>< /td> | 60 <td><field-ref ref="{{ field }}"></field-ref></td> |
| 60 <td><instance-ref app="{{ app }}" ref="{{ field['value'] }}">< /instance-ref></td> | 61 <td><instance-ref ref="{{ field['value'] }}"></instance-ref></ td> |
| 61 </tr> | 62 </tr> |
| 62 </tbody> | 63 </tbody> |
| 63 </table> | 64 </table> |
| 64 <blockquote><strong>Functions</strong></blockquote> | 65 <blockquote><strong>Functions</strong></blockquote> |
| 65 <table class="table table-hover"> | 66 <table class="table table-hover"> |
| 66 <thead> | 67 <thead> |
| 67 <tr> | 68 <tr> |
| 68 <th>User Name</th> | 69 <th>User Name</th> |
| 69 <th>VM Name</th> | 70 <th>VM Name</th> |
| 70 </tr> | 71 </tr> |
| 71 </thead> | 72 </thead> |
| 72 <tbody> | 73 <tbody> |
| 73 <tr template repeat="{{ function in cls['functions'] }}"> | 74 <tr template repeat="{{ function in cls['functions'] }}"> |
| 74 <td><function-ref app="{{ app }}" ref="{{ function }}"></funct ion-ref></td> | 75 <td><function-ref ref="{{ function }}"></function-ref></td> |
| 75 <td><function-ref app="{{ app }}" ref="{{ function }}" interna l></function-ref></td> | 76 <td><function-ref ref="{{ function }}" internal></function-ref ></td> |
| 76 </tr> | 77 </tr> |
| 77 </tbody> | 78 </tbody> |
| 78 </table> | 79 </table> |
| 79 </template> | 80 </template> |
| 80 <template if="{{ cls['error'] != null }}"> | 81 <template if="{{ cls['error'] != null }}"> |
| 81 <error-view error_obj="{{ cls['error'] }}"></error-view> | 82 <error-view error_obj="{{ cls['error'] }}"></error-view> |
| 82 </template> | 83 </template> |
| 83 </div> | 84 </div> |
| 84 </div> | 85 </div> |
| 85 </div> | 86 </div> |
| 86 </div> | 87 </div> |
| 87 </template> | 88 </template> |
| 88 <script type="application/dart" src="class_view.dart"></script> | 89 <script type="application/dart" src="class_view.dart"></script> |
| 89 </polymer-element> | 90 </polymer-element> |
| OLD | NEW |