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

Issue 503383002: Allow component IME extension use app.window and add 'ime' window type for app window (Closed)

Created:
6 years, 3 months ago by bshe
Modified:
6 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, tfarina, chromium-apps-reviews_chromium.org, kalyank, ben+ash_chromium.org, benwells
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Allow component IME extensions use app.window and add 'ime' boolean in CreateWindowOptions for app window To create an IME window, an IME must be whitelisted, must have app.window.ime permission and must use set 'ime' and 'frame' this way: chrome.app.window.create(url, { 'ime': true, 'frame': 'none }, function() {}) Note only whitelisted component IME extensions can use this boolean parameter. See doc here: https://docs.google.com/a/google.com/document/d/1JQHpLu_RjN8C1Yi0i_eApS5SZtPoMDqvlq06YOwXCFU/edit BUG=401984 Committed: https://crrev.com/c3875427bb19532a238608d7c04d34bc0fa22421 Cr-Commit-Position: refs/heads/master@{#297163}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : rebase and init the window with correct parent instead of reparent afterwards #

Total comments: 14

Patch Set 5 : #

Patch Set 6 : more tests #

Total comments: 4

Patch Set 7 : reviews #

Patch Set 8 : #

Total comments: 10

Patch Set 9 : reviews #

Total comments: 6

Patch Set 10 : rebase and reviews #

Patch Set 11 : rebase and make app.window.canSetVisibleOnAllWorkspaces complex feature #

Total comments: 2

Patch Set 12 : #

Patch Set 13 : rebase #

Total comments: 2

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -18 lines) Patch
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +5 lines, -7 lines 0 comments Download
M ash/shell_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell_window_ids.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/chromeos/input_method/google_xkb_manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/input_method/xkb_manifest.json View 1 2 3 4 1 chunk +1 line, -0 lines 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 10 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_platform_app/background.js View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_platform_app/index.html View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_platform_app/manifest.json View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/background.js View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/index.html View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/manifest.json View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_ime/no_permissions_platform_app/background.js View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_ime/no_permissions_platform_app/index.html View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_ime/no_permissions_platform_app/manifest.json View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_ime/no_permissions_whitelisted/background.js View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_ime/no_permissions_whitelisted/index.html View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_ime/no_permissions_whitelisted/manifest.json View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M extensions/browser/api/app_window/app_window_api.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +42 lines, -0 lines 0 comments Download
M extensions/browser/api/app_window/app_window_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +25 lines, -0 lines 0 comments Download
M extensions/browser/app_window/app_window.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/app_window/app_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -4 lines 0 comments Download
M extensions/common/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -0 lines 0 comments Download
M extensions/common/api/app_window.idl View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/extensions_api_permissions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/resources/app_window_custom_bindings.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 53 (17 generated)
bshe
bshe@chromium.org changed reviewers: + benwells@chromium.org
6 years, 3 months ago (2014-08-26 18:03:39 UTC) #1
bshe
Hi Ben. Do you mind to take a first look at this CL? This CL ...
6 years, 3 months ago (2014-08-26 18:03:39 UTC) #2
benwells
On 2014/08/26 18:03:39, bshe wrote: > Hi Ben. > > Do you mind to take ...
6 years, 3 months ago (2014-08-26 22:35:40 UTC) #3
not at google - send to devlin
kalman@chromium.org changed reviewers: + kalman@chromium.org
6 years, 3 months ago (2014-08-27 15:14:33 UTC) #4
not at google - send to devlin
Remember to also blacklist these extensions for the chrome.app API.
6 years, 3 months ago (2014-08-27 15:14:33 UTC) #5
bshe
bshe@chromium.org changed reviewers: + oshima@chromium.org
6 years, 3 months ago (2014-08-28 13:41:43 UTC) #6
bshe
I have updated this CL according to the suggestions. Now we have 'ime' boolean insteand ...
6 years, 3 months ago (2014-08-28 13:41:43 UTC) #7
not at google - send to devlin
kalman@chromium.org changed reviewers: - kalman@chromium.org
6 years, 3 months ago (2014-08-28 15:38:33 UTC) #8
not at google - send to devlin
Thanks for adding those to the blacklist. Now I depart :)
6 years, 3 months ago (2014-08-28 15:38:33 UTC) #9
benwells
I'll wait to get the proposal lg'd before reviewing. I'm happy but want to see ...
6 years, 3 months ago (2014-08-28 22:22:23 UTC) #10
oshima
ash/ lgtm (assuming that's what you want me to review)
6 years, 3 months ago (2014-08-29 00:01:12 UTC) #11
benwells
This needs tests. In particular: - a functional test that the API does what you ...
6 years, 3 months ago (2014-09-09 00:02:30 UTC) #13
bshe
Hi Ben. We talked offline and agreed that use whitelist for ime options is fine ...
6 years, 3 months ago (2014-09-10 22:34:55 UTC) #15
benwells
removing myself as I am about to go on three weeks leave. Jack should do ...
6 years, 3 months ago (2014-09-11 19:35:10 UTC) #17
bshe
Thanks for the feedback Ben. I have addressed your review. jackhou@ do you mind to ...
6 years, 3 months ago (2014-09-11 22:35:59 UTC) #18
jackhou1
Looks pretty good, thanks for the tests. I have a few comments but let me ...
6 years, 3 months ago (2014-09-12 03:24:52 UTC) #20
benwells
+miket for extensions ownership
6 years, 3 months ago (2014-09-12 04:49:51 UTC) #22
bshe
I will add a link in the bug description to the design doc after I ...
6 years, 3 months ago (2014-09-12 17:44:12 UTC) #25
jackhou1
LGTM with a few comments. https://codereview.chromium.org/503383002/diff/240001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/503383002/diff/240001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode60 chrome/browser/extensions/api/app_window/app_window_api.cc:60: const char kImeOptionMustTrueAndNeedsFrameNone[] = ...
6 years, 3 months ago (2014-09-15 03:49:33 UTC) #26
miket_OOO
c/b/e OWNERS LGTM
6 years, 3 months ago (2014-09-15 18:23:12 UTC) #27
bshe
jackhou@ I have addressed your comments. And currently investigating the no_parent issue. Thanks for review! ...
6 years, 3 months ago (2014-09-16 12:44:56 UTC) #29
Shu Chen
lgtm for changes under chrome/browser/resources/chromeos/input_method/...
6 years, 3 months ago (2014-09-16 13:00:45 UTC) #30
tapted
c/b/ui/views/apps lgtm
6 years, 3 months ago (2014-09-16 21:46:33 UTC) #31
bshe
Thanks for reviewing. jackhou@ do you mind to take another look at patchset 11? I ...
6 years, 3 months ago (2014-09-19 02:30:14 UTC) #35
jackhou1
On 2014/09/19 02:30:14, bshe wrote: > Thanks for reviewing. > > jackhou@ do you mind ...
6 years, 3 months ago (2014-09-19 03:32:08 UTC) #36
Ken Rockot(use gerrit already)
https://codereview.chromium.org/503383002/diff/340001/extensions/common/api/_api_features.json File extensions/common/api/_api_features.json (right): https://codereview.chromium.org/503383002/diff/340001/extensions/common/api/_api_features.json#newcode48 extensions/common/api/_api_features.json:48: "noparent": true, Due to the particularly gnarly bug which ...
6 years, 2 months ago (2014-09-28 20:56:36 UTC) #38
bshe
https://codereview.chromium.org/503383002/diff/340001/extensions/common/api/_api_features.json File extensions/common/api/_api_features.json (right): https://codereview.chromium.org/503383002/diff/340001/extensions/common/api/_api_features.json#newcode48 extensions/common/api/_api_features.json:48: "noparent": true, Thanks for your suggestion, Really appreciate! I ...
6 years, 2 months ago (2014-09-29 01:34:04 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/503383002/360001
6 years, 2 months ago (2014-09-29 01:34:58 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/61694) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/19545) ios_rel_device ...
6 years, 2 months ago (2014-09-29 01:37:55 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/503383002/380001
6 years, 2 months ago (2014-09-29 01:55:31 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/20542)
6 years, 2 months ago (2014-09-29 03:22:40 UTC) #47
Ken Rockot(use gerrit already)
https://codereview.chromium.org/503383002/diff/380001/extensions/common/api/_api_features.json File extensions/common/api/_api_features.json (right): https://codereview.chromium.org/503383002/diff/380001/extensions/common/api/_api_features.json#newcode49 extensions/common/api/_api_features.json:49: "component_extension_auto_granted": false, Missing an 's' in "extensions"
6 years, 2 months ago (2014-09-29 04:54:43 UTC) #48
bshe
https://codereview.chromium.org/503383002/diff/380001/extensions/common/api/_api_features.json File extensions/common/api/_api_features.json (right): https://codereview.chromium.org/503383002/diff/380001/extensions/common/api/_api_features.json#newcode49 extensions/common/api/_api_features.json:49: "component_extension_auto_granted": false, Dooh. Thanks! On 2014/09/29 04:54:43, Ken Rockot ...
6 years, 2 months ago (2014-09-29 11:05:27 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/503383002/400001
6 years, 2 months ago (2014-09-29 11:06:13 UTC) #51
commit-bot: I haz the power
Committed patchset #14 (id:400001) as d53641b0551a260e6b92aa752f3d3634376a1acc
6 years, 2 months ago (2014-09-29 13:21:38 UTC) #52
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 13:22:29 UTC) #53
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/c3875427bb19532a238608d7c04d34bc0fa22421
Cr-Commit-Position: refs/heads/master@{#297163}

Powered by Google App Engine
This is Rietveld 408576698