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

Side by Side Diff: Source/modules/webmidi/MIDIAccessor.h

Issue 135653002: Update modules classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to web/ Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webmidi/MIDIAccessPromise.h ('k') | Source/modules/webmidi/MIDIClientMock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 22 matching lines...) Expand all
33 33
34 #include "public/platform/WebMIDIAccessor.h" 34 #include "public/platform/WebMIDIAccessor.h"
35 #include "public/platform/WebMIDIAccessorClient.h" 35 #include "public/platform/WebMIDIAccessorClient.h"
36 #include "wtf/OwnPtr.h" 36 #include "wtf/OwnPtr.h"
37 #include "wtf/PassOwnPtr.h" 37 #include "wtf/PassOwnPtr.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class MIDIAccessorClient; 41 class MIDIAccessorClient;
42 42
43 class MIDIAccessor : public blink::WebMIDIAccessorClient { 43 class MIDIAccessor FINAL : public blink::WebMIDIAccessorClient {
44 public: 44 public:
45 static PassOwnPtr<MIDIAccessor> create(MIDIAccessorClient*); 45 static PassOwnPtr<MIDIAccessor> create(MIDIAccessorClient*);
46 46
47 virtual ~MIDIAccessor() { } 47 virtual ~MIDIAccessor() { }
48 48
49 void startSession(); 49 void startSession();
50 void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t leng th, double timeStamp); 50 void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t leng th, double timeStamp);
51 51
52 // blink::WebMIDIAccessorClient 52 // blink::WebMIDIAccessorClient
53 virtual void didAddInputPort(const blink::WebString& id, const blink::WebStr ing& manufacturer, const blink::WebString& name, const blink::WebString& version ) OVERRIDE; 53 virtual void didAddInputPort(const blink::WebString& id, const blink::WebStr ing& manufacturer, const blink::WebString& name, const blink::WebString& version ) OVERRIDE;
54 virtual void didAddOutputPort(const blink::WebString& id, const blink::WebSt ring& manufacturer, const blink::WebString& name, const blink::WebString& versio n) OVERRIDE; 54 virtual void didAddOutputPort(const blink::WebString& id, const blink::WebSt ring& manufacturer, const blink::WebString& name, const blink::WebString& versio n) OVERRIDE;
55 virtual void didStartSession(bool success) OVERRIDE; 55 virtual void didStartSession(bool success) OVERRIDE;
56 virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* dat a, size_t length, double timeStamp) OVERRIDE; 56 virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* dat a, size_t length, double timeStamp) OVERRIDE;
57 57
58 private: 58 private:
59 explicit MIDIAccessor(MIDIAccessorClient*); 59 explicit MIDIAccessor(MIDIAccessorClient*);
60 60
61 MIDIAccessorClient* m_client; 61 MIDIAccessorClient* m_client;
62 OwnPtr<blink::WebMIDIAccessor> m_accessor; 62 OwnPtr<blink::WebMIDIAccessor> m_accessor;
63 }; 63 };
64 64
65 } // namespace WebCore 65 } // namespace WebCore
66 66
67 #endif // MIDIAccessor_h 67 #endif // MIDIAccessor_h
OLDNEW
« no previous file with comments | « Source/modules/webmidi/MIDIAccessPromise.h ('k') | Source/modules/webmidi/MIDIClientMock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698