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

Issue 2564653003: [DeviceService] Move screen_orientation.mojom from //content to //device. (Closed)

Created:
4 years ago by leonhsl(Using Gerrit)
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, mlamouri+watch-screen-orientation_chromium.org, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DeviceService] Move screen_orientation.mojom from //content to //device. Also moves screen_orientation_lock_types.mojom out from blink into //device. This is the first CL to decouple screen orientation codes from //content. Follow-up CLs will * migrate ScreenOrientationHostMsg_StartListening and ScreenOrientationHostMsg_StopListening IPC messages into this mojom file. * decouple content/renderer/screen_orientation/* into blink. * decouple content/browser/screen_orientation/* into //device. BUG=612339 Committed: https://crrev.com/dfbaf46a8f088f494d65ca9621a912510f3fd10b Cr-Commit-Position: refs/heads/master@{#438372}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move screen_orientation_lock_types.mojom from blink into //device #

Total comments: 8

Patch Set 3 : Address nits from blundell@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -88 lines) Patch
M content/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
D content/common/screen_orientation.mojom View 1 chunk +0 lines, -13 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/DEPS View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/screen_orientation_provider.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/public/browser/screen_orientation_provider.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/screen_orientation/screen_orientation_dispatcher.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/screen_orientation/screen_orientation_dispatcher.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/screen_orientation/screen_orientation_dispatcher_browsertest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A device/screen_orientation/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A device/screen_orientation/public/interfaces/BUILD.gn View 1 1 chunk +12 lines, -0 lines 0 comments Download
A device/screen_orientation/public/interfaces/OWNERS View 1 chunk +4 lines, -0 lines 0 comments Download
A device/screen_orientation/public/interfaces/screen_orientation.mojom View 1 1 chunk +13 lines, -0 lines 0 comments Download
A + device/screen_orientation/public/interfaces/screen_orientation_lock_types.mojom View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
A third_party/WebKit/public/platform/modules/screen_orientation/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationEnumTraits.h View 1 1 chunk +23 lines, -23 lines 0 comments Download
D third_party/WebKit/public/platform/modules/screen_orientation/screen_orientation_lock_types.mojom View 1 1 chunk +0 lines, -31 lines 0 comments Download
M third_party/WebKit/public/platform/modules/screen_orientation/screen_orientation_lock_types.typemap View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 58 (45 generated)
leonhsl(Using Gerrit)
Hi, would you PTAL at this? Thanks. I suppose finally we should put screen orientation ...
4 years ago (2016-12-09 09:19:48 UTC) #19
blundell
This looks good modulo that necessary change. https://codereview.chromium.org/2564653003/diff/60001/device/screen_orientation/public/interfaces/screen_orientation.mojom File device/screen_orientation/public/interfaces/screen_orientation.mojom (right): https://codereview.chromium.org/2564653003/diff/60001/device/screen_orientation/public/interfaces/screen_orientation.mojom#newcode7 device/screen_orientation/public/interfaces/screen_orientation.mojom:7: import "third_party/WebKit/public/platform/modules/screen_orientation/screen_orientation_lock_types.mojom"; ...
4 years ago (2016-12-09 15:34:42 UTC) #24
leonhsl(Using Gerrit)
Uploaded ps#2 and add more reviewers, PTAL, Thanks. blundell@: For overall review. kinuko@: For OWNER ...
4 years ago (2016-12-12 09:48:29 UTC) #33
blundell
lgtm, thanks https://codereview.chromium.org/2564653003/diff/80001/content/public/browser/screen_orientation_provider.cc File content/public/browser/screen_orientation_provider.cc (right): https://codereview.chromium.org/2564653003/diff/80001/content/public/browser/screen_orientation_provider.cc#newcode18 content/public/browser/screen_orientation_provider.cc:18: using ::device::mojom::ScreenOrientationLockResult; same tiny nit. https://codereview.chromium.org/2564653003/diff/80001/content/public/browser/screen_orientation_provider.h File ...
4 years ago (2016-12-12 12:30:46 UTC) #38
kinuko
looking good, let me make sure one thing https://codereview.chromium.org/2564653003/diff/80001/content/public/browser/DEPS File content/public/browser/DEPS (right): https://codereview.chromium.org/2564653003/diff/80001/content/public/browser/DEPS#newcode2 content/public/browser/DEPS:2: "+device/screen_orientation/public/interfaces", ...
4 years ago (2016-12-12 14:44:08 UTC) #41
Tom Sepez
mojom LGTM
4 years ago (2016-12-12 16:31:30 UTC) #42
leonhsl(Using Gerrit)
https://codereview.chromium.org/2564653003/diff/80001/content/public/browser/DEPS File content/public/browser/DEPS (right): https://codereview.chromium.org/2564653003/diff/80001/content/public/browser/DEPS#newcode2 content/public/browser/DEPS:2: "+device/screen_orientation/public/interfaces", On 2016/12/12 14:44:08, kinuko wrote: > I assume ...
4 years ago (2016-12-13 02:34:57 UTC) #43
kinuko
lgtm, thanks
4 years ago (2016-12-13 02:54:26 UTC) #44
leonhsl(Using Gerrit)
Uploaded ps#3. And friendly ping Ken for OWNER review of //device, Thanks. https://codereview.chromium.org/2564653003/diff/80001/content/public/browser/screen_orientation_provider.cc File content/public/browser/screen_orientation_provider.cc ...
4 years ago (2016-12-13 03:39:58 UTC) #47
Ken Rockot(use gerrit already)
lgtm
4 years ago (2016-12-13 19:07:07 UTC) #50
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/2564653003/100001
4 years ago (2016-12-14 00:56:34 UTC) #53
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years ago (2016-12-14 01:05:43 UTC) #56
commit-bot: I haz the power
4 years ago (2016-12-14 01:11:42 UTC) #58
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dfbaf46a8f088f494d65ca9621a912510f3fd10b
Cr-Commit-Position: refs/heads/master@{#438372}

Powered by Google App Engine
This is Rietveld 408576698