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

Issue 2915223002: mash: Fix mash app shelf items; encapsulate ash property setup. (Closed)

Created:
3 years, 6 months ago by msw
Modified:
3 years, 6 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, kalyank, sadrul, tfarina, James Cook
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ABANDONED IN FAVOR OF https://codereview.chromium.org/2918223002 mash: Fix mash app shelf items; encapsulate ash property setup. Add ash::RegisterWindowPropertiesForTransportAndMirroring() (allows mus clients to setup window properties for transport) Call this from Chrome, QuickLaunch, other mash apps. Set QuickLaunch, etc. properties to show on the shelf. note: 'window_type_launcher' & 'task_viewer' don't launch on ToT. Make ShowExamplesWindow return a widget for client use. OPTIONAL: Use the new function in ash::WindowManager's ctor? TODO: Fix QuickLaunch ShelfButtons ink-drop crash on 2nd click. BUG=557406 TEST=chrome --mash shows a shelf item for QuickLaunch. R=sky@chromium.org

Patch Set 1 #

Patch Set 2 : Similar changes for other mash apps. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -50 lines) Patch
M ash/public/cpp/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/cpp/window_properties.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ash/public/cpp/window_properties.cc View 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 3 chunks +1 line, -29 lines 2 comments Download
M mash/catalog_viewer/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M mash/catalog_viewer/catalog_viewer.cc View 1 4 chunks +12 lines, -3 lines 0 comments Download
M mash/example/views_examples/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M mash/example/views_examples/views_examples.cc View 1 4 chunks +12 lines, -1 line 0 comments Download
M mash/example/window_type_launcher/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 3 chunks +12 lines, -4 lines 1 comment Download
M mash/quick_launch/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M mash/quick_launch/quick_launch.cc View 1 4 chunks +12 lines, -6 lines 0 comments Download
M mash/task_viewer/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M mash/task_viewer/task_viewer.cc View 1 4 chunks +12 lines, -3 lines 1 comment Download
M ui/views/examples/examples_window.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/examples/examples_window.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
msw
Hey Scott, please take a look; thanks! https://codereview.chromium.org/2915223002/diff/20001/mash/example/window_type_launcher/window_type_launcher.cc File mash/example/window_type_launcher/window_type_launcher.cc (right): https://codereview.chromium.org/2915223002/diff/20001/mash/example/window_type_launcher/window_type_launcher.cc#newcode484 mash/example/window_type_launcher/window_type_launcher.cc:484: const ash::ShelfID ...
3 years, 6 months ago (2017-06-01 23:35:41 UTC) #4
sky
https://codereview.chromium.org/2915223002/diff/20001/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc File chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc (left): https://codereview.chromium.org/2915223002/diff/20001/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc#oldcode68 chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc:68: ash::kShelfIDKey, ui::mojom::WindowManager::kShelfID_Property); Ideally clients would not have to do ...
3 years, 6 months ago (2017-06-02 13:36:39 UTC) #8
msw
https://codereview.chromium.org/2915223002/diff/20001/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc File chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc (left): https://codereview.chromium.org/2915223002/diff/20001/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc#oldcode68 chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc:68: ash::kShelfIDKey, ui::mojom::WindowManager::kShelfID_Property); On 2017/06/02 13:36:39, sky wrote: > Ideally ...
3 years, 6 months ago (2017-06-02 15:25:15 UTC) #9
sky
I like the idea of ignoring windows with transient parents. A variation on this is ...
3 years, 6 months ago (2017-06-02 17:24:47 UTC) #11
msw
3 years, 6 months ago (2017-06-02 23:15:24 UTC) #13
Message was sent while issue was closed.
On 2017/06/02 17:24:47, sky wrote:
> I like the idea of ignoring windows with transient parents. A variation on
this
> is to have a property that indicates whether an item is shown by the shelf
> (property is defined in aura_constants and window_manager.mojom). Default is
> true, but views code sets the property to false if the window has a transient
> parent. This way we could toggle the property to true if we have a case where
> there is a transient window *and* we wanted a shelf item. I'm not sure we
> actually have that though. I'm not sure we actually need complexity though.
> 
> Also note, ash::wm::WindowState has a property as to whether the window is
shown
> in the state. The status bubble in views explicitly sets this to false. The
> status bubble has a transient parent, so if we made it so transient parents
> aren't shown in the shelf we would no longer need to special case status
bubble
> code in chrome.
> 
> +oshima, can you think of any cases where we have a window with a transient
> parent *and* want it shown in the shelf?

I followed your suggestion in https://codereview.chromium.org/2918223002
This CL is unnecessary/abandoned, but it might still make sense to extract
ash::RegisterWindowPropertiesForTransportAndMirroring().

Powered by Google App Engine
This is Rietveld 408576698