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

Unified Diff: Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h

Issue 285403002: Push API: define push event on Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Avoid modifying modules/serviceworkers/. Created 6 years, 7 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/push_messaging/ServiceWorkerGlobalScopePush.h
diff --git a/Source/modules/device_orientation/DOMWindowDeviceMotion.h b/Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h
similarity index 55%
copy from Source/modules/device_orientation/DOMWindowDeviceMotion.h
copy to Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h
index e9b96f5bb9c11643437f5f333814a0658b0d8172..4c92682f076c75a84643c1a8470b539e1681f33e 100644
--- a/Source/modules/device_orientation/DOMWindowDeviceMotion.h
+++ b/Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h
@@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef DOMWindowDeviceMotion_h
-#define DOMWindowDeviceMotion_h
+#ifndef ServiceWorkerGlobalScopePush_h
+#define ServiceWorkerGlobalScopePush_h
#include "core/events/EventTarget.h"
namespace WebCore {
-class DOMWindowDeviceMotion {
+class ServiceWorkerGlobalScopePush {
public:
- DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(devicemotion);
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(push);
};
} // namespace WebCore
-#endif // DOMWindowDeviceMotion_h
+#endif // ServiceWorkerGlobalScopePush_h

Powered by Google App Engine
This is Rietveld 408576698