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

Issue 2756623002: DevTools: extract bindings from ShellDevToolsFrontend (Closed)

Created:
3 years, 9 months ago by chenwilliam
Modified:
3 years, 9 months ago
Reviewers:
dgozman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, jam, darin-cc_chromium.org, pfeldman, devtools-reviews_chromium.org, einbinder+watch-test-runner_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: extract bindings from ShellDevToolsFrontend Our goal is to enable running a subset of new devtools tests so that devtools is the main window under test and the inspected page is the secondary window. However, our existing devtools tests currently have the inspected page as the main window which then triggers opening devtools. Since we'll need to run both our existing and new type of tests, we want to create a way of flexibly binding the devtools and inspected windows. After this CL lands: * Implement the new type of devtools test where devtools is the main window * Convert existing tests into the new type of tests * Once everything has been converted, clean up test infra code for the old type of tests BUG=667560 Review-Url: https://codereview.chromium.org/2756623002 Cr-Commit-Position: refs/heads/master@{#459337} Committed: https://chromium.googlesource.com/chromium/src/+/fed5bda99ca38b4e2575614c87e858f51b2a8194

Patch Set 1 #

Patch Set 2 : fixup #

Total comments: 20

Patch Set 3 : cl fb #

Patch Set 4 : more fixes #

Patch Set 5 : fixup #

Total comments: 16

Patch Set 6 : cl fb #

Patch Set 7 : fixup #

Total comments: 12

Patch Set 8 : cl fb #

Patch Set 9 : fixup #

Total comments: 6

Patch Set 10 : fixup #

Patch Set 11 : fix #

Patch Set 12 : don't do work in ctor #

Patch Set 13 : fu #

Patch Set 14 : fix memory leak #

Patch Set 15 : fixup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -825 lines) Patch
M content/shell/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.h View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +21 lines, -21 lines 0 comments Download
A + content/shell/browser/layout_test/layout_test_devtools_bindings.h View 1 2 3 4 5 6 8 9 10 11 3 chunks +12 lines, -19 lines 0 comments Download
A + content/shell/browser/layout_test/layout_test_devtools_bindings.cc View 1 2 3 4 5 6 8 9 10 11 12 6 chunks +27 lines, -50 lines 0 comments Download
D content/shell/browser/layout_test/layout_test_devtools_frontend.h View 1 chunk +0 lines, -54 lines 0 comments Download
D content/shell/browser/layout_test/layout_test_devtools_frontend.cc View 1 chunk +0 lines, -158 lines 0 comments Download
M content/shell/browser/shell.cc View 1 chunk +1 line, -1 line 0 comments Download
A + content/shell/browser/shell_devtools_bindings.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +22 lines, -23 lines 0 comments Download
A + content/shell/browser/shell_devtools_bindings.cc View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +54 lines, -100 lines 0 comments Download
M content/shell/browser/shell_devtools_frontend.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -55 lines 0 comments Download
M content/shell/browser/shell_devtools_frontend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +14 lines, -339 lines 0 comments Download

Messages

Total messages: 42 (24 generated)
chenwilliam
ptal :)
3 years, 9 months ago (2017-03-16 18:31:52 UTC) #3
dgozman
Let's have a plan of action and motivation in CL description. https://codereview.chromium.org/2756623002/diff/20001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): ...
3 years, 9 months ago (2017-03-16 21:38:07 UTC) #4
chenwilliam
ptal. https://codereview.chromium.org/2756623002/diff/20001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2756623002/diff/20001/content/shell/browser/layout_test/blink_test_controller.cc#newcode499 content/shell/browser/layout_test/blink_test_controller.cc:499: if (secondary_window_.get() == devtools_window_) On 2017/03/16 21:38:07, dgozman ...
3 years, 9 months ago (2017-03-17 22:08:27 UTC) #7
dgozman
Looks pretty good! https://codereview.chromium.org/2756623002/diff/80001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2756623002/diff/80001/content/shell/browser/layout_test/blink_test_controller.cc#newcode499 content/shell/browser/layout_test/blink_test_controller.cc:499: devtools_window_ = nullptr; Reset devtools_bindings_. https://codereview.chromium.org/2756623002/diff/80001/content/shell/browser/layout_test/blink_test_controller.cc#newcode669 ...
3 years, 9 months ago (2017-03-17 22:44:14 UTC) #8
chenwilliam
please take another look, thank you. https://codereview.chromium.org/2756623002/diff/80001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2756623002/diff/80001/content/shell/browser/layout_test/blink_test_controller.cc#newcode499 content/shell/browser/layout_test/blink_test_controller.cc:499: devtools_window_ = nullptr; ...
3 years, 9 months ago (2017-03-20 21:32:21 UTC) #9
dgozman
I think we can simplify this a bit more, wdyt? https://codereview.chromium.org/2756623002/diff/120001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2756623002/diff/120001/content/shell/browser/layout_test/blink_test_controller.cc#newcode497 ...
3 years, 9 months ago (2017-03-20 22:40:23 UTC) #10
chenwilliam
ptal https://codereview.chromium.org/2756623002/diff/120001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2756623002/diff/120001/content/shell/browser/layout_test/blink_test_controller.cc#newcode497 content/shell/browser/layout_test/blink_test_controller.cc:497: devtools_bindings_.reset(); On 2017/03/20 22:40:22, dgozman wrote: > First ...
3 years, 9 months ago (2017-03-21 18:17:29 UTC) #11
dgozman
lgtm https://codereview.chromium.org/2756623002/diff/160001/content/shell/browser/shell_devtools_bindings.cc File content/shell/browser/shell_devtools_bindings.cc (left): https://codereview.chromium.org/2756623002/diff/160001/content/shell/browser/shell_devtools_bindings.cc#oldcode167 content/shell/browser/shell_devtools_bindings.cc:167: void ShellDevToolsFrontend::RenderViewCreated( We still need this in case ...
3 years, 9 months ago (2017-03-21 20:57:35 UTC) #12
chenwilliam
https://codereview.chromium.org/2756623002/diff/160001/content/shell/browser/shell_devtools_bindings.cc File content/shell/browser/shell_devtools_bindings.cc (left): https://codereview.chromium.org/2756623002/diff/160001/content/shell/browser/shell_devtools_bindings.cc#oldcode167 content/shell/browser/shell_devtools_bindings.cc:167: void ShellDevToolsFrontend::RenderViewCreated( On 2017/03/21 20:57:35, dgozman wrote: > We ...
3 years, 9 months ago (2017-03-21 23:36:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2756623002/200001
3 years, 9 months ago (2017-03-21 23:37:18 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/411735)
3 years, 9 months ago (2017-03-22 00:37:34 UTC) #18
chenwilliam
I had to undo moving LoadDevTools work into constructor (e.g. similar to PS#7) because I ...
3 years, 9 months ago (2017-03-22 19:19:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2756623002/240001
3 years, 9 months ago (2017-03-22 19:20:33 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/333749)
3 years, 9 months ago (2017-03-22 21:50:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2756623002/240001
3 years, 9 months ago (2017-03-22 21:53:15 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/333982)
3 years, 9 months ago (2017-03-23 00:17:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2756623002/280001
3 years, 9 months ago (2017-03-24 01:55:02 UTC) #39
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 02:02:02 UTC) #42
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/fed5bda99ca38b4e2575614c87e8...

Powered by Google App Engine
This is Rietveld 408576698