<?xml version="1.0"?>
<!--
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
-->
<feature>
  <name>actions</name>
  <dependency>globals</dependency>
  <dependency>rpc</dependency>
  <dependency>gadgets.json.ext</dependency>
  <gadget>
    <script src="actions.js"/>
    <script src="taming.js"/>
    <api>
      <exports type="js">gadgets.actions.addAction</exports>
      <exports type="js">gadgets.actions.updateAction</exports>
      <exports type="js">gadgets.actions.removeAction</exports>
      <exports type="js">gadgets.actions.runAction</exports>
      <exports type="js">gadgets.actions.getActionsByPath</exports>
      <exports type="js">gadgets.actions.getActionsByDataType</exports>
      <exports type="js">gadgets.actions.registerShowActionsListener</exports>
      <exports type="js">gadgets.actions.registerHideActionsListener</exports>
      <exports type="js">osapi.container.actions.OptParam.VIEW</exports>
      <exports type="js">osapi.container.actions.OptParam.VIEW_TARGET</exports>
      <exports type="rpc">actions.onActionShow</exports>
      <exports type="rpc">actions.onActionHide</exports>
      <exports type="rpc">actions.runAction</exports>
      <uses type="rpc">actions.registerHideCallback</uses>
      <uses type="rpc">actions.registerShowCallback</uses>
      <uses type="rpc">actions.bindAction</uses>
      <uses type="rpc">actions.get_actions_by_type</uses>
      <uses type="rpc">actions.get_actions_by_path</uses>
      <uses type="rpc">actions.runAction</uses>
    </api>
  </gadget>
  <container>
    <script src="constants.js"/>
    <script src="actions_container.js"/>
    <api>
      <exports type="rpc">actions.registerHideCallback</exports>
      <exports type="rpc">actions.registerShowCallback</exports>
      <exports type="rpc">actions.bindAction</exports>
      <exports type="rpc">actions.get_actions_by_type</exports>
      <exports type="rpc">actions.get_actions_by_path</exports>
      <exports type="rpc">actions.removeAction</exports>
      <exports type="rpc">actions.runAction</exports>
      <uses type="rpc">actions.onActionShow</uses>
      <uses type="rpc">actions.onActionHide</uses>
      <uses type="rpc">actions.runAction</uses>
    </api>
  </container>
</feature>