OLD | NEW |
---|---|
(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 | |
OLD | NEW |