Index: Source/modules/webmidi/MIDIAccessFuture.h |
diff --git a/Source/core/html/ime/Composition.h b/Source/modules/webmidi/MIDIAccessFuture.h |
similarity index 76% |
copy from Source/core/html/ime/Composition.h |
copy to Source/modules/webmidi/MIDIAccessFuture.h |
index 6562b5f75fd19cc8e80409327f7f8a5881bcf1df..8059d02ef664d243070a9fdcdc9fe1ad5d9742ad 100644 |
--- a/Source/core/html/ime/Composition.h |
+++ b/Source/modules/webmidi/MIDIAccessFuture.h |
@@ -28,34 +28,32 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef Composition_h |
-#define Composition_h |
+#ifndef MIDIAccessFuture_h |
+#define MIDIAccessFuture_h |
#include "bindings/v8/ScriptWrappable.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
-#include "wtf/RefPtr.h" |
namespace WebCore { |
-class Node; |
-class Range; |
- |
-class Composition : public RefCounted<Composition>, public ScriptWrappable { |
+class MIDIErrorCallback; |
+class MIDISuccessCallback; |
+class ScriptExecutionContext; |
+ |
+class MIDIAccessFuture : public RefCounted<MIDIAccessFuture>, public ScriptWrappable { |
public: |
- static PassRefPtr<Composition> create(Node*, Range*); |
- ~Composition(); |
+ static PassRefPtr<MIDIAccessFuture> create(ScriptExecutionContext*); |
+ virtual ~MIDIAccessFuture() { } |
- Node* text() const { return m_text.get(); } |
- Range* caret() const { return m_caret.get(); } |
+ void done(PassRefPtr<MIDISuccessCallback>, PassRefPtr<MIDIErrorCallback>); |
private: |
- Composition(Node*, Range*); |
- |
- RefPtr<Node> m_text; |
- RefPtr<Range> m_caret; |
+ MIDIAccessFuture(ScriptExecutionContext*); |
+ |
+ ScriptExecutionContext* m_context; |
}; |
} // namespace WebCore |
-#endif // Composition_h |
+#endif // MIDIAccessFuture_h |