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

Side by Side Diff: public/platform/modules/presentation/WebPresentationSessionCreateCallback.h

Issue 935103002: [PresentationAPI] Added/changed public/platform interfaces for start/joinSession (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed the changed existing interface Created 5 years, 10 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 | « public/platform/modules/presentation/WebPresentationSessionClient.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WebPresentationSessionCreateCallback_h
6 #define WebPresentationSessionCreateCallback_h
7
8 namespace blink {
9
10 class WebPresentationSessionClient;
11 class WebString;
12
13 // A callback passed to the embedder when the frame calls start/joinSession().
14 // When creating the session succeeds, returns the implementation of the
mark a. foltz 2015/02/18 17:55:29 ..., onSuccess() is invoked with the implementatio
whywhat 2015/02/19 14:23:24 Interface removed, but I'll apply this to the impl
15 // WebPresentationSession interface. When creating the session fails, returns
16 // an appropriate error code.
mark a. foltz 2015/02/18 17:55:29 ..., onError() is invoked with an appropriate erro
whywhat 2015/02/19 14:23:24 Interface removed, but I'll apply this to the impl
17 class WebPresentationSessionCreateCallback {
mlamouri (slow - plz ping) 2015/02/18 21:29:16 Could you inherit from WebCallbacks? Also, that "W
whywhat 2015/02/19 14:23:24 If I use WebCallbacks, I don't really need a separ
18 public:
19 virtual ~WebPresentationSessionCreateCallback() { }
20
21 virtual void onSuccess(WebPresentationSessionClient*) = 0;
22 virtual void onError(const WebString& message) = 0;
mlamouri (slow - plz ping) 2015/02/18 21:08:55 Instead of passing a simple string, could you pass
whywhat 2015/02/19 14:23:24 Added WebPresentationError.
23 };
24
25 } // namespace blink
26
27 #endif // WebPresentationSessionCreateCallback_h
OLDNEW
« no previous file with comments | « public/platform/modules/presentation/WebPresentationSessionClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698