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

Issue 2404443002: Web MIDI: use midi_service.mojom for media::midi::Result (Closed)

Created:
4 years, 2 months ago by Takashi Toyoshima
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, feature-media-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, toyoshim+midi_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web MIDI: use midi_service.mojom for media::midi::Result As a first step for the mojofication, start from introducing enums Result via mojom to be shared with Blink and content. BUG=582327 Committed: https://crrev.com/729663ff68ab25dcbcfd06266f2f6cb62e26b3e6 Cr-Commit-Position: refs/heads/master@{#425637}

Patch Set 1 #

Patch Set 2 : layering is wrong #

Patch Set 3 : midi_service.mojom #

Patch Set 4 : typo #

Patch Set 5 : gn --check #

Patch Set 6 : TODO #

Patch Set 7 : use it in Blink #

Patch Set 8 : fix layout test #

Total comments: 5

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Total comments: 2

Patch Set 11 : using midi::mojom::Result in midi_host and midi_message_filter #

Patch Set 12 : more using #

Total comments: 4

Patch Set 13 : yhirano@ review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -140 lines) Patch
M components/test_runner/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/mock_web_midi_accessor.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M components/test_runner/mock_web_midi_accessor.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M components/test_runner/test_runner.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -4 lines 0 comments Download
M components/test_runner/test_runner.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -5 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 1 comment Download
M content/browser/media/midi_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/media/midi_host.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/media/midi_messages.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/midi_message_filter.h View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/midi_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +9 lines, -30 lines 0 comments Download
M media/midi/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -0 lines 0 comments Download
M media/midi/OWNERS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M media/midi/midi_manager.h View 1 2 3 4 5 6 7 8 7 chunks +13 lines, -11 lines 0 comments Download
M media/midi/midi_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M media/midi/midi_manager_alsa.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M media/midi/midi_manager_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M media/midi/midi_manager_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M media/midi/midi_manager_mac_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M media/midi/midi_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M media/midi/midi_manager_usb.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M media/midi/midi_manager_usb.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M media/midi/midi_manager_usb_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M media/midi/midi_manager_win.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M media/midi/midi_manager_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M media/midi/midi_manager_winrt.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A media/midi/midi_service.mojom View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
D media/midi/result.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccess.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +19 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessor.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessorClient.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/public/platform/DEPS View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
Takashi Toyoshima
Reilly, can you take a look at this first step of Web MIDI mojofication? I'm ...
4 years, 2 months ago (2016-10-11 08:46:18 UTC) #17
Reilly Grant (use Gerrit)
This generally looks good. https://codereview.chromium.org/2404443002/diff/140001/media/midi/midi_service.mojom File media/midi/midi_service.mojom (right): https://codereview.chromium.org/2404443002/diff/140001/media/midi/midi_service.mojom#newcode5 media/midi/midi_service.mojom:5: module media.midi; Convention is to ...
4 years, 2 months ago (2016-10-11 17:57:57 UTC) #18
Takashi Toyoshima
https://codereview.chromium.org/2404443002/diff/140001/media/midi/midi_service.mojom File media/midi/midi_service.mojom (right): https://codereview.chromium.org/2404443002/diff/140001/media/midi/midi_service.mojom#newcode5 media/midi/midi_service.mojom:5: module media.midi; Thanks. So, probably midi.mojom looks better rather ...
4 years, 2 months ago (2016-10-12 05:01:44 UTC) #19
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2404443002/diff/140001/third_party/WebKit/public/platform/DEPS File third_party/WebKit/public/platform/DEPS (right): https://codereview.chromium.org/2404443002/diff/140001/third_party/WebKit/public/platform/DEPS#newcode15 third_party/WebKit/public/platform/DEPS:15: "+media/midi/midi_service.mojom-shared.h", On 2016/10/12 at 05:01:44, toyoshim wrote: > WebMIDIAccessorClient.h ...
4 years, 2 months ago (2016-10-12 17:48:06 UTC) #20
Takashi Toyoshima
Thank you, Reilly. Since this direction looks working, I started adding other owners to reviewers ...
4 years, 2 months ago (2016-10-13 07:44:42 UTC) #22
Tom Sepez
lgtm
4 years, 2 months ago (2016-10-13 16:41:42 UTC) #23
Reilly Grant (use Gerrit)
lgtm https://codereview.chromium.org/2404443002/diff/180001/components/test_runner/test_runner.cc File components/test_runner/test_runner.cc (right): https://codereview.chromium.org/2404443002/diff/180001/components/test_runner/test_runner.cc#newcode1354 components/test_runner/test_runner.cc:1354: result ? midi::mojom::Result::OK It's completely reasonable to add ...
4 years, 2 months ago (2016-10-13 21:34:36 UTC) #24
Takashi Toyoshima
https://codereview.chromium.org/2404443002/diff/180001/components/test_runner/test_runner.cc File components/test_runner/test_runner.cc (right): https://codereview.chromium.org/2404443002/diff/180001/components/test_runner/test_runner.cc#newcode1354 components/test_runner/test_runner.cc:1354: result ? midi::mojom::Result::OK Yeah, probably, I want not to ...
4 years, 2 months ago (2016-10-14 08:45:28 UTC) #26
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-14 09:17:41 UTC) #27
yhirano
lgtm https://codereview.chromium.org/2404443002/diff/220001/content/browser/media/midi_host.h File content/browser/media/midi_host.h (right): https://codereview.chromium.org/2404443002/diff/220001/content/browser/media/midi_host.h#newcode23 content/browser/media/midi_host.h:23: #include "media/midi/midi_port_info.h" +media/midi/midi_service.mojom.h https://codereview.chromium.org/2404443002/diff/220001/media/midi/midi_manager.cc File media/midi/midi_manager.cc (right): https://codereview.chromium.org/2404443002/diff/220001/media/midi/midi_manager.cc#newcode20 ...
4 years, 2 months ago (2016-10-17 05:23:27 UTC) #28
Takashi Toyoshima
https://codereview.chromium.org/2404443002/diff/220001/content/browser/media/midi_host.h File content/browser/media/midi_host.h (right): https://codereview.chromium.org/2404443002/diff/220001/content/browser/media/midi_host.h#newcode23 content/browser/media/midi_host.h:23: #include "media/midi/midi_port_info.h" On 2016/10/17 05:23:27, yhirano wrote: > +media/midi/midi_service.mojom.h ...
4 years, 2 months ago (2016-10-17 06:38:57 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2404443002/240001
4 years, 2 months ago (2016-10-17 06:55:45 UTC) #32
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 2 months ago (2016-10-17 08:54:38 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 08:57:21 UTC) #35
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/729663ff68ab25dcbcfd06266f2f6cb62e26b3e6
Cr-Commit-Position: refs/heads/master@{#425637}

Powered by Google App Engine
This is Rietveld 408576698