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 1650243004: [DevTools] Option to show device frames in emulation mode (Closed)

Created:
4 years, 10 months ago by mmccoy
Modified:
4 years, 8 months ago
Reviewers:
dgozman, samli
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman, samli, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Initial implementation for an overflow option for displaying a device art outline in emulation mode. This patch implements the initial view logic and exposed overflow UI to toggle device art for all flagship/default device profiles _except_ Samsung Galaxy S5 (pending assets). BUG=411892 Committed: https://crrev.com/d1a7ca28d7d40c3fa23568249d14dc378b1ecc9c Cr-Commit-Position: refs/heads/master@{#388278}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Positioning and context menu fixes, addressing review comments #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : Scaling insets #

Patch Set 5 : Allow top inset for device frame when there is one, add transition for revealing outline #

Patch Set 6 : Use new "in-house" vector assets, merge and polish #

Patch Set 7 : Merge changes from samli patch, Moarrrr devices. #

Patch Set 8 : Trimming some dead code #

Total comments: 23

Patch Set 9 : Cleanup, addressing dgozman comments #

Total comments: 6

Patch Set 10 : Code cleaup, remove unused code and cl comments #

Total comments: 6

Patch Set 11 : Place device frame art options behind experiment #

Total comments: 9

Patch Set 12 : Disallow rulers and device frame to be show simultaneously #

Total comments: 11

Patch Set 13 : Remove reference to maxLength attribute #

Patch Set 14 : Don't toggle settings in toolbar automatically, instead don't show rulers if device outline is enab… #

Total comments: 2

Patch Set 15 : Remove unused code #

