Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(278)

Issue 12935046: Moves viewmode control binding to a mixin

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by j.c.sackett
Modified:
10 years, 8 months ago
Reviewers:
mp+181615, rharding, jeff.pihach, matthew.scott
Visibility:
Public.

Description

Moves viewmode control binding to a mixin * A new mixin has been created * Nav functions like _goFullscreen have been moved to the mixin * * toggleMinimized is just a placeholder, as fullscreen/sidebar need to do a different thing than minimized * The mixin doesn't create controls; it just has them passed in, since different views setup the controls differently. https://code.launchpad.net/~jcsackett/juju-gui/view-controls-mixin/+merge/181615 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Moves viewmode control binding to a mixin #

Total comments: 2

Patch Set 3 : Moves viewmode control binding to a mixin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -189 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/subapps/browser/views/minimized.js View 1 2 4 chunks +5 lines, -69 lines 0 comments Download
M app/subapps/browser/views/view.js View 1 2 6 chunks +7 lines, -53 lines 0 comments Download
M app/views/utils.js View 1 1 chunk +2 lines, -1 line 0 comments Download
M app/widgets/viewmode-controls.js View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
M test/test_browser_app.js View 1 2 2 chunks +48 lines, -66 lines 0 comments Download
M test/test_viewmode_controls_widget.js View 1 2 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 8
j.c.sackett
Please take a look.
10 years, 8 months ago (2013-08-22 16:45:29 UTC) #1
rharding
Thanks for the cleanup. I'd suggest keeping the extension in the widget code base. It's ...
10 years, 8 months ago (2013-08-22 16:55:06 UTC) #2
matthew.scott
LGTM with Rick's suggestions - good code and ideas; I'm good with Rick's changes, too.
10 years, 8 months ago (2013-08-22 18:52:39 UTC) #3
jeff.pihach
LGTM with rick's comments about testing https://codereview.appspot.com/12935046/diff/1/app/subapps/browser/views/view.js File app/subapps/browser/views/view.js (right): https://codereview.appspot.com/12935046/diff/1/app/subapps/browser/views/view.js#newcode44 app/subapps/browser/views/view.js:44: Y.juju.views.utils.viewmodeControllingView this can ...
10 years, 8 months ago (2013-08-22 21:03:31 UTC) #4
j.c.sackett
Please take a look.
10 years, 8 months ago (2013-08-22 21:34:59 UTC) #5
rharding
LGTM with comment on naming and a check that there's test cases for the minimized ...
10 years, 8 months ago (2013-08-23 13:08:13 UTC) #6
j.c.sackett
On 2013/08/23 13:08:13, rharding wrote: > https://codereview.appspot.com/12935046/diff/9001/app/subapps/browser/views/minimized.js#newcode40 > app/subapps/browser/views/minimized.js:40: > Y.juju.widgets.ViewmodeControllingViewExtension > The widget is ...
10 years, 8 months ago (2013-08-23 13:36:11 UTC) #7
j.c.sackett
10 years, 8 months ago (2013-08-23 13:43:08 UTC) #8
*** Submitted:

Moves viewmode control binding to a mixin

* A new mixin has been created
* Nav functions like _goFullscreen have been moved to the mixin
* * toggleMinimized is just a placeholder, as fullscreen/sidebar need to do a
different thing than minimized
* The mixin doesn't create controls; it just has them passed in, since different
views setup the controls differently.

R=rharding, matthew.scott, jeff.pihach
CC=
https://codereview.appspot.com/12935046
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b