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

Issue 1556803002: Add helpers for creating UI components. (Closed)

Created:
4 years, 11 months ago by jeffbrown
Modified:
4 years, 11 months ago
Reviewers:
abarth, viettrungluu, jamesr
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, darin (slow to review), gregsimon, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@moz-13
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Add helpers for creating UI components. These helpers make it easier to use Mozart in C++ and greatly reduce the amount of boilerplate involved in writing simple applications. View implementations: - BaseView: A base implementation of the View interface. - GLView: A View with an associated GLRenderer which takes care of allocating, binding, and recycling textures. - GaneshView: A View with an associated GaneshRenderer which takes care of setting up a GaneshContext and drawing to canvas. View providers: - ViewProviderApp: Skeleton of a simple app which offers the ViewProvider interface and vends Views on demand. - ContextViewerApp: Skeleton of a simple app which offers the ContentHandler interface and vends ViewProviders on demand. Helpers: - Choreographer: Coordinates the scheduling of drawing operations on behalf of a View and compensates for lag. - InputHandler: Binds an InputListener on behalf of a View. BUG= R=abarth@google.com, viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/7c8fe6539eb6dc65f2030d9008d2ea65b28be543

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : address feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1578 lines, -0 lines) Patch
M mojo/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M mojo/common/strong_binding_set.h View 1 chunk +10 lines, -0 lines 0 comments Download
A mojo/ui/BUILD.gn View 1 2 1 chunk +112 lines, -0 lines 0 comments Download
A mojo/ui/base_view.h View 1 2 1 chunk +80 lines, -0 lines 0 comments Download
A mojo/ui/base_view.cc View 1 chunk +36 lines, -0 lines 0 comments Download
A mojo/ui/choreographer.h View 1 chunk +98 lines, -0 lines 0 comments Download
A mojo/ui/choreographer.cc View 1 chunk +119 lines, -0 lines 0 comments Download
A mojo/ui/content_viewer_app.h View 1 chunk +72 lines, -0 lines 0 comments Download
A mojo/ui/content_viewer_app.cc View 1 chunk +74 lines, -0 lines 0 comments Download
A mojo/ui/ganesh_renderer.h View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A mojo/ui/ganesh_renderer.cc View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
A mojo/ui/ganesh_view.h View 1 chunk +53 lines, -0 lines 0 comments Download
A mojo/ui/ganesh_view.cc View 1 chunk +27 lines, -0 lines 0 comments Download
A mojo/ui/gl_renderer.h View 1 chunk +99 lines, -0 lines 0 comments Download
A mojo/ui/gl_renderer.cc View 1 chunk +161 lines, -0 lines 0 comments Download
A mojo/ui/gl_renderer_unittest.cc View 1 chunk +209 lines, -0 lines 0 comments Download
A mojo/ui/gl_view.h View 1 chunk +46 lines, -0 lines 0 comments Download
A mojo/ui/gl_view.cc View 1 chunk +24 lines, -0 lines 0 comments Download
A mojo/ui/input_handler.h View 1 chunk +59 lines, -0 lines 0 comments Download
A mojo/ui/input_handler.cc View 1 chunk +29 lines, -0 lines 0 comments Download
A mojo/ui/view_provider_app.h View 1 chunk +74 lines, -0 lines 0 comments Download
A mojo/ui/view_provider_app.cc View 1 chunk +79 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 10 (2 generated)
jeffbrown
4 years, 11 months ago (2015-12-31 11:20:24 UTC) #2
viettrungluu
https://codereview.chromium.org/1556803002/diff/20001/mojo/ui/base_view.h File mojo/ui/base_view.h (right): https://codereview.chromium.org/1556803002/diff/20001/mojo/ui/base_view.h#newcode23 mojo/ui/base_view.h:23: // Subclasses must handle layout and provide content for ...
4 years, 11 months ago (2016-01-05 21:35:17 UTC) #3
viettrungluu
https://codereview.chromium.org/1556803002/diff/20001/mojo/ui/ganesh_renderer.cc File mojo/ui/ganesh_renderer.cc (right): https://codereview.chromium.org/1556803002/diff/20001/mojo/ui/ganesh_renderer.cc#newcode28 mojo/ui/ganesh_renderer.cc:28: const DrawSurfaceCallback& callback) { It may just be me ...
4 years, 11 months ago (2016-01-05 21:53:26 UTC) #4
abarth
Looks like you can remove the base dependency pretty easily from everything except GaneshView. I'd ...
4 years, 11 months ago (2016-01-10 23:23:39 UTC) #5
jeffbrown
https://codereview.chromium.org/1556803002/diff/20001/mojo/ui/BUILD.gn File mojo/ui/BUILD.gn (right): https://codereview.chromium.org/1556803002/diff/20001/mojo/ui/BUILD.gn#newcode20 mojo/ui/BUILD.gn:20: "//base", On 2016/01/10 23:23:39, abarth wrote: > The base ...
4 years, 11 months ago (2016-01-26 07:25:15 UTC) #6
jeffbrown
address feedback
4 years, 11 months ago (2016-01-26 09:21:07 UTC) #7
viettrungluu
lgtm for now https://codereview.chromium.org/1556803002/diff/20001/mojo/ui/ganesh_renderer.cc File mojo/ui/ganesh_renderer.cc (right): https://codereview.chromium.org/1556803002/diff/20001/mojo/ui/ganesh_renderer.cc#newcode28 mojo/ui/ganesh_renderer.cc:28: const DrawSurfaceCallback& callback) { On 2016/01/26 ...
4 years, 11 months ago (2016-01-26 18:38:40 UTC) #8
jeffbrown
4 years, 11 months ago (2016-01-26 23:51:56 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
7c8fe6539eb6dc65f2030d9008d2ea65b28be543 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698