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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerWindowClient.h

Issue 897493002: [ServiceWorker] Update .focus() to return a WindowClient instead of bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_focus_reject
Patch Set: Created 5 years, 11 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: Source/modules/serviceworkers/ServiceWorkerWindowClient.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerWindowClient.h b/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
index 57feb92377f080227c562287cef10d3b97c73085..332589193e27f7155692177cee794f66fe97f8c6 100644
--- a/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
+++ b/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
@@ -12,11 +12,18 @@
namespace blink {
+class ScriptPromiseResolver;
class ScriptState;
class ServiceWorkerWindowClient final : public ServiceWorkerClient {
DEFINE_WRAPPERTYPEINFO();
public:
+ // To be used by CallbackPromiseAdapter.
+ typedef WebServiceWorkerClientInfo WebType;
+
+ static ServiceWorkerWindowClient* take(ScriptPromiseResolver*, WebType*);
+ static void dispose(WebType*);
+
static ServiceWorkerWindowClient* create(const WebServiceWorkerClientInfo&);
~ServiceWorkerWindowClient() override;

Powered by Google App Engine
This is Rietveld 408576698