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

Unified Diff: Source/modules/presentation/AvailableChangeEvent.h

Issue 1222623003: Presentation API: implement .getAvalability() (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix tests Created 5 years, 5 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 | « Source/modules/modules.gypi ('k') | Source/modules/presentation/AvailableChangeEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/presentation/AvailableChangeEvent.h
diff --git a/Source/modules/presentation/AvailableChangeEvent.h b/Source/modules/presentation/AvailableChangeEvent.h
deleted file mode 100644
index bb57b942605b501310c14e245ef127beac6bcb72..0000000000000000000000000000000000000000
--- a/Source/modules/presentation/AvailableChangeEvent.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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 AvailableChangeEvent_h
-#define AvailableChangeEvent_h
-
-#include "modules/EventModules.h"
-#include "modules/presentation/AvailableChangeEventInit.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-// AvailableChangeEvent object definition corresponding to the event IDL from the Presentation API,
-// see https://w3c.github.io/presentation-api/#availablechangeevent for details.
-class AvailableChangeEvent final : public Event {
- DEFINE_WRAPPERTYPEINFO();
-public:
- virtual ~AvailableChangeEvent();
-
- static PassRefPtrWillBeRawPtr<AvailableChangeEvent> create()
- {
- return adoptRefWillBeNoop(new AvailableChangeEvent);
- }
- static PassRefPtrWillBeRawPtr<AvailableChangeEvent> create(const AtomicString& eventType, bool available)
- {
- return adoptRefWillBeNoop(new AvailableChangeEvent(eventType, available));
- }
- static PassRefPtrWillBeRawPtr<AvailableChangeEvent> create(const AtomicString& eventType, const AvailableChangeEventInit& initializer)
- {
- return adoptRefWillBeNoop(new AvailableChangeEvent(eventType, initializer));
- }
-
- bool available() const { return m_available; }
-
- virtual const AtomicString& interfaceName() const override;
-
-private:
- AvailableChangeEvent();
- AvailableChangeEvent(const AtomicString& eventType, bool available);
- AvailableChangeEvent(const AtomicString& eventType, const AvailableChangeEventInit& initializer);
-
- bool m_available;
-};
-
-DEFINE_TYPE_CASTS(AvailableChangeEvent, Event, event, event->interfaceName() == EventNames::AvailableChangeEvent, event.interfaceName() == EventNames::AvailableChangeEvent);
-
-} // namespace blink
-
-#endif // AvailableChangeEvent_h
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/presentation/AvailableChangeEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698