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

Side by Side Diff: runtime/observatory/lib/src/elements/vm_connect.html

Issue 839543002: Revert "Build Observatory with runtime" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <link rel="import" href="../../../../packages/polymer/polymer.html">
2 <link rel="import" href="nav_bar.html">
3 <link rel="import" href="observatory_element.html">
4
5 <polymer-element name="vm-connect-target" extends="observatory-element">
6 <template>
7 <style>
8 .delete-button {
9 padding: 4px;
10 background: transparent;
11 border: none !important;
12 }
13 .delete-button:hover {
14 background: #ff0000;
15 }
16 </style>
17 <link rel="stylesheet" href="css/shared.css">
18 <span>
19 <template if="{{ isCurrentTarget }}">
20 <a on-click="{{ connectToVm }}" _href="{{ gotoLink('/vm') }}">{{ target. name }} (Connected)</a>
21 </template>
22 <template if="{{ !isCurrentTarget }}">
23 <a on-click="{{ connectToVm }}" _href="{{ gotoLink('/vm') }}">{{ target. name }}</a>
24 </template>
25 <template if="{{ !isChromeTarget }}">
26 <button class="delete-button" on-click="{{ deleteVm }}">&#10006; Remove< /button>
27 </template>
28 </span>
29 </template>
30 </polymer-element>
31
32 <polymer-element name="vm-connect" extends="observatory-element">
33 <template>
34 <link rel="stylesheet" href="css/shared.css">
35 <style>
36 .textbox {
37 width: 20em;
38 font: 400 16px 'Montserrat', sans-serif;
39 }
40 </style>
41
42 <nav-bar>
43 <top-nav-menu last="{{ true }}"></top-nav-menu>
44 <nav-control></nav-control>
45 </nav-bar>
46
47 <div class="content-centered">
48 <h1>Connect to a Dart VM</h1>
49 <br>
50 <hr>
51 <div class="flex-row">
52 <div class="flex-item-40-percent">
53 <h2><img style="height: 48px" src="img/dart_icon.png">Standalone</h2>
54 <br>
55 <ul>
56 <template repeat="{{ target in app.targets.history }}">
57 <template if="{{ target.standalone }}">
58 <li><vm-connect-target target="{{ target }}"></vm-connect-target ></li>
59 </template>
60 </template>
61 </ul>
62 <hr>
63 <form autocomplete="on">
64 <input class="textbox" placeholder="localhost:8181" type="text" valu e="{{ standaloneVmAddress }}">
65 <input class="button" type="submit" value="Connect" on-click="{{ con nectStandalone }}">
66 </form>
67 <br>
68 <pre class="well">Run Standalone with: '--observe'</pre>
69 <hr>
70 </div>
71
72 <div class="flex-item-20-percent"></div>
73 <div class="flex-item-40-percent">
74 <h2><img style="height: 48px" src="img/chromium_icon.png">Chromium</h2 >
75 <br>
76 <ul>
77 <template repeat="{{ target in chromeTargets }}">
78 <li><vm-connect-target target="{{ target }}"></vm-connect-target>< /li>
79 </template>
80 </ul>
81 <hr>
82 <form autocomplete="on">
83 <input class="textbox" placeholder="localhost:9222" type="text" valu e="{{ chromiumAddress }}">
84 <input class="button" type="submit" value="Get Tabs" on-click="{{ ge tTabs }}">
85 </form>
86 <br>
87 <pre class="well">Run Chromium with:
88 '--remote-debugging-port=9222'</pre>
89 <hr>
90 </div>
91 </div>
92 </div>
93 </template>
94 </polymer-element>
95
96 <script type="application/dart" src="vm_connect.dart"></script>
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_connect.dart ('k') | runtime/observatory/lib/src/elements/vm_ref.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698