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

Issue 11316292: Add app.window.setIcon (Closed)

Created:
8 years ago by stevenjb
Modified:
8 years ago
CC:
chromium-reviews, jeremya+watch_chromium.org, Aaron Boodman, ben+watch_chromium.org, sadrul, chromium-apps-reviews_chromium.org, saroop
Visibility:
Public.

Description

Add app.window.setLauncherIcon All this does currently is set a member of ShellWindow and notify ShellWindowLauncherController listeners. BUG=136895 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171163

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : Rebase #

Patch Set 4 : setLauncherIcon -> setIcon #

Patch Set 5 : ShellWindowUpdate -> ShellWindowIconUpdated #

Total comments: 2

Patch Set 6 : ShellWindowIconUpdated -> ShellWindowIconChanged #

Patch Set 7 : Require --enable-experimental-extension-apis to enable window.setIcon #

Patch Set 8 : Add ExperimentalPlatformAppBrowserTest #

Total comments: 2

Patch Set 9 : Add comments to .idl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -2 lines) Patch
M chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc View 1 2 3 4 5 6 3 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_apitest.cc View 1 2 3 4 5 6 7 2 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest_util.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest_util.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/shell_window_registry.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/shell_window_registry.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/app_current_window_internal.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_set_icon/background.js View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_set_icon/icon.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_set_icon/manifest.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_set_icon/test.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
stevenjb
In the process of adding this code, and the implementation code that uses it (CL ...
8 years ago (2012-11-30 23:31:26 UTC) #1
jeremya
On 2012/11/30 23:31:26, stevenjb (chromium) wrote: > In the process of adding this code, and ...
8 years ago (2012-12-02 23:20:02 UTC) #2
jeremya
https://codereview.chromium.org/11316292/diff/2002/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc File chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc (right): https://codereview.chromium.org/11316292/diff/2002/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc#newcode16 chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc:16: namespace SetLauncherIcon = api::app_current_window_internal::SetLauncherIcon; Why move these inside 'namespace ...
8 years ago (2012-12-03 00:09:34 UTC) #3
asargent_no_longer_on_chrome
I get the impression it may be a while before we can support this on ...
8 years ago (2012-12-03 18:17:08 UTC) #4
stevenjb
On 2012/12/03 18:17:08, Antony Sargent wrote: > I get the impression it may be a ...
8 years ago (2012-12-03 18:22:31 UTC) #5
stevenjb
https://codereview.chromium.org/11316292/diff/2002/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc File chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc (right): https://codereview.chromium.org/11316292/diff/2002/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc#newcode16 chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc:16: namespace SetLauncherIcon = api::app_current_window_internal::SetLauncherIcon; On 2012/12/03 00:09:34, jeremya wrote: ...
8 years ago (2012-12-03 19:02:41 UTC) #6
stevenjb
+sky@/ben@ (Specifically for chrome/browser/ui/ash/launcher/ OWNER, but also for API change in general) PTAL
8 years ago (2012-12-03 22:33:59 UTC) #7
Ben Goodger (Google)
lgtm https://codereview.chromium.org/11316292/diff/3033/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h File chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h (right): https://codereview.chromium.org/11316292/diff/3033/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h#newcode43 chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h:43: virtual void OnShellWindowIconUpdated(ShellWindow* shell_window) OVERRIDE; 2 cents: we ...
8 years ago (2012-12-04 00:03:37 UTC) #8
stevenjb
https://codereview.chromium.org/11316292/diff/3033/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h File chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h (right): https://codereview.chromium.org/11316292/diff/3033/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h#newcode43 chrome/browser/ui/ash/launcher/shell_window_launcher_controller.h:43: virtual void OnShellWindowIconUpdated(ShellWindow* shell_window) OVERRIDE; On 2012/12/04 00:03:37, Ben ...
8 years ago (2012-12-04 04:31:02 UTC) #9
stevenjb
Note extensions test changes from patch 6 to 7. I added an ExperimentalPlatformAppBrowserTest class for ...
8 years ago (2012-12-04 23:03:56 UTC) #10
stevenjb
Updated the issue sublect. P.S. I will await feedback / lg from someone on the ...
8 years ago (2012-12-04 23:05:46 UTC) #11
jeremya
lgtm https://codereview.chromium.org/11316292/diff/7023/chrome/common/extensions/api/app_window.idl File chrome/common/extensions/api/app_window.idl (right): https://codereview.chromium.org/11316292/diff/7023/chrome/common/extensions/api/app_window.idl#newcode124 chrome/common/extensions/api/app_window.idl:124: // Set the app icon. Can you document ...
8 years ago (2012-12-04 23:56:33 UTC) #12
asargent_no_longer_on_chrome
lgtm
8 years ago (2012-12-05 00:30:53 UTC) #13
stevenjb
https://codereview.chromium.org/11316292/diff/7023/chrome/common/extensions/api/app_window.idl File chrome/common/extensions/api/app_window.idl (right): https://codereview.chromium.org/11316292/diff/7023/chrome/common/extensions/api/app_window.idl#newcode124 chrome/common/extensions/api/app_window.idl:124: // Set the app icon. On 2012/12/04 23:56:34, jeremya ...
8 years ago (2012-12-05 00:56:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11316292/22001
8 years ago (2012-12-05 00:57:00 UTC) #15
commit-bot: I haz the power
8 years ago (2012-12-05 05:25:28 UTC) #16
Message was sent while issue was closed.
Change committed as 171163

Powered by Google App Engine
This is Rietveld 408576698