blob: 073147dc5d9472ac6daa8c8abf8775cdd2f32fa3 [file] [log] [blame]
Steven Burrows9edc7e02016-08-29 11:52:07 +01001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 ONOS GUI -- Topology Select Module.
19 */
20
21(function () {
22 'use strict';
23
24 // internal state
Steven Burrowsdfa52b02016-09-02 13:50:43 +010025 var consumeClick;
Steven Burrows9edc7e02016-08-29 11:52:07 +010026
Steven Burrowsdfa52b02016-09-02 13:50:43 +010027 function selectObject(obj) {}
Steven Burrows9edc7e02016-08-29 11:52:07 +010028
29 function clickConsumed(x) {
30 var cc = consumeClick;
Steven Burrowsdfa52b02016-09-02 13:50:43 +010031 consumeClick = Boolean(x);
Steven Burrows9edc7e02016-08-29 11:52:07 +010032 return cc;
33 }
34
35 angular.module('ovTopo2')
Steven Burrowsdfa52b02016-09-02 13:50:43 +010036 .factory('Topo2SelectService', [
Steven Burrows9edc7e02016-08-29 11:52:07 +010037 function () {
38
39 return {
40 selectObject: selectObject,
41 clickConsumed: clickConsumed
42 };
43 }
44 ]);
45
46})();