Chromium Code Reviews| Index: public/platform/modules/presentation/WebPresentationSessionCreateCallback.h |
| diff --git a/public/platform/modules/presentation/WebPresentationSessionCreateCallback.h b/public/platform/modules/presentation/WebPresentationSessionCreateCallback.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ef5d65cc33a16da4eda6b860fea3b0e557729466 |
| --- /dev/null |
| +++ b/public/platform/modules/presentation/WebPresentationSessionCreateCallback.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebPresentationSessionCreateCallback_h |
| +#define WebPresentationSessionCreateCallback_h |
| + |
| +namespace blink { |
| + |
| +class WebPresentationSessionClient; |
| +class WebString; |
| + |
| +// A callback passed to the embedder when the frame calls start/joinSession(). |
| +// 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
|
| +// WebPresentationSession interface. When creating the session fails, returns |
| +// 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
|
| +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
|
| +public: |
| + virtual ~WebPresentationSessionCreateCallback() { } |
| + |
| + virtual void onSuccess(WebPresentationSessionClient*) = 0; |
| + 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.
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebPresentationSessionCreateCallback_h |