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

Unified Diff: public/platform/modules/presentation/WebPresentationError.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 int-receiving ctor 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 | « no previous file | public/platform/modules/presentation/WebPresentationSessionClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/presentation/WebPresentationError.h
diff --git a/public/platform/modules/push_messaging/WebPushError.h b/public/platform/modules/presentation/WebPresentationError.h
similarity index 51%
copy from public/platform/modules/push_messaging/WebPushError.h
copy to public/platform/modules/presentation/WebPresentationError.h
index 912e30bedd4eea1cd8a561717ae1c15b98627586..7a7c7a6ffca7d24e4cbae8f74e13fc610edc94ea 100644
--- a/public/platform/modules/push_messaging/WebPushError.h
+++ b/public/platform/modules/presentation/WebPresentationError.h
@@ -1,24 +1,24 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// 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 WebPushError_h
-#define WebPushError_h
+#ifndef WebPresentationError_h
+#define WebPresentationError_h
#include "public/platform/WebString.h"
namespace blink {
-struct WebPushError {
+struct WebPresentationError {
enum ErrorType {
- ErrorTypeAbort = 0,
- ErrorTypeNetwork,
- ErrorTypeNotFound,
+ ErrorTypeNoAvailableScreens = 0,
+ ErrorTypeSessionRequestCancelled,
+ ErrorTypeNoPresentationFound,
ErrorTypeUnknown,
ErrorTypeLast = ErrorTypeUnknown
};
- WebPushError(ErrorType errorType, const WebString& message)
+ WebPresentationError(ErrorType errorType, const WebString& message)
: errorType(errorType)
, message(message)
{
@@ -30,4 +30,4 @@ struct WebPushError {
} // namespace blink
-#endif // WebPushError_h
+#endif // WebPresentationError_h
« no previous file with comments | « no previous file | public/platform/modules/presentation/WebPresentationSessionClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698