|
Use mojo SystemTray interfaces for both mash and classic ash
The goal is to stop having to maintain separate SystemTrayDelegateMus and
SystemTrayDelegateChromeos implementations and eliminate the indirection
introduced by SystemTrayCommon.
* Always create the SystemTrayClient object in chrome, whether running ash
in-process or not
* Always allow code in //ash to bind to mojom::SystemTrayClient, even when ash
runs in-process
* Introduce WmShell::IsRunningInMash so ash can tell which mode its in
* Handle connecting to "exe:chrome" vs. "exe:content_browser" based on the
process mode
* Introduces SystemTrayController in ash, which wraps mojom::SystemTrayClient
* Peel two methods off the SystemTrayDelegate interface and changes them
to call into SystemTrayController and route over mojo
* Remove mojo usage from SystemTrayDelegateMus. Eventually it should go away
completely.
To keep this CL small it breaks a few system tray features when running under
mash (e.g. opening the general settings). This will get fixed in the next CL.
TODO: Remove SystemTrayCommon and move its functionality into SystemTrayClient
TODO: For methods like SystemTrayDelegate::ShowSettings, migrate callers to
use ash::SystemTrayController and always route over mojo.
BUG= 647412
TEST=manual, clicking on system tray date opens date settings, changing time
from 12 to 24 hour works, in both classic ash and mash
Committed: https://crrev.com/2a6b869d3921b816777679003d1df24f6c7b84fa
Cr-Commit-Position: refs/heads/master@{#422676}
Total comments: 5
Total comments: 56
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+350 lines, -274 lines) |
Patch |
 |
M |
ash/BUILD.gn
|
View
|
1
2
3
|
4 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/DEPS
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/aura/wm_shell_aura.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/aura/wm_shell_aura.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/common/mojo_interface_factory.h
|
View
|
1
2
3
4
5
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/common/mojo_interface_factory.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/common/shell_delegate.h
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/common/system/date/date_view.cc
|
View
|
1
2
3
4
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/common/system/tray/system_tray.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
ash/common/system/tray/system_tray_controller.h
|
View
|
1
2
3
4
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/common/system/tray/system_tray_controller.cc
|
View
|
1
2
3
4
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/common/system/tray/system_tray_delegate.h
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ash/common/system/tray/system_tray_delegate.cc
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ash/common/wm_shell.h
|
View
|
1
2
3
4
|
5 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/common/wm_shell.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/mus/bridge/wm_shell_mus.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/mus/bridge/wm_shell_mus.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/mus/shell_delegate_mus.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/mus/shell_delegate_mus.cc
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/mus/system_tray_delegate_mus.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -49 lines |
0 comments
|
Download
|
 |
M |
ash/mus/system_tray_delegate_mus.cc
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -120 lines |
0 comments
|
Download
|
 |
M |
ash/mus/window_manager_application.h
|
View
|
1
2
3
|
4 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ash/mus/window_manager_application.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+5 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ash/shell/shell_delegate_impl.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/shell/shell_delegate_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_shell_delegate.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_shell_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/app/mojo/OWNERS
|
View
|
1
2
3
4
5
6
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
chrome/app/mojo/chrome_manifest.json
|
View
|
1
2
3
|
1 chunk |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_content_browser_manifest_overlay.json
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/chrome_interface_factory.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/chrome_interface_factory.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc
|
View
|
1
2
3
4
|
8 chunks |
+13 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/chrome_shell_delegate.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/chrome_shell_delegate.cc
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_client.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_client.cc
|
View
|
1
2
3
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_common.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos.h
|
View
|
1
2
3
4
|
6 chunks |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
View
|
1
2
3
4
|
6 chunks |
+0 lines, -27 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/public/app/mojo/content_browser_manifest.json
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 41 (26 generated)
|