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

Issue 108213012: [DevTools] Remove dock side knowledge from browser. (Closed)

Created:
6 years, 12 months ago by dgozman
Modified:
6 years, 11 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, vsevik, jennb, tfarina, jianli, yoshiki+watch_chromium.org, Dmitry Titov, yurys, paulirish+reviews_chromium.org, dcheng, devtools-reviews_chromium.org, chromium-apps-reviews_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[DevTools] Remove dock side knowledge from browser. After this change, DevToolsWindow waits for frontend to decide on dock side, and only then shows it either docked or undocked. This also cleans up DevToolsWindow public API, so clients don't use test function, and test clients are explicit with their docking expectations. Note: follow up patch on frontend side is require to switch from SetDockSide to SetIsDocked call. BUG=318751 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245308

Patch Set 1 #

Patch Set 2 : Minor fix #

Patch Set 3 : Dispatcher #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Fixed DCHECK and compile #

Patch Set 6 : More test magic #

Total comments: 22

Patch Set 7 : Update #

Patch Set 8 : Fixed bots #

Patch Set 9 : Comments #

Patch Set 10 : is_docked=true by defaul #

Patch Set 11 : Mac tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -312 lines) Patch
M chrome/browser/devtools/devtools_embedder_message_dispatcher.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/devtools/devtools_embedder_message_dispatcher.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/devtools/devtools_sanity_browsertest.cc View 1 2 3 4 5 6 22 chunks +33 lines, -34 lines 0 comments Download
M chrome/browser/devtools/devtools_toggle_action.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_toggle_action.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/devtools/devtools_window.h View 1 2 3 4 5 6 7 8 10 chunks +67 lines, -41 lines 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 3 4 5 6 7 8 9 10 33 chunks +173 lines, -191 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/dev_tools_controller_browsertest.mm View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_error_handler.cc View 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dgozman
Pavel, Take a look at this change on Chrome side. It works without Blink-side right ...
6 years, 12 months ago (2013-12-27 14:27:55 UTC) #1
dgozman
The load process is: Create -> ScheduleShow -> OnDocumentLoad -> SetDockSide -> Show -> DoAction.
6 years, 12 months ago (2013-12-27 14:29:30 UTC) #2
dgozman
This looks like something we can land. I've tested with M34 and M31 frontends. https://codereview.chromium.org/108213012/diff/100001/chrome/browser/devtools/devtools_window.cc ...
6 years, 11 months ago (2013-12-30 13:06:15 UTC) #3
pfeldman
https://codereview.chromium.org/108213012/diff/270001/chrome/browser/devtools/devtools_embedder_message_dispatcher.h File chrome/browser/devtools/devtools_embedder_message_dispatcher.h (right): https://codereview.chromium.org/108213012/diff/270001/chrome/browser/devtools/devtools_embedder_message_dispatcher.h#newcode34 chrome/browser/devtools/devtools_embedder_message_dispatcher.h:34: virtual void SetDockSide(const std::string& side) = 0; Please comment ...
6 years, 11 months ago (2014-01-09 12:52:01 UTC) #4
pfeldman
https://codereview.chromium.org/108213012/diff/270001/chrome/browser/devtools/devtools_window.cc File chrome/browser/devtools/devtools_window.cc (right): https://codereview.chromium.org/108213012/diff/270001/chrome/browser/devtools/devtools_window.cc#newcode937 chrome/browser/devtools/devtools_window.cc:937: } if load_state_mask_ != IsLoaded, you should call HandleBeforeUnload(web_contents_, ...
6 years, 11 months ago (2014-01-09 13:02:02 UTC) #5
dgozman
PTAL. I've additionally tested with long-loading DevTools. https://codereview.chromium.org/108213012/diff/270001/chrome/browser/devtools/devtools_embedder_message_dispatcher.h File chrome/browser/devtools/devtools_embedder_message_dispatcher.h (right): https://codereview.chromium.org/108213012/diff/270001/chrome/browser/devtools/devtools_embedder_message_dispatcher.h#newcode34 chrome/browser/devtools/devtools_embedder_message_dispatcher.h:34: virtual void ...
6 years, 11 months ago (2014-01-14 15:26:16 UTC) #6
dgozman
pfeldman, I've added comments, as we discussed. Please take a look. jochen, please make an ...
6 years, 11 months ago (2014-01-14 19:14:31 UTC) #7
Tom Sepez
devtools_embedder_dispatcher LGTM.
6 years, 11 months ago (2014-01-14 19:17:44 UTC) #8
pfeldman
lgtm
6 years, 11 months ago (2014-01-15 11:53:04 UTC) #9
jochen (gone - plz use gerrit)
rslgtm
6 years, 11 months ago (2014-01-15 13:23:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/108213012/780001
6 years, 11 months ago (2014-01-16 13:00:41 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=247279
6 years, 11 months ago (2014-01-16 14:21:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/108213012/780001
6 years, 11 months ago (2014-01-16 14:35:58 UTC) #13
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 20:37:46 UTC) #14
Message was sent while issue was closed.
Change committed as 245308

Powered by Google App Engine
This is Rietveld 408576698