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

Side by Side Diff: third_party/WebKit/Source/modules/webmidi/MIDIController.cpp

Issue 1602703005: Web MIDI: Ask permissions of the content layer always (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert layout_test_message_filter.cc that should be in the next CL Created 4 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 MIDIController::~MIDIController() 49 MIDIController::~MIDIController()
50 { 50 {
51 } 51 }
52 52
53 PassOwnPtrWillBeRawPtr<MIDIController> MIDIController::create(PassOwnPtr<MIDICli ent> client) 53 PassOwnPtrWillBeRawPtr<MIDIController> MIDIController::create(PassOwnPtr<MIDICli ent> client)
54 { 54 {
55 return adoptPtrWillBeNoop(new MIDIController(client)); 55 return adoptPtrWillBeNoop(new MIDIController(client));
56 } 56 }
57 57
58 void MIDIController::requestSysexPermission(MIDIAccessInitializer* initializer) 58 void MIDIController::requestPermission(MIDIAccessInitializer* initializer, const MIDIOptions& options)
59 { 59 {
60 m_client->requestSysexPermission(initializer); 60 m_client->requestPermission(initializer, options);
61 } 61 }
62 62
63 void MIDIController::cancelSysexPermissionRequest(MIDIAccessInitializer* initial izer) 63 void MIDIController::cancelPermissionRequest(MIDIAccessInitializer* initializer)
64 { 64 {
65 m_client->cancelSysexPermissionRequest(initializer); 65 m_client->cancelPermissionRequest(initializer);
66 } 66 }
67 67
68 void provideMIDITo(LocalFrame& frame, PassOwnPtr<MIDIClient> client) 68 void provideMIDITo(LocalFrame& frame, PassOwnPtr<MIDIClient> client)
69 { 69 {
70 MIDIController::provideTo(frame, MIDIController::supplementName(), MIDIContr oller::create(client)); 70 MIDIController::provideTo(frame, MIDIController::supplementName(), MIDIContr oller::create(client));
71 } 71 }
72 72
73 } // namespace blink 73 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIController.h ('k') | third_party/WebKit/Source/modules/webmidi/MIDIOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698