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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/platform/modules/presentation/WebPresentationSessionClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« 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