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

Side by Side Diff: content/common/presentation/presentation_service.mojom

Issue 1033733007: [PresentationAPI] renamed GetScreenAvailability to ListenForScreenAvailability for consistency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated the test Created 5 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 module presentation; 5 module presentation;
6 6
7 struct PresentationSessionInfo { 7 struct PresentationSessionInfo {
8 string url; 8 string url;
9 string id; 9 string id;
10 }; 10 };
(...skipping 20 matching lines...) Expand all
31 // presentation ID. 31 // presentation ID.
32 SetDefaultPresentationURL( 32 SetDefaultPresentationURL(
33 string default_presentation_url, 33 string default_presentation_url,
34 string? default_presentation_id); 34 string? default_presentation_id);
35 35
36 // Returns the last screen availability state if it’s changed since the last 36 // Returns the last screen availability state if it’s changed since the last
37 // time the method was called. The client has to call this method again when 37 // time the method was called. The client has to call this method again when
38 // handling the result (provided via Mojo callback) to get the next update 38 // handling the result (provided via Mojo callback) to get the next update
39 // about the availability status. 39 // about the availability status.
40 // May start discovery of the presentation screens. The implementation might 40 // May start discovery of the presentation screens. The implementation might
41 // stop discovery once there are no active calls to GetScreenAvailability. 41 // stop discovery once there are no active calls to
42 // |presentation_url| can be specified to help the implementation to filter 42 // ListenForScreenAvailability. |presentation_url| can be specified to help
43 // out incompatible screens. 43 // the implementation to filter out incompatible screens.
44 GetScreenAvailability(string? presentation_url) => 44 ListenForScreenAvailability(string? presentation_url) =>
45 (string? presentation_url, bool available); 45 (string? presentation_url, bool available);
46 46
47 // Called when the frame no longer listens to the 47 // Called when the frame no longer listens to the |availablechange| event.
48 // |availablechange| event. 48 RemoveScreenAvailabilityListener(string? presentation_url);
49 OnScreenAvailabilityListenerRemoved(string? presentation_url);
50 49
51 // Called when the renderer is ready to receive the browser initiated 50 // Called when the renderer is ready to receive the browser initiated
52 // session. If the default session is started by the embedder before this 51 // session. If the default session is started by the embedder before this
53 // call, the embedder may queue it and run the callback when the call is 52 // call, the embedder may queue it and run the callback when the call is
54 // performed. 53 // performed.
55 ListenForDefaultSessionStart() 54 ListenForDefaultSessionStart()
56 => (PresentationSessionInfo defaultSessionInfo); 55 => (PresentationSessionInfo defaultSessionInfo);
57 56
58 // Called when startSession() is called by the frame. The result callback 57 // Called when startSession() is called by the frame. The result callback
59 // will return a non-null and valid PresentationSessionInfo if starting the 58 // will return a non-null and valid PresentationSessionInfo if starting the
(...skipping 18 matching lines...) Expand all
78 // Called when closeSession() is called by the frame. 77 // Called when closeSession() is called by the frame.
79 CloseSession(string presentation_url, string presentation_id); 78 CloseSession(string presentation_url, string presentation_id);
80 79
81 // Called when the frame is ready to process the next state change. Returns 80 // Called when the frame is ready to process the next state change. Returns
82 // the last session state if it’s changed since the last time the callback 81 // the last session state if it’s changed since the last time the callback
83 // was called. Might cause the event fired with the initial state change. 82 // was called. Might cause the event fired with the initial state change.
84 ListenForSessionStateChange() 83 ListenForSessionStateChange()
85 => (PresentationSessionInfo sessionInfo, 84 => (PresentationSessionInfo sessionInfo,
86 PresentationSessionState newState); 85 PresentationSessionState newState);
87 }; 86 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698