| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // The <code>chrome.hangoutsPrivate</code> API is used by Google Hangouts to | 5 // The <code>chrome.hangoutsPrivate</code> API is used by Google Hangouts to |
| 6 // wait on a request from Chrome to start a hangout. | 6 // wait on a request from Chrome to start a hangout. |
| 7 // TODO(rkc): This API is temporary. We are working on plans which include | 7 // TODO(rkc): This API is temporary. We are working on plans which include |
| 8 // replacing this with a scheme based solution which might be implemented | 8 // replacing this with a scheme based solution which might be implemented |
| 9 // using registerProtocolHandler, but we are still finishing that design. | 9 // using registerProtocolHandler, but we are still finishing that design. |
| 10 // See crbug.com/306672 | 10 // See crbug.com/306672 |
| 11 [use_movable_types=true] namespace hangoutsPrivate { | 11 namespace hangoutsPrivate { |
| 12 | 12 |
| 13 enum HangoutType {chat, video, audio}; | 13 enum HangoutType {chat, video, audio}; |
| 14 | 14 |
| 15 dictionary User { | 15 dictionary User { |
| 16 // GAIA obfuscated id of the user. | 16 // GAIA obfuscated id of the user. |
| 17 DOMString id; | 17 DOMString id; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 dictionary HangoutRequest { | 20 dictionary HangoutRequest { |
| 21 // Email of the user sending this request. This has to match the logged in | 21 // Email of the user sending this request. This has to match the logged in |
| 22 // user otherwise the hangout will not be opened. | 22 // user otherwise the hangout will not be opened. |
| 23 DOMString from; | 23 DOMString from; |
| 24 | 24 |
| 25 // A list of users with whom to start this hangout with. | 25 // A list of users with whom to start this hangout with. |
| 26 User[] to; | 26 User[] to; |
| 27 | 27 |
| 28 // Type of hangout request. | 28 // Type of hangout request. |
| 29 HangoutType type; | 29 HangoutType type; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 interface Events { | 32 interface Events { |
| 33 // Fired when Chrome wants to request a new hangout be opened up with a | 33 // Fired when Chrome wants to request a new hangout be opened up with a |
| 34 // user (or set of users). | 34 // user (or set of users). |
| 35 static void onHangoutRequested(HangoutRequest request); | 35 static void onHangoutRequested(HangoutRequest request); |
| 36 }; | 36 }; |
| 37 }; | 37 }; |
| OLD | NEW |