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

Unified Diff: server/static/rpcexplorer/rpc-service.html

Issue 1695893004: RPC Explorer (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@rpcepxlorer-deps
Patch Set: 80 chars Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/static/rpcexplorer/rpc-method.html ('k') | server/static/rpcexplorer/rpc-service-list.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/static/rpcexplorer/rpc-service.html
diff --git a/server/static/rpcexplorer/rpc-service.html b/server/static/rpcexplorer/rpc-service.html
new file mode 100644
index 0000000000000000000000000000000000000000..dbd774443854301856ebee258e3f416b6362d7c2
--- /dev/null
+++ b/server/static/rpcexplorer/rpc-service.html
@@ -0,0 +1,54 @@
+<!--
+ Copyright 2016 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+ -->
+
+<link rel="import" href="../bower_components/polymer/polymer.html">
+<link rel="import"
+ href="../bower_components/html5-history-anchor/html5-history-anchor.html">
+
+<link rel="import" href="rpc-descriptor-util.html">
+
+<!-- The `rpc-service` is a service page -->
+<dom-module id="rpc-service">
+ <template>
+ <p>Methods:</p>
+ <ul>
+ <template is="dom-repeat" items="[[serviceDesc.method]]" as="method">
+ <li>
+ <a is="html5-history-anchor" pushstate popstate
+ href="[[method.name]]">[[method.name]]</a>
+ <span class="text-muted comment">
+ [[method.source_code_info.leading_comments]]
+ </span>
+ </li>
+ </template>
+ </ul>
+ </template>
+
+ <script>
+ 'use strict';
+
+ Polymer({
+ is: 'rpc-service',
+
+ properties: {
+ description: Object, // FileDescriptorSet message
+ service: String,
+ serviceDesc: {
+ type: Object, // ServiceDescriptorProto message
+ computed: '_resolveServiceDesc(description, service)'
+ }
+ },
+
+ _resolveServiceDesc: function(desc, service) {
+ var searchResult = rpcExplorer.descUtil.resolve(desc, service);
+ if (!searchResult || searchResult.type != 'service') {
+ return null;
+ }
+ return searchResult.desc;
+ }
+ });
+ </script>
+</dom-module>
« no previous file with comments | « server/static/rpcexplorer/rpc-method.html ('k') | server/static/rpcexplorer/rpc-service-list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698