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

Issue 2805633004: Add Mojo NativeDisplayDelegate / NativeDisplayObserver. (Closed)

Created:
3 years, 8 months ago by kylechar
Modified:
3 years, 8 months ago
Reviewers:
Tom Sepez, sky
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Mojo NativeDisplayDelegate / NativeDisplayObserver. For mushrome, in order to have screen management in one process and Ozone in another process we need a mojom::NativeDisplayDelegate and implementation. The ForwardingDisplayDelegate will be created in ash and will connect to mus-ws. In mus-ws ScreenManagerForwarding will own the real NativeDisplayDelegate. A mojom::NativeDisplayObserver works in the other direction. This only implements the Ozone DRM parts of NativeDisplayDelegate. Most of the other methods exist for the X11 implementation which isn't used. BUG=706589 Review-Url: https://codereview.chromium.org/2805633004 Cr-Commit-Position: refs/heads/master@{#463321} Committed: https://chromium.googlesource.com/chromium/src/+/f47442541a1b4292f7c428717a90a15712f9c62b

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fixes for sky. #

Patch Set 3 : Change ctor. #

Total comments: 3

Patch Set 4 : Explicit ctor. #

Patch Set 5 : NON_EXPORT_BASE. #

Patch Set 6 : s/InterfaceRegistry/BinderRegistry #

Unified diffs Side-by-side diffs Delta from patch set Stats (+578 lines, -0 lines) Patch
M services/ui/display/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A services/ui/display/screen_manager_forwarding.h View 1 2 3 4 5 1 chunk +96 lines, -0 lines 0 comments Download
A services/ui/display/screen_manager_forwarding.cc View 1 2 3 4 5 1 chunk +200 lines, -0 lines 0 comments Download
M services/ui/manifest.json View 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/manager/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A ui/display/manager/forwarding_display_delegate.h View 1 2 3 4 1 chunk +91 lines, -0 lines 0 comments Download
A ui/display/manager/forwarding_display_delegate.cc View 1 2 1 chunk +132 lines, -0 lines 0 comments Download
M ui/display/mojo/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A ui/display/mojo/native_display_delegate.mojom View 1 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
kylechar
3 years, 8 months ago (2017-04-06 17:44:14 UTC) #2
sky
https://codereview.chromium.org/2805633004/diff/1/services/ui/display/screen_manager_forwarding.cc File services/ui/display/screen_manager_forwarding.cc (right): https://codereview.chromium.org/2805633004/diff/1/services/ui/display/screen_manager_forwarding.cc#newcode98 services/ui/display/screen_manager_forwarding.cc:98: weak_ptr_factory_.GetWeakPtr(), callback)); Similar comment here about not needing a ...
3 years, 8 months ago (2017-04-06 20:30:21 UTC) #3
kylechar
https://codereview.chromium.org/2805633004/diff/1/services/ui/display/screen_manager_forwarding.cc File services/ui/display/screen_manager_forwarding.cc (right): https://codereview.chromium.org/2805633004/diff/1/services/ui/display/screen_manager_forwarding.cc#newcode98 services/ui/display/screen_manager_forwarding.cc:98: weak_ptr_factory_.GetWeakPtr(), callback)); On 2017/04/06 20:30:20, sky wrote: > Similar ...
3 years, 8 months ago (2017-04-07 13:52:16 UTC) #4
sky
LGTM https://codereview.chromium.org/2805633004/diff/40001/services/ui/display/screen_manager_forwarding.h File services/ui/display/screen_manager_forwarding.h (right): https://codereview.chromium.org/2805633004/diff/40001/services/ui/display/screen_manager_forwarding.h#newcode88 services/ui/display/screen_manager_forwarding.h:88: // Cached pointers to snapshots owned by the ...
3 years, 8 months ago (2017-04-07 14:45:55 UTC) #5
kylechar
+tsepez for security review https://codereview.chromium.org/2805633004/diff/40001/ui/display/manager/forwarding_display_delegate.h File ui/display/manager/forwarding_display_delegate.h (right): https://codereview.chromium.org/2805633004/diff/40001/ui/display/manager/forwarding_display_delegate.h#newcode30 ui/display/manager/forwarding_display_delegate.h:30: ForwardingDisplayDelegate(mojom::NativeDisplayDelegatePtr delegate); On 2017/04/07 14:45:54, ...
3 years, 8 months ago (2017-04-07 14:49:51 UTC) #7
Tom Sepez
Are both of these processes equally privileged / trusted?
3 years, 8 months ago (2017-04-07 17:30:11 UTC) #8
kylechar
On 2017/04/07 17:30:11, Tom Sepez wrote: > Are both of these processes equally privileged / ...
3 years, 8 months ago (2017-04-07 18:31:20 UTC) #9
Tom Sepez
On 2017/04/07 18:31:20, kylechar wrote: > On 2017/04/07 17:30:11, Tom Sepez wrote: > > Are ...
3 years, 8 months ago (2017-04-07 20:30:43 UTC) #10
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/2805633004/70001
3 years, 8 months ago (2017-04-10 13:09:56 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/190446) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-10 13:14:11 UTC) #19
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/2805633004/90001
3 years, 8 months ago (2017-04-10 16:31:15 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 18:02:07 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:90001) as
https://chromium.googlesource.com/chromium/src/+/f47442541a1b4292f7c428717a90...

Powered by Google App Engine
This is Rietveld 408576698