Home | History | Annotate | Download | only in api
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // rtcPrivate.
      6 namespace rtcPrivate {
      7   // Launch action type.
      8   enum ActionType {chat, voice, video};
      9 
     10   dictionary LaunchIntent {
     11     // Launch action.
     12     ActionType action;
     13 
     14     // Launch data payload.
     15     object data;
     16 
     17     // MIME type.
     18     DOMString type;
     19   };
     20 
     21   dictionary LaunchData {
     22     // Launch intent.
     23     LaunchIntent intent;
     24   };
     25 
     26   interface Events {
     27     // Fired when an RTC launch event is raised.
     28     static void onLaunch(optional LaunchData data);
     29   };
     30 };
     31