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

Issue 254473011: Introduce chrome.shell.createWindow stub API for app_shell (Closed)

Created:
6 years, 8 months ago by James Cook
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tfarina, dharcourt, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Introduce chrome.shell.createWindow stub API for app_shell The chrome.app.window.create API has too many Chrome dependencies to be practically extracted from src/chrome. Rather than create an incomplete chrome.app.window API stub just for app_shell, introduce chrome.shell.createWindow which can be used in place of chrome.app.window with a small stub. * Introduce chrome.shell.createWindow for app_shell. * Introduce an app_shell_resources target to hold the resource for the chrome.shell custom bindings JS. * Extend ExtensionsRendererClient to allow an extensions embedder to supply additional custom APIs. * Modify the Calculator example to use a small chrome.shell polyfill for window creation. BUG=349042 TEST=browser_tests *Extension*, app_shell --app=<path/to/calculator/app> loads calculator TBR=isherman@chromium.org for mechanical update of existing ExtensionFunction enum in histograms.xml Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267159

Patch Set 1 #

Patch Set 2 : works (shell-api) #

Total comments: 1

Patch Set 3 : rebase #

Patch Set 4 : ExtensionsRendererClient for tests (shell-api) #

Patch Set 5 : rebase (shell-api) #

Total comments: 7

Patch Set 6 : add to histogram (shell-api) #

Patch Set 7 : rebase (shell-api) #

Patch Set 8 : fix deps (shell-api) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -72 lines) Patch
M apps/shell/DEPS View 1 2 3 4 5 6 7 2 chunks +8 lines, -4 lines 0 comments Download
M apps/shell/app_shell.gyp View 1 2 3 4 5 chunks +23 lines, -0 lines 0 comments Download
A apps/shell/app_shell_resources.grd View 1 chunk +15 lines, -0 lines 0 comments Download
A apps/shell/browser/api/shell/shell_api.h View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A + apps/shell/browser/api/shell/shell_api.cc View 1 3 chunks +8 lines, -29 lines 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
A + apps/shell/common/api/api.gyp View 3 chunks +8 lines, -8 lines 0 comments Download
A apps/shell/common/api/shell.idl View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
M apps/shell/common/shell_extensions_client.cc View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M apps/shell/renderer/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
M apps/shell/renderer/shell_content_renderer_client.cc View 1 1 chunk +7 lines, -6 lines 0 comments Download
A apps/shell/renderer/shell_custom_bindings.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
A apps/shell/renderer/shell_custom_bindings.cc View 1 1 chunk +57 lines, -0 lines 0 comments Download
A apps/shell/renderer/shell_custom_bindings.js View 1 1 chunk +78 lines, -0 lines 0 comments Download
M apps/shell/renderer/shell_extensions_renderer_client.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M apps/shell/renderer/shell_extensions_renderer_client.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/examples/apps/calculator/app/controller.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 5 chunks +13 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_renderer_client.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_renderer_client.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/renderer_permissions_policy_delegate_unittest.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.h View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.cc View 1 2 3 4 chunks +9 lines, -6 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/extensions_renderer_client.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M extensions/renderer/extensions_renderer_client.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
A extensions/renderer/test_extensions_renderer_client.h View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A extensions/renderer/test_extensions_renderer_client.cc View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
M tools/gritsettings/resource_ids View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
James Cook
rockot, PTAL
6 years, 8 months ago (2014-04-25 22:35:53 UTC) #1
Ken Rockot(use gerrit already)
Nice. I have no comments. LGTM! https://codereview.chromium.org/254473011/diff/20001/apps/shell/app_shell.gyp File apps/shell/app_shell.gyp (right): https://codereview.chromium.org/254473011/diff/20001/apps/shell/app_shell.gyp#newcode11 apps/shell/app_shell.gyp:11: 'target_name': 'app_shell_resources', Woot
6 years, 8 months ago (2014-04-26 00:17:39 UTC) #2
James Cook
miket, PTAL at *extensions*. Ken and I thought it was cleaner to have a separate ...
6 years, 7 months ago (2014-04-28 17:44:51 UTC) #3
sky
LGTM
6 years, 7 months ago (2014-04-28 20:24:51 UTC) #4
James Cook
yoz, can you take a look at this instead of Mike? He's travelling. Ken and ...
6 years, 7 months ago (2014-04-28 20:36:04 UTC) #5
James Cook
https://codereview.chromium.org/254473011/diff/80001/apps/shell/common/api/shell.idl File apps/shell/common/api/shell.idl (right): https://codereview.chromium.org/254473011/diff/80001/apps/shell/common/api/shell.idl#newcode5 apps/shell/common/api/shell.idl:5: // Use the <code>chrome.shell</code> API to watch for launch ...
6 years, 7 months ago (2014-04-28 21:04:19 UTC) #6
Yoyo Zhou
I was traveling too. =( LGTM with nits https://chromiumcodereview.appspot.com/254473011/diff/80001/apps/shell/browser/api/shell/shell_api.h File apps/shell/browser/api/shell/shell_api.h (right): https://chromiumcodereview.appspot.com/254473011/diff/80001/apps/shell/browser/api/shell/shell_api.h#newcode23 apps/shell/browser/api/shell/shell_api.h:23: DECLARE_EXTENSION_FUNCTION("shell.createWindow", ...
6 years, 7 months ago (2014-04-29 22:10:00 UTC) #7
James Cook
https://codereview.chromium.org/254473011/diff/80001/apps/shell/browser/api/shell/shell_api.h File apps/shell/browser/api/shell/shell_api.h (right): https://codereview.chromium.org/254473011/diff/80001/apps/shell/browser/api/shell/shell_api.h#newcode23 apps/shell/browser/api/shell/shell_api.h:23: DECLARE_EXTENSION_FUNCTION("shell.createWindow", UNKNOWN); On 2014/04/29 22:10:00, Yoyo Zhou wrote: > ...
6 years, 7 months ago (2014-04-29 22:53:52 UTC) #8
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 7 months ago (2014-04-29 23:16:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/254473011/120001
6 years, 7 months ago (2014-04-29 23:18:00 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 00:23:33 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 00:23:34 UTC) #12
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 7 months ago (2014-04-30 00:25:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/254473011/120001
6 years, 7 months ago (2014-04-30 00:28:43 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 01:04:28 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 01:04:28 UTC) #16
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 7 months ago (2014-04-30 02:27:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/254473011/140001
6 years, 7 months ago (2014-04-30 02:30:03 UTC) #18
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 10:34:57 UTC) #19
Message was sent while issue was closed.
Change committed as 267159

Powered by Google App Engine
This is Rietveld 408576698