Patch Set 16 : Add device frame SVG assets to devtools gypi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M third_party/WebKit/Source/devtools/devtools.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (10 generated)
dgozman
The direction is good. Keep going. https://codereview.chromium.org/1650243004/diff/1/third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json File third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json (right): https://codereview.chromium.org/1650243004/diff/1/third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json#newcode311 third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json:311: "insets" : { ...
4 years, 10 months ago (2016-02-01 17:18:28 UTC) #5
mmccoy
On 2016/02/01 at 17:18:28, dgozman wrote: > The direction is good. Keep going. > > ...
4 years, 10 months ago (2016-02-09 20:05:28 UTC) #6
dgozman
Now that this starts working, could you please attach a screenshot of how it looks? ...
4 years, 10 months ago (2016-02-09 21:15:10 UTC) #7
mmccoy
Thanks again, here's a screenshot in current form: https://x20web.corp.google.com/users/mm/mmccoy/ss/device-mode-frame-demo.png Still working on additional top inset ...
4 years, 10 months ago (2016-02-10 20:06:34 UTC) #8
mmccoy
Made some other adjustments based no your comments, made affordance for inset top when there ...
4 years, 10 months ago (2016-02-10 21:58:10 UTC) #9
dgozman
On 2016/02/10 21:58:10, mmccoy wrote: > Made some other adjustments based no your comments, made ...
4 years, 10 months ago (2016-02-10 22:50:45 UTC) #10
mmccoy
On 2016/02/10 at 22:50:45, dgozman wrote: > On 2016/02/10 21:58:10, mmccoy wrote: > > Made ...
4 years, 10 months ago (2016-02-11 15:18:11 UTC) #11
dgozman
On 2016/02/11 15:18:11, mmccoy wrote: > On 2016/02/10 at 22:50:45, dgozman wrote: > > On ...
4 years, 10 months ago (2016-02-11 18:23:47 UTC) #12
mmccoy
On 2016/02/11 at 18:23:47, dgozman wrote: > On 2016/02/11 15:18:11, mmccoy wrote: > > On ...
4 years, 10 months ago (2016-02-11 20:37:05 UTC) #13
samli
On 2016/02/11 at 20:37:05, mmccoy wrote: > On 2016/02/11 at 18:23:47, dgozman wrote: > > ...
4 years, 10 months ago (2016-02-12 01:20:37 UTC) #14
paulirish
> I used the facebook device images but I don't think we have permission to ...
4 years, 10 months ago (2016-02-16 18:50:12 UTC) #15
paulirish
Managed to apply the patch locally and try it out. Screenshot: http://i.imgur.com/E3st0Uu.png The licensing bits ...
4 years, 10 months ago (2016-02-17 22:54:14 UTC) #16
blink-reviews
Thanks for digging into the licensing questions Paul, this patch needs a little more spit ...
4 years, 10 months ago (2016-02-18 14:35:50 UTC) #17
chromium-reviews
Thanks for digging into the licensing questions Paul, this patch needs a little more spit ...
4 years, 10 months ago (2016-02-18 14:35:50 UTC) #18
mmccoy
@paulirish/@dgozman Can you guys have another look? I'm now using "in-house" SVGs made by Chris ...
4 years, 9 months ago (2016-03-14 21:16:21 UTC) #19
paulirish
On 2016/03/14 at 21:16:21, mmccoy wrote: > @paulirish/@dgozman > > Can you guys have another ...
4 years, 9 months ago (2016-03-14 23:45:59 UTC) #22
samli
You probably want to take the code in https://codereview.chromium.org/1688113002 since I dealt with cases like ...
4 years, 9 months ago (2016-03-14 23:50:27 UTC) #23
mmccoy
Hi all, please TAL; * Merged changes from Sam's patch * Added more device profiles, ...
4 years, 9 months ago (2016-03-15 18:53:55 UTC) #24
paulirish
Nice, this looks good from a product side.
4 years, 9 months ago (2016-03-16 01:28:14 UTC) #26
dgozman
This looks really good! A couple of comments, and we are done. https://codereview.chromium.org/1650243004/diff/140001/third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json File third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json ...
4 years, 9 months ago (2016-03-21 21:08:39 UTC) #27
mmccoy
https://codereview.chromium.org/1650243004/diff/140001/third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json File third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json (right): https://codereview.chromium.org/1650243004/diff/140001/third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json#newcode425 third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json:425: "insets" : { "left": 94, "top": 48, "right": 97, ...
4 years, 9 months ago (2016-03-21 22:03:05 UTC) #28
dgozman
https://codereview.chromium.org/1650243004/diff/140001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js (right): https://codereview.chromium.org/1650243004/diff/140001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js#newcode274 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js:274: contextMenu.appendCheckboxItem(WebInspector.UIString("Show device frame"), deviceOutlineSetting.set.bind(deviceOutlineSetting, !deviceOutlineSetting.get()), deviceOutlineSetting.get() && this._model.outlineImage() !== ...
4 years, 9 months ago (2016-03-22 20:30:50 UTC) #29
mmccoy
On 2016/03/22 at 20:30:50, dgozman wrote: > https://codereview.chromium.org/1650243004/diff/140001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js > File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js (right): > > https://codereview.chromium.org/1650243004/diff/140001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js#newcode274 ...
4 years, 8 months ago (2016-03-28 13:55:06 UTC) #30
mmccoy
https://codereview.chromium.org/1650243004/diff/160001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js (right): https://codereview.chromium.org/1650243004/diff/160001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js#newcode442 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js:442: this._applyDeviceMetrics(new Size(orientation.width, orientation.height), this._mode.insets, outline || new Insets(0, 0, ...
4 years, 8 months ago (2016-03-28 13:55:18 UTC) #31
mmccoy
pingsies!
4 years, 8 months ago (2016-03-31 15:26:00 UTC) #32
dgozman
Sorry for delay, slipped through reviews. https://codereview.chromium.org/1650243004/diff/180001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js (right): https://codereview.chromium.org/1650243004/diff/180001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js#newcode274 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js:274: contextMenu.appendCheckboxItem(WebInspector.UIString("Show device frame"), ...
4 years, 8 months ago (2016-04-07 00:54:43 UTC) #33
samli
https://codereview.chromium.org/1650243004/diff/180001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js (right): https://codereview.chromium.org/1650243004/diff/180001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js#newcode408 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js:408: render: function(offset, scale, maxLength) On 2016/04/07 at 00:54:43, dgozman ...
4 years, 8 months ago (2016-04-07 01:09:55 UTC) #35
mmccoy
On 2016/04/07 01:09:55, samli wrote: > https://codereview.chromium.org/1650243004/diff/180001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js > File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js > (right): > > https://codereview.chromium.org/1650243004/diff/180001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js#newcode408 ...
4 years, 8 months ago (2016-04-11 14:50:05 UTC) #36
mmccoy
https://codereview.chromium.org/1650243004/diff/180001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js (right): https://codereview.chromium.org/1650243004/diff/180001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js#newcode274 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js:274: contextMenu.appendCheckboxItem(WebInspector.UIString("Show device frame"), deviceOutlineSetting.set.bind(deviceOutlineSetting, !deviceOutlineSetting.get()), deviceOutlineSetting.get() && this._model.outlineImage() !== ...
4 years, 8 months ago (2016-04-11 14:51:24 UTC) #37
dgozman
Last round of comments. https://codereview.chromium.org/1650243004/diff/200001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js (right): https://codereview.chromium.org/1650243004/diff/200001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js#newcode238 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js:238: return (this._device && this._mode) ? ...
4 years, 8 months ago (2016-04-11 17:24:53 UTC) #38
mmccoy
I was able to successfully test the experiment by manually enabling it in code with ...
4 years, 8 months ago (2016-04-13 22:36:01 UTC) #39
dgozman
https://codereview.chromium.org/1650243004/diff/220001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js (right): https://codereview.chromium.org/1650243004/diff/220001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js#newcode275 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js:275: // contextMenu.appendCheckboxItem(WebInspector.UIString("Show device frame"), this._deviceOutlineSetting.set.bind(this._deviceOutlineSetting, !this._deviceOutlineSetting.get()), this._deviceOutlineSetting.get() && this._model.outlineImage() ...
4 years, 8 months ago (2016-04-13 22:52:06 UTC) #40
mmccoy
On 2016/04/13 at 22:52:06, dgozman wrote: > https://codereview.chromium.org/1650243004/diff/220001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js > File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js (right): > > https://codereview.chromium.org/1650243004/diff/220001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js#newcode275 ...
4 years, 8 months ago (2016-04-14 18:57:40 UTC) #41
mmccoy
On 2016/04/14 at 18:57:40, mmccoy wrote: > On 2016/04/13 at 22:52:06, dgozman wrote: > > ...
4 years, 8 months ago (2016-04-14 20:52:34 UTC) #42
dgozman
> @dgozman > Is this what you mean in terms of implementation of disallowing frames ...
4 years, 8 months ago (2016-04-15 00:12:10 UTC) #43
pbakaus
ping! what's the next step here?
4 years, 8 months ago (2016-04-19 00:31:39 UTC) #44
dgozman
On 2016/04/19 00:31:39, pbakaus wrote: > ping! what's the next step here? I'm waiting for ...
4 years, 8 months ago (2016-04-19 00:57:18 UTC) #45
mmccoy
On 2016/04/19 at 00:57:18, dgozman wrote: > On 2016/04/19 00:31:39, pbakaus wrote: > > ping! ...
4 years, 8 months ago (2016-04-19 14:41:09 UTC) #46
mmccoy
https://codereview.chromium.org/1650243004/diff/220001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js (right): https://codereview.chromium.org/1650243004/diff/220001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js#newcode275 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js:275: // contextMenu.appendCheckboxItem(WebInspector.UIString("Show device frame"), this._deviceOutlineSetting.set.bind(this._deviceOutlineSetting, !this._deviceOutlineSetting.get()), this._deviceOutlineSetting.get() && this._model.outlineImage() ...
4 years, 8 months ago (2016-04-19 14:42:19 UTC) #47
dgozman
https://codereview.chromium.org/1650243004/diff/260001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js (right): https://codereview.chromium.org/1650243004/diff/260001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js#newcode291 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js:291: var showingDevice = this._model.type() === WebInspector.DeviceModeModel.Type.Device; This is still ...
4 years, 8 months ago (2016-04-19 17:14:42 UTC) #48
mmccoy
https://codereview.chromium.org/1650243004/diff/260001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js File third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js (right): https://codereview.chromium.org/1650243004/diff/260001/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js#newcode291 third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js:291: var showingDevice = this._model.type() === WebInspector.DeviceModeModel.Type.Device; On 2016/04/19 at ...
4 years, 8 months ago (2016-04-19 17:21:57 UTC) #49
dgozman
lgtm
4 years, 8 months ago (2016-04-19 17:29:12 UTC) #50
mmccoy
On 2016/04/19 at 17:29:12, dgozman wrote: > lgtm Thanks a ton Dmitry! One last question ...
4 years, 8 months ago (2016-04-19 17:40:48 UTC) #51
dgozman
On 2016/04/19 17:40:48, mmccoy wrote: > On 2016/04/19 at 17:29:12, dgozman wrote: > > lgtm ...
4 years, 8 months ago (2016-04-19 17:42:46 UTC) #52
mmccoy
On 2016/04/19 at 17:42:46, dgozman wrote: > On 2016/04/19 17:40:48, mmccoy wrote: > > On ...
4 years, 8 months ago (2016-04-19 17:43:16 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1650243004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1650243004/280001
4 years, 8 months ago (2016-04-19 17:53:40 UTC) #55
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 8 months ago (2016-04-19 19:33:02 UTC) #56
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:15:08 UTC) #58
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/d1a7ca28d7d40c3fa23568249d14dc378b1ecc9c
Cr-Commit-Position: refs/heads/master@{#388278}

Powered by Google App Engine
This is Rietveld 408576698