Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Side by Side Diff: ppapi/api/private/ppb_talk_private.idl

Issue 16271005: Implement pepper interface and plumbing for HRD's UI on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ppapi/c/private/ppb_talk_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 5
6 /** 6 /**
7 * This file contains the <code>PPB_Talk</code> interface. 7 * This file contains the <code>PPB_Talk_Private</code> interface.
8 */ 8 */
9 label Chrome { 9 label Chrome {
10 M19 = 1.0 10 M19 = 1.0,
11 M29 = 2.0
11 }; 12 };
12 13
13 /** 14 /**
15 * Talk event types reported by the browser.
16 */
17 [assert_size(4)]
18 enum PP_TalkEvent {
19 /**
20 * Indicates that the user took action to terminate the remoting session.
21 */
22 PP_TALKEVENT_TERMINATE = 0,
23 /**
24 * Indicates that an error occurred (e.g. failed to show the UI).
25 */
26 PP_TALKEVENT_ERROR = 1
27 };
28
29 /**
30 * Callback for Talk events.
31 */
32 typedef void PP_TalkEventCallback([inout] mem_t user_data,
33 [in] PP_TalkEvent event);
34
35 /**
14 * Extra interface for Talk. 36 * Extra interface for Talk.
15 */ 37 */
16 interface PPB_Talk_Private { 38 interface PPB_Talk_Private {
17 /** 39 /**
18 * Creates a Talk_Private resource. 40 * Creates a Talk_Private resource.
19 */ 41 */
42 [version=1.0]
20 PP_Resource Create(PP_Instance instance); 43 PP_Resource Create(PP_Instance instance);
21 44
22 /** 45 /**
23 * Displays security UI. 46 * Displays confirmation dialog for screencasting.
24 * 47 *
25 * The callback will be issued with 1 as the result if the user gave 48 * The callback will be issued with 1 as the result if the user gave
26 * permission, or 0 if the user denied. 49 * permission, or 0 if the user denied.
27 * 50 *
28 * You can only have one call pending. It will return PP_OK_COMPLETIONPENDING 51 * You can only have one call pending. It will return PP_OK_COMPLETIONPENDING
29 * if the request is queued, or PP_ERROR_INPROGRESS if there is already a 52 * if the request is queued, or PP_ERROR_INPROGRESS if there is already a
30 * request in progress. 53 * request in progress.
31 */ 54 */
55 [version=1.0]
32 int32_t GetPermission( 56 int32_t GetPermission(
33 [in] PP_Resource talk_resource, 57 [in] PP_Resource talk_resource,
34 [in] PP_CompletionCallback callback); 58 [in] PP_CompletionCallback callback);
59
60 /**
61 * Displays confirmation dialog for remoting.
62 * Same parameters and behaviors as <code>GetPermission()</code>.
Josh Horwich 2013/05/31 22:22:16 Just for clarification, is the ability to have onl
dcaiafa 2013/06/04 00:11:44 Yes, only one pending permission request is allowe
63 */
64 [version=2.0]
65 int32_t GetRemotingPermission(
66 [in] PP_Resource talk_resource,
67 [in] PP_CompletionCallback callback);
68
69 /**
70 * Displays confirmation dialog for remoting.
71 * Same parameters and behaviors as <code>GetPermission()</code>.
72 */
73 [version=2.0]
74 int32_t GetRemotingContinuePermission(
75 [in] PP_Resource talk_resource,
76 [in] PP_CompletionCallback callback);
Josh Horwich 2013/05/31 22:22:16 Another idea would be to combine GetRemotingContin
dcaiafa 2013/06/04 00:11:44 Excellent suggestion. Done. On 2013/05/31 22:22:1
77
78 /**
79 * Shows the remoting-in-progress UI and registers a callback for events.
80 * This function executes synchronously. Returns PP_OK if there were no
81 * errors.
Josh Horwich 2013/05/31 22:22:16 Any restrictions on what thread can call this func
dcaiafa 2013/06/04 00:11:44 Done.
82 */
83 [version=2.0]
84 int32_t StartRemoting(
85 [in] PP_Resource talk_resource,
86 [in] PP_TalkEventCallback event_callback,
87 [inout] mem_t user_data);
88
89 /**
90 * Hides the remoting-in-progress UI and unregisters the event callback.
Josh Horwich 2013/05/31 22:22:16 Is this synchronous like StartRemoting? Is there a
dcaiafa 2013/06/04 00:11:44 Done.
91 */
92 [version=2.0]
93 void StopRemoting(
Josh Horwich 2013/05/31 22:22:16 Should this return int32_t so we can error in biza
dcaiafa 2013/06/04 00:11:44 I'd rather not. There is not much to do if StopRem
94 [in] PP_Resource talk_resource);
35 }; 95 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/private/ppb_talk_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698