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

Issue 2422163002: Web MIDI: use midi_service.mojom for media::midi::PortState (Closed)

Created:
4 years, 2 months ago by Takashi Toyoshima
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, einbinder+watch-test-runner_chromium.org, feature-media-reviews_chromium.org, haraken, jam, jochen+watch_chromium.org, mac-reviews_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, toyoshim+midi_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web MIDI: use midi_service.mojom for media::midi::PortState Provide PortState from midi_service.mojom to be shared between content and Blink. BUG=582327 TBR=jochen@chromium.org Committed: https://crrev.com/b6ce16127b0dc25243d30650728461face866d04 Cr-Commit-Position: refs/heads/master@{#426756}

Patch Set 1 #

Patch Set 2 : build fix #

Total comments: 2

Patch Set 3 : remove non-mechanical changes #

Patch Set 4 : nits #

Total comments: 2

Patch Set 5 : review #16 #

Total comments: 2

Patch Set 6 : review #19 #

Patch Set 7 : [rebase and fix merge conflicts] #

Patch Set 8 : gn --check fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -205 lines) Patch
M components/test_runner/mock_web_midi_accessor.cc View 2 chunks +7 lines, -12 lines 0 comments Download
M content/browser/media/midi_host.h View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/media/midi_host.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/media/midi_host_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M content/common/media/midi_messages.h View 2 chunks +3 lines, -4 lines 0 comments Download
M content/renderer/media/midi_message_filter.h View 1 2 3 chunks +10 lines, -10 lines 0 comments Download
M content/renderer/media/midi_message_filter.cc View 1 2 3 6 chunks +19 lines, -26 lines 0 comments Download
D content/renderer/media/midi_message_filter_unittest.cc View 1 2 3 4 1 chunk +12 lines, -10 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M media/midi/midi_manager.h View 2 chunks +6 lines, -4 lines 0 comments Download
M media/midi/midi_manager.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M media/midi/midi_manager_alsa.cc View 4 chunks +7 lines, -6 lines 0 comments Download
M media/midi/midi_manager_android.cc View 5 chunks +7 lines, -6 lines 0 comments Download
M media/midi/midi_manager_mac.cc View 1 5 chunks +6 lines, -5 lines 0 comments Download
M media/midi/midi_manager_mac_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M media/midi/midi_manager_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/midi/midi_manager_usb.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M media/midi/midi_manager_usb_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/midi/midi_manager_win.h View 1 3 chunks +5 lines, -4 lines 0 comments Download
M media/midi/midi_manager_win.cc View 1 2 3 4 5 6 9 chunks +12 lines, -12 lines 0 comments Download
M media/midi/midi_manager_winrt.cc View 1 7 chunks +7 lines, -6 lines 0 comments Download
M media/midi/midi_port_info.h View 2 chunks +3 lines, -9 lines 0 comments Download
M media/midi/midi_port_info.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/midi/midi_service.mojom View 1 chunk +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webmidi/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccess.h View 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h View 1 3 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessor.h View 1 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp View 3 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessorClient.h View 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIInput.h View 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIInput.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIOutput.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIPort.h View 5 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIPort.cpp View 1 7 chunks +23 lines, -18 lines 0 comments Download
M third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h View 1 chunk +6 lines, -9 lines 0 comments Download

Messages

Total messages: 34 (19 generated)
Takashi Toyoshima (Google)
Hi, can you take a look at this second CL of Web MIDI mojofication? midi_message_filter.cc ...
4 years, 2 months ago (2016-10-17 18:38:28 UTC) #12
Tom Sepez
messages LGTM
4 years, 2 months ago (2016-10-17 18:39:02 UTC) #13
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2422163002/diff/20001/content/renderer/media/midi_message_filter.cc File content/renderer/media/midi_message_filter.cc (right): https://codereview.chromium.org/2422163002/diff/20001/content/renderer/media/midi_message_filter.cc#newcode234 content/renderer/media/midi_message_filter.cc:234: // TODO(toyoshim): Pass through the state as is. This ...
4 years, 2 months ago (2016-10-17 19:16:19 UTC) #14
Takashi Toyoshima
As Reilly suggested, I revert non-mechanical changes that remove ToBlinkState and add some logics from ...
4 years, 2 months ago (2016-10-19 07:25:47 UTC) #15
Reilly Grant (use Gerrit)
lgtm with one nit https://codereview.chromium.org/2422163002/diff/60001/content/renderer/media/midi_message_filter_unittest.cc File content/renderer/media/midi_message_filter_unittest.cc (right): https://codereview.chromium.org/2422163002/diff/60001/content/renderer/media/midi_message_filter_unittest.cc#newcode15 content/renderer/media/midi_message_filter_unittest.cc:15: using PortState = midi::mojom::PortState; You ...
4 years, 2 months ago (2016-10-19 19:24:18 UTC) #16
Takashi Toyoshima
https://codereview.chromium.org/2422163002/diff/60001/content/renderer/media/midi_message_filter_unittest.cc File content/renderer/media/midi_message_filter_unittest.cc (right): https://codereview.chromium.org/2422163002/diff/60001/content/renderer/media/midi_message_filter_unittest.cc#newcode15 content/renderer/media/midi_message_filter_unittest.cc:15: using PortState = midi::mojom::PortState; Oops, thank you for catching ...
4 years, 2 months ago (2016-10-20 05:31:59 UTC) #17
Takashi Toyoshima
I will wait other reviews for - components/test_runner/mock_web_midi_accessor.cc by jochen - midi by yhirano (optional)
4 years, 2 months ago (2016-10-20 05:34:49 UTC) #18
yhirano
Sorry for the delay. LGTM. https://codereview.chromium.org/2422163002/diff/80001/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp File third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp (right): https://codereview.chromium.org/2422163002/diff/80001/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp#newcode48 third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp:48: using PortState = midi::mojom::PortState; ...
4 years, 2 months ago (2016-10-21 02:21:50 UTC) #19
Takashi Toyoshima
https://codereview.chromium.org/2422163002/diff/80001/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp File third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp (right): https://codereview.chromium.org/2422163002/diff/80001/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp#newcode48 third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp:48: using PortState = midi::mojom::PortState; Oops, same error :/ Thank ...
4 years, 2 months ago (2016-10-21 05:46:56 UTC) #20
Takashi Toyoshima
TBR=jochen is added since test_runner changes are only mechanical things that are required by mojom ...
4 years, 2 months ago (2016-10-21 05:59:51 UTC) #22
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/2422163002/120001
4 years, 2 months ago (2016-10-21 06:47:42 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/302741)
4 years, 2 months ago (2016-10-21 06:53:02 UTC) #27
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/2422163002/140001
4 years, 2 months ago (2016-10-21 07:26:58 UTC) #30
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-21 09:15:55 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:28:24 UTC) #34
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b6ce16127b0dc25243d30650728461face866d04
Cr-Commit-Position: refs/heads/master@{#426756}

Powered by Google App Engine
This is Rietveld 408576698