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

Issue 2441133002: mash: Introduce ShowWebDialogWithContainer for webui dialogs (Closed)

Created:
4 years, 2 months ago by James Cook
Modified:
4 years, 2 months ago
Reviewers:
stevenjb, sky
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, sadrul, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Introduce ShowWebDialogWithContainer for webui dialogs Several webui dialogs spawned by the ash system tray can be shown either as children of the general settings webui window or by themselves at the login screen. In the latter case we need to place them in the right ash window container. Under mash, chrome is not aware of the ash window hierarchy, so it needs to use a container ID rather than a native window parent. Wire up the "set time" dialog as an example. BUG=657021 TEST=manual, spawn set time dialog from settings and from lock screen TBR=stevenjb@chromium.org for function rename touching c/b/ui/webui/chromeos Committed: https://crrev.com/e36a90e2b15864b46c1d4ab862fd38590877b8d0 Cr-Commit-Position: refs/heads/master@{#426953}

Patch Set 1 #

Total comments: 2

Patch Set 2 : private constructor #

Total comments: 8

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -11 lines) Patch
M chrome/browser/chromeos/set_time_dialog.h View 1 2 1 chunk +12 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/set_time_dialog.cc View 1 2 3 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/browser/ui/ash/web_dialog_util.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/web_dialog_util.cc View 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/date_time_options_handler.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
James Cook
sky, please take a look. https://codereview.chromium.org/2441133002/diff/1/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc File chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (right): https://codereview.chromium.org/2441133002/diff/1/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc#newcode354 chrome/browser/ui/ash/system_tray_delegate_chromeos.cc:354: SystemTrayClient::GetDialogParentContainerId()); This is the ...
4 years, 2 months ago (2016-10-21 21:21:49 UTC) #2
sky
LGTM https://codereview.chromium.org/2441133002/diff/20001/chrome/browser/chromeos/set_time_dialog.cc File chrome/browser/chromeos/set_time_dialog.cc (right): https://codereview.chromium.org/2441133002/diff/20001/chrome/browser/chromeos/set_time_dialog.cc#newcode34 chrome/browser/chromeos/set_time_dialog.cc:34: DCHECK(container_id != ash::kShellWindowId_Invalid); DCHECK_NE https://codereview.chromium.org/2441133002/diff/20001/chrome/browser/chromeos/set_time_dialog.h File chrome/browser/chromeos/set_time_dialog.h (right): ...
4 years, 2 months ago (2016-10-21 23:11:15 UTC) #3
sky
https://codereview.chromium.org/2441133002/diff/20001/chrome/browser/ui/ash/web_dialog_util.cc File chrome/browser/ui/ash/web_dialog_util.cc (right): https://codereview.chromium.org/2441133002/diff/20001/chrome/browser/ui/ash/web_dialog_util.cc#newcode39 chrome/browser/ui/ash/web_dialog_util.cc:39: mojo::ConvertTo<std::vector<uint8_t>>(container_id); On 2016/10/21 23:11:15, sky wrote: > uint8_t -> ...
4 years, 2 months ago (2016-10-21 23:22:59 UTC) #4
James Cook
https://codereview.chromium.org/2441133002/diff/20001/chrome/browser/chromeos/set_time_dialog.cc File chrome/browser/chromeos/set_time_dialog.cc (right): https://codereview.chromium.org/2441133002/diff/20001/chrome/browser/chromeos/set_time_dialog.cc#newcode34 chrome/browser/chromeos/set_time_dialog.cc:34: DCHECK(container_id != ash::kShellWindowId_Invalid); On 2016/10/21 23:11:15, sky wrote: > ...
4 years, 2 months ago (2016-10-21 23:28:13 UTC) #5
James Cook
TBR=stevenjb@chromium.org for function rename touching 1 line in c/b/ui/webui/chromeos
4 years, 2 months ago (2016-10-21 23:30:10 UTC) #8
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/2441133002/40001
4 years, 2 months ago (2016-10-21 23:31:04 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-22 02:22:33 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-10-22 02:26:16 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e36a90e2b15864b46c1d4ab862fd38590877b8d0
Cr-Commit-Position: refs/heads/master@{#426953}

Powered by Google App Engine
This is Rietveld 408576698