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

Side by Side Diff: Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.h

Issue 18260005: Web MIDI: remove old platform API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@midi_permission_request
Patch Set: (rebase) Created 7 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 unified diff | Download patch
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 28 matching lines...) Expand all
39 } 39 }
40 40
41 namespace WebTestRunner { 41 namespace WebTestRunner {
42 42
43 class MockWebMIDIAccessor : public WebKit::WebMIDIAccessor { 43 class MockWebMIDIAccessor : public WebKit::WebMIDIAccessor {
44 public: 44 public:
45 explicit MockWebMIDIAccessor(WebKit::WebMIDIAccessorClient*); 45 explicit MockWebMIDIAccessor(WebKit::WebMIDIAccessorClient*);
46 virtual ~MockWebMIDIAccessor(); 46 virtual ~MockWebMIDIAccessor();
47 47
48 // WebKit::WebMIDIAccessor implementation. 48 // WebKit::WebMIDIAccessor implementation.
49 virtual void requestAccess(bool requestSysex) OVERRIDE; 49 virtual void startSession() OVERRIDE;
50 virtual void sendMIDIData( 50 virtual void sendMIDIData(
51 unsigned portIndex, 51 unsigned portIndex,
52 const unsigned char* data, 52 const unsigned char* data,
53 size_t length, 53 size_t length,
54 double timestamp) OVERRIDE { } 54 double timestamp) OVERRIDE { }
55 55
56 private: 56 private:
57 WebKit::WebMIDIAccessorClient* m_client; 57 WebKit::WebMIDIAccessorClient* m_client;
58 }; 58 };
59 59
60 } // namespace WebTestRunner 60 } // namespace WebTestRunner
61 61
62 #endif // MockWebMIDIAccessor_h 62 #endif // MockWebMIDIAccessor_h
OLDNEW
« no previous file with comments | « Source/core/platform/midi/MIDIAccessor.cpp ('k') | Tools/DumpRenderTree/chromium/TestRunner/src/MockWebMIDIAccessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698