|
|
Handle app custom icon via aura::Window property.
This does refactoring of custom icon functionality for Chrome extension
app and for ARC app by unifying applying a custom icon. Before each app
class has own logic in window controller that applies the custom icon
for the shelf item. With this new CL custom icon is merged to concept
of window app icon property which is set by widget delegate. Base
AppWindowLauncherController observes changes of native window related
to app icon and applies the new window app icon as shelf icon.
This CL also moves loading of Chrome App icon from extensions
sub-project to chrome/browser (AppWindow->ChromeNativeAppWindowViews).
ChromeNativeAppWindowViews is only one consumer of loaded App icon.
From other side, chrome/browser has reach functionality to handle
Chrome app icons, including ChromeAppIcon.
With this CL ExtensionAppLauncher is de-facto deprecated in
ChromeLauncherController (to be removed in next CLs).
BUG= 724292
TEST=Tests + Manually on device, including test apps to validate custom
icons for Extension and ARC based apps.
Review-Url: https://codereview.chromium.org/2900783003
Cr-Commit-Position: refs/heads/master@{#476761}
Committed: https://chromium.googlesource.com/chromium/src/+/1ddcada88969fcf84e51511060588094ddbd54c8
Total comments: 29
Total comments: 10
Total comments: 2
Total comments: 10
Total comments: 36
Total comments: 5
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+434 lines, -347 lines) |
Patch |
 |
M |
chrome/browser/extensions/chrome_app_icon.cc
|
View
|
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/apps/chrome_app_delegate.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/apps/chrome_app_delegate.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+27 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_window.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_window.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+16 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+1 line, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+4 lines, -24 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+18 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+52 lines, -40 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+4 lines, -25 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/test/test_app_window_icon_observer.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/test/test_app_window_icon_observer.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/apps/chrome_native_app_window_views.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+56 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/test/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/platform_apps/app_icon/test.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+45 lines, -20 lines |
0 comments
|
Download
|
 |
M |
components/exo/shell_surface.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/exo/shell_surface.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/app_window/app_window_apitest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+7 lines, -40 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/app_window/app_delegate.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/app_window/app_window.h
|
View
|
1
2
3
4
5
6
|
9 chunks |
+4 lines, -24 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/app_window/app_window.cc
|
View
|
1
2
3
4
|
7 chunks |
+10 lines, -87 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/app_window/app_window_registry.h
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/app_window/app_window_registry.cc
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
extensions/common/manifest_handlers/icons_handler.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/shell/browser/shell_app_delegate.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/shell/browser/shell_app_delegate.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 45 (15 generated)
|