| OLD | NEW |
| (Empty) | |
| 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ |
| 5 #define CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ |
| 6 |
| 7 class Profile; |
| 8 |
| 9 namespace contacts { |
| 10 class Contact; |
| 11 } |
| 12 |
| 13 namespace extensions { |
| 14 |
| 15 // Implementation of chrome.rtcPrivate API. |
| 16 class RtcPrivateApi { |
| 17 public: |
| 18 // Contact launch intent action. |
| 19 enum LaunchAction { |
| 20 LAUNCH_ACTIVATE, |
| 21 LAUNCH_CHAT, |
| 22 LAUNCH_VIDEO, |
| 23 LAUNCH_VOICE, |
| 24 }; |
| 25 |
| 26 // Raises chrome.rtcPrivate.onLaunch event which is used to launch the default |
| 27 // RTC application in ChromeOS. |action| defines the context of the launch |
| 28 // event. Optional |contact| information is passed as event payload if launch |
| 29 // event is related to a particilar contact. |
| 30 static void RaiseLaunchEvent(Profile* profile, |
| 31 LaunchAction action, |
| 32 contacts::Contact* contact); |
| 33 }; |
| 34 |
| 35 } // namespace extensions |
| 36 |
| 37 #endif // CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ |
| OLD | NEW |