|
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
Total comments: 1
Total comments: 7
|
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
|
Total messages: 19 (0 generated)
|