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

Unified Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h

Issue 2730123003: [Presentation API] Add layout test for connection.close() and fix test failures (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h
diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h
index 69460de80b6baf0124042483b213550eb067ed7a..65f8cab88735cfb9cb28acbceaa0b5eb59c727d7 100644
--- a/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h
+++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h
@@ -11,6 +11,7 @@
namespace blink {
+enum class WebPresentationConnectionCloseReason;
enum class WebPresentationConnectionState;
class WebPresentationConnectionProxy;
class WebString;
@@ -30,6 +31,10 @@ class WebPresentationConnection {
// Notifies the connection about its state change.
virtual void didChangeState(WebPresentationConnectionState) = 0;
+
+ // Notifies the connection about its state change to 'closed'.
+ virtual void didClose(WebPresentationConnectionCloseReason,
mark a. foltz 2017/03/06 18:57:55 Can you remove the message argument since it's alw
zhaobin 2017/03/06 19:52:23 Done.
+ const WebString& message) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698