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

Issue 2189893002: services/ui: Create a proper component for the client-lib. (Closed)

Created:
4 years, 4 months ago by sadrul
Modified:
4 years, 4 months ago
CC:
chromium-reviews, rjkroege
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

services/ui: Create a proper component for the client-lib. Instead of a source_set, create a component for the client-lib. BUG=none

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -46 lines) Patch
M mash/login/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/cpp/BUILD.gn View 3 chunks +6 lines, -2 lines 0 comments Download
M services/ui/public/cpp/bitmap_uploader.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/context_provider.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/public/cpp/gles2_context.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/input_event_handler.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/lib/window_private.h View 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/output_surface.h View 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/public/cpp/property_type_converters.h View 2 chunks +15 lines, -14 lines 0 comments Download
M services/ui/public/cpp/raster_thread_helper.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/scoped_window_ptr.h View 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/tests/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A services/ui/public/cpp/ui_export.h View 1 chunk +29 lines, -0 lines 0 comments Download
M services/ui/public/cpp/window.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/window_manager_delegate.h View 3 chunks +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/window_observer.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/window_surface.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/window_surface_client.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M services/ui/public/cpp/window_tree_client_delegate.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/window_tree_client_observer.h View 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/public/cpp/window_tree_host_factory.h View 2 chunks +11 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (14 generated)
sadrul
tsepez@ Please review //services/ui/public/cpp/property_type_converters.h sky@ Please review all
4 years, 4 months ago (2016-07-28 03:30:14 UTC) #4
sadrul
+ben@ since sky@ is ooo
4 years, 4 months ago (2016-07-28 17:23:56 UTC) #16
Tom Sepez
On 2016/07/28 03:30:14, sadrul wrote: > tsepez@ Please review //services/ui/public/cpp/property_type_converters.h > > sky@ Please review ...
4 years, 4 months ago (2016-07-28 17:56:45 UTC) #17
Ben Goodger (Google)
Why do you need to do this? The component build is a vestigial artifact of ...
4 years, 4 months ago (2016-07-28 19:19:46 UTC) #18
sadrul
On 2016/07/28 19:19:46, Ben Goodger (Google) wrote: > Why do you need to do this? ...
4 years, 4 months ago (2016-07-28 19:44:09 UTC) #19
Ben Goodger (Google)
On 2016/07/28 19:44:09, sadrul wrote: > On 2016/07/28 19:19:46, Ben Goodger (Google) wrote: > > ...
4 years, 4 months ago (2016-07-28 20:23:39 UTC) #20
Ben Goodger (Google)
statics etcs are the devil. The client lib should be stateless. if you need to ...
4 years, 4 months ago (2016-07-28 20:26:31 UTC) #21
sadrul
4 years, 4 months ago (2016-07-30 05:16:23 UTC) #22
On 2016/07/28 20:26:31, Ben Goodger (Google) wrote:
> statics etcs are the devil. The client lib should be stateless. if you need
> to hold some state somewhere, inject it into the client lib.

OK. I am trying to get rid of the GpuService singleton
(https://codereview.chromium.org/2197613003/
https://codereview.chromium.org/2194003002/). That should allow moving the
client-side code out of the common component so it doesn't get included in the
service (https://codereview.chromium.org/2184943002/).

Removing the views dependency from content may be trickier though
(https://codereview.chromium.org/2188813003/), but I will look into that too.

> 
> -Ben
> 
> On Thu, Jul 28, 2016 at 1:23 PM, <mailto:ben@chromium.org> wrote:
> 
> > On 2016/07/28 19:44:09, sadrul wrote:
> > > On 2016/07/28 19:19:46, Ben Goodger (Google) wrote:
> > > > Why do you need to do this?
> > > >
> > > > The component build is a vestigial artifact of the chrome build
> > process,
> > > > something I hope we'll be able to undo at some future point with
> > > //service-based
> > > > componentization, & so for the past 2+ years we've avoided leaking it
> > into
> > > > //services code.
> > > >
> > > > Client libs tend to be pretty tiny, even complex ones like this - I
> > figured
> > as
> > > > long as the targets that depended on it were components it'd be ok.
> > >
> > > Without this, things like static variables or singletons defined in the
> > > client-lib cannot be used (see for example
> > > https://codereview.chromium.org/2188813003/, which uses a static const
> > > kWindowForAcceleratedWidget, and
> > https://codereview.chromium.org/2184943002/,
> > > which moves a client-side singleton into the client-lib).
> >
> > Ah right. This happened before and Peng tried to do this, and I think my
> > response was "don't do that" :-)
> >
> > https://codereview.chromium.org/2189893002/
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Chromium-reviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698