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

Unified Diff: Source/modules/webmidi/MIDIAccessFuture.h

Issue 16288002: Web MIDI API (work in progress) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add accessApproved() Created 7 years, 6 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/webmidi/MIDIAccess.cpp ('k') | Source/modules/webmidi/MIDIAccessFuture.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/webmidi/MIDIAccess.cpp ('k') | Source/modules/webmidi/MIDIAccessFuture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698