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

Issue 881243003: Add designer-stage (Closed)

Created:
5 years, 10 months ago by justinfagnani
Modified:
5 years, 10 months ago
Reviewers:
imac
Base URL:
https://github.com/PolymerLabs/designer2.git@master
Visibility:
Public.

Description

Add designer-stage BUG=

Patch Set 1 #

Total comments: 42

Patch Set 2 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -0 lines) Patch
A elements/designer-stage/demo.html View 1 1 chunk +33 lines, -0 lines 0 comments Download
A elements/designer-stage/designer-stage.html View 1 1 chunk +168 lines, -0 lines 0 comments Download
A elements/designer-stage/frame.html View 1 1 chunk +121 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
justinfagnani
FYI: This has a little bit of demo content for testing until I get some ...
5 years, 10 months ago (2015-02-05 00:46:31 UTC) #2
imac
https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/demo.html File elements/designer-stage/demo.html (right): https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/demo.html#newcode5 elements/designer-stage/demo.html:5: --> Go w/ the big license blurb (e.g. https://github.com/Polymer/wct-local/blob/master/lib/plugin.js#L1-9): ...
5 years, 10 months ago (2015-02-05 01:54:07 UTC) #3
justinfagnani
PTAL https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/demo.html File elements/designer-stage/demo.html (right): https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/demo.html#newcode5 elements/designer-stage/demo.html:5: --> On 2015/02/05 01:54:06, imac wrote: > Go ...
5 years, 10 months ago (2015-02-05 22:15:45 UTC) #4
imac
lgtm https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/designer-stage.html File elements/designer-stage/designer-stage.html (right): https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/designer-stage.html#newcode68 elements/designer-stage/designer-stage.html:68: frame.onload = function() { On 2015/02/05 22:15:45, justinfagnani ...
5 years, 10 months ago (2015-02-06 20:29:49 UTC) #5
justinfagnani
5 years, 10 months ago (2015-02-06 23:49:43 UTC) #6
Thanks!

https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/desi...
File elements/designer-stage/designer-stage.html (right):

https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/desi...
elements/designer-stage/designer-stage.html:68: frame.onload = function() {
On 2015/02/06 20:29:49, imac wrote:
> On 2015/02/05 22:15:45, justinfagnani wrote:
> > On 2015/02/05 01:54:07, imac wrote:
> > > Seems like there's a potential race here too: couldn't the frame have
loaded
> > by
> > > now (e.g. polyfill land)?
> > 
> > In that case I'm unsure how to know the content is loaded (remember that I
> can't
> > access the frame contents).
> 
> Hmm, could post a message to it and hope for a response - syn/ack or something

I'll test in polyfill land. I suspect the setup and potential races will change
when I add support for loading files.

https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/desi...
elements/designer-stage/designer-stage.html:143: }, '*');
On 2015/02/06 20:29:49, imac wrote:
> On 2015/02/05 22:15:45, justinfagnani wrote:
> > On 2015/02/05 01:54:06, imac wrote:
> > > Might be good to use an actual origin.
> > 
> > I'm not sure what origin to put, since a sandboxed iframe get a unique
origin.
> > The other direction maybe. I'm unsure how these messages could be
intercepted
> > though, since I create and have a reference to the actual iframe.
> > 
> > >What if an element `window.location`s on you?
> > 
> > I don't follow. Any 3rd party element is in the sandboxed iframe and doesn't
> > have navigation capability.
> 
> Oh, sandboxed iframes prevent navigation? Neat!

And popups, pointer-locks and a few other things... :)

https://codereview.chromium.org/881243003/diff/1/elements/designer-stage/desi...
elements/designer-stage/designer-stage.html:151: message_type: 'selectElement',
On 2015/02/06 20:29:49, imac wrote:
> On 2015/02/05 22:15:45, justinfagnani wrote:
> > On 2015/02/05 01:54:07, imac wrote:
> > > IMO you should do the dreaded ##ms debounce here, otherwise every time
> someone
> > > clicks the element is going to briefly select.
> > > 
> > > Aka, have selection begin after 300ms, OR the mouse moved 10px or so.
> > 
> > What wrong with selecting on every click?
> 
> That works too! I was expecting the selection visuals to be different from
> dragging

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698