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

Issue 2381183002: mash: Fix shelf window property use in Chrome. (Closed)

Created:
4 years, 2 months ago by msw
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, James Cook, sky
CC:
chromium-reviews, rjkroege, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Fix shelf window property use in Chrome. Support the ShelfID window property in mash. (ShelfWindowWatcher uses this to find existing items) Allow WM clients to set ShelfItemType and ShelfIconResourceId. Define aura property keys in a shared location for chrome and ash. Notify WmWindowObserver of certain white-listed property changes. Add WmWindowProperty::INVALID_PROPERTY for key translation checks. Add property utility functions to c/b/ui/ash for aura/ui windows. Use SettingsWindowObserver in ChromeLauncherController (cash&mash). Use separate aura/ui window trackers to watch for name changes. (Can't use ash::WmWindow in Chrome... depends on ash internals) Early return from Window::SetTitle if the values match. TODO: Use ash/mus/property_util.h (move some to ash/public/cpp)? TODO: Automatically propagate some props with an observer? BUG=634150 TEST=chrome --mash shows task manager and settings shelf icons. R=jamescook@chromium.org,sky@chromium.org,tsepez@chromium.org, Committed: https://crrev.com/745fe06919e14e926d3464f64bc2f0d91b00b326 Cr-Commit-Position: refs/heads/master@{#422588}

Patch Set 1 #

Patch Set 2 : Split out widget_property_helper; cleanup. #

Patch Set 3 : Use util functions; support shelf id; cleanup. #

Patch Set 4 : Sync and rebase; add comments. #

Total comments: 26

Patch Set 5 : Address comments, cleanup, and try to fix build issues. #

Total comments: 4

Patch Set 6 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -72 lines) Patch
M ash/aura/wm_window_aura.cc View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M ash/common/wm_window_property.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.cc View 1 2 3 4 chunks +29 lines, -6 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/window_properties.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M ash/wm/window_properties.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_status_monitor.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_status_monitor.cc View 4 chunks +0 lines, -46 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/launcher/settings_window_observer.h View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/launcher/settings_window_observer.cc View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/property_util.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/property_util.cc View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 1 2 3 4 2 chunks +12 lines, -12 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/window.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (34 generated)
msw
Hey James, please take a look; thanks!
4 years, 2 months ago (2016-09-30 22:33:43 UTC) #4
James Cook
Wow, this looks like it was tricky to figure out. https://codereview.chromium.org/2381183002/diff/60001/ash/mus/window_manager.cc File ash/mus/window_manager.cc (right): https://codereview.chromium.org/2381183002/diff/60001/ash/mus/window_manager.cc#newcode304 ...
4 years, 2 months ago (2016-10-01 00:16:21 UTC) #13
msw
Hey Scott, PTAL at ui/aura/window.cc (optionally more). Hey Tom, PTAL at window_manager.mojom. Hey James, please ...
4 years, 2 months ago (2016-10-03 19:14:24 UTC) #31
James Cook
LGTM https://codereview.chromium.org/2381183002/diff/160001/chrome/browser/ui/ash/launcher/settings_window_observer.h File chrome/browser/ui/ash/launcher/settings_window_observer.h (right): https://codereview.chromium.org/2381183002/diff/160001/chrome/browser/ui/ash/launcher/settings_window_observer.h#newcode24 chrome/browser/ui/ash/launcher/settings_window_observer.h:24: // Window trackers used to rename the Settings ...
4 years, 2 months ago (2016-10-03 20:38:12 UTC) #34
sky
LGTM
4 years, 2 months ago (2016-10-03 21:50:00 UTC) #35
Tom Sepez
mojom lgtm
4 years, 2 months ago (2016-10-03 21:55:18 UTC) #36
msw
https://codereview.chromium.org/2381183002/diff/160001/chrome/browser/ui/ash/launcher/settings_window_observer.h File chrome/browser/ui/ash/launcher/settings_window_observer.h (right): https://codereview.chromium.org/2381183002/diff/160001/chrome/browser/ui/ash/launcher/settings_window_observer.h#newcode24 chrome/browser/ui/ash/launcher/settings_window_observer.h:24: // Window trackers used to rename the Settings window ...
4 years, 2 months ago (2016-10-03 22:02:25 UTC) #37
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/2381183002/180001
4 years, 2 months ago (2016-10-03 22:03:12 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 2 months ago (2016-10-03 23:09:38 UTC) #42
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 23:11:19 UTC) #44
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/745fe06919e14e926d3464f64bc2f0d91b00b326
Cr-Commit-Position: refs/heads/master@{#422588}

Powered by Google App Engine
This is Rietveld 408576698