Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Tools / GardeningServer / model / ct-builder-repository.html
1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6
7 <script>
8
9 var CTBuilderRepository;
10
11 (function() {
12
13   var BLINK_REV_URI = 'https://src.chromium.org/viewvc/blink/?pathrev=<revision>';
14   var CHROMIUM_REV_URI = 'https://chromium.googlesource.com/chromium/' +
15     'src/+/<revision>';
16
17   var REVISION_URIS = {
18     'chromium': CHROMIUM_REV_URI,
19     'blink': BLINK_REV_URI,
20     'v8': '', // FIXME: Add v8 and nacl revision uris.
21     'nacl': ''
22   };
23
24   var BUILDER_SORT_ORDER = {
25     'chromium': 1,
26     'blink': 2,
27     'v8': 3,
28     'nacl': 4
29   };
30
31   CTBuilderRepository = function(name, revision) {
32     this.name = name;
33     this.revision = revision || '';
34     this.uri = REVISION_URIS[this.name].replace('<revision>', this.revision);
35   };
36
37   CTBuilderRepository.sortFunction = function(a, b) {
38       return BUILDER_SORT_ORDER[a.name] > BUILDER_SORT_ORDER[b.name];
39   };
40
41 })();
42
43 </script>