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

Issue 1516253002: Whitelist IME extenions for app.window with type:panel (Closed)

Created:
5 years ago by Azure Wei
Modified:
5 years ago
CC:
chromium-reviews, extensions-reviews_chromium.org, jennb, Dmitry Titov, jianli, dcheng, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Whitelist IME extensions for app.window with type:panel. The app.window will be used to create IME menu. Please see the design doc: https://docs.google.com/document/d/1Ml1QUsaNbLXYFh3dW8Q3md7cY1oUhpYvyZWRqdjoOfo/edit#heading=h.nikhlivlb11n BUG=570761 TEST=Locally verified app.window API accessable for IME extensions. Committed: https://crrev.com/49f72db8dbff60fb22dfddf09dddeffe54f674db Cr-Commit-Position: refs/heads/master@{#366279}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : Fix test error #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -10 lines) Patch
M chrome/browser/ui/panels/panel_manager.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/background.js View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M extensions/browser/api/app_window/app_window_api.cc View 1 2 2 chunks +12 lines, -8 lines 0 comments Download
M extensions/common/constants.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/constants.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
Azure Wei
Hi msw@, Devlin and Shu, can you please review this cl? Thanks!
5 years ago (2015-12-18 06:02:15 UTC) #4
Devlin
extensions lgtm https://codereview.chromium.org/1516253002/diff/20001/extensions/common/constants.h File extensions/common/constants.h (right): https://codereview.chromium.org/1516253002/diff/20001/extensions/common/constants.h#newcode214 extensions/common/constants.h:214: // Extension ids used by IME nit: ...
5 years ago (2015-12-18 17:58:41 UTC) #5
msw
c/b/ui lgtm
5 years ago (2015-12-18 19:42:01 UTC) #6
Azure Wei
https://codereview.chromium.org/1516253002/diff/20001/extensions/common/constants.h File extensions/common/constants.h (right): https://codereview.chromium.org/1516253002/diff/20001/extensions/common/constants.h#newcode214 extensions/common/constants.h:214: // Extension ids used by IME On 2015/12/18 17:58:41, ...
5 years ago (2015-12-19 07:21:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1516253002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1516253002/40001
5 years ago (2015-12-19 07:22:05 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/145523)
5 years ago (2015-12-19 08:30:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1516253002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1516253002/80001
5 years ago (2015-12-19 09:23:03 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-19 10:45:55 UTC) #17
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/49f72db8dbff60fb22dfddf09dddeffe54f674db Cr-Commit-Position: refs/heads/master@{#366279}
5 years ago (2015-12-19 10:46:52 UTC) #19
Evan Stade
from what I can tell, stevenjb has some unresolved comments on the design doc. Seems ...
5 years ago (2015-12-21 23:54:20 UTC) #21
stevenjb
On 2015/12/21 23:54:20, Evan Stade wrote: > from what I can tell, stevenjb has some ...
5 years ago (2015-12-22 00:50:06 UTC) #22
Azure Wei
On 2015/12/22 00:50:06, stevenjb wrote: > On 2015/12/21 23:54:20, Evan Stade wrote: > > from ...
5 years ago (2015-12-22 01:53:24 UTC) #23
stevenjb
On 2015/12/22 01:53:24, Azure Wei wrote: > On 2015/12/22 00:50:06, stevenjb wrote: > > On ...
5 years ago (2015-12-22 18:08:15 UTC) #24
Azure Wei
5 years ago (2015-12-23 01:13:48 UTC) #25
Message was sent while issue was closed.
On 2015/12/22 18:08:15, stevenjb wrote:
> On 2015/12/22 01:53:24, Azure Wei wrote:
> > On 2015/12/22 00:50:06, stevenjb wrote:
> > > On 2015/12/21 23:54:20, Evan Stade wrote:
> > > > from what I can tell, stevenjb has some unresolved comments on the
design
> > doc.
> > > > Seems like you should address those before proceeding further.
> > > 
> > > I think that most of my unresolved comments stemmed from confusion on my
> part
> > > between the proposed "IME Menu" and the existing "is_ime_window" type.
> > > 
> > > This change will allow testing of using panels for the IME Menu, and if it
> > > proves to be a good solution that seems fine. We will need to continue to
> > > support the code in tabs_api.cc that allows whitelisted extensions to use
> > panels
> > > on Chrome OS, we'll just need to move that logic out of panel_manager.cc
> when
> > it
> > > gets deprecated.
> > 
> > Do you mean the app.window will get deprecated someday? And if the AppWindow
> > gets deprecated, I should add codes in tabs_api.cc to support IME using
panels
> > on ChromeOS. 
> > As I am not using windows.create API, I don't need to add other logic for
now,
> > right?
> 
> No, I did not suggest that app.window will get deprecated. I was under the
> impression that the IME extension was planning to use chrome.windows to create
> panel windows, in which case we need to ensure that the logic in
> PanelManager::ShouldUsePanels() gits moved to tabs_api.cc where it is used
when
> we deprecate PanelManager.
> 
> However, looking more closely, that is irrelevant to this CL, which should
have
> been reviewed more carefully. The change to PanelManager::ShouldUsePanels()
only
> affects WindowsCreateFunction() in tabs_api.cc which is for chrome.windows. It
> is unnecessary for chrome.app.window. i.e. the change to app_window_api.cc
here
> is the relevant change based on the CL description.

Yes, the changes in panel_manager.cc is unnecessary, as I just need to create
panel with app.window. Sorry about my carelessness. I will open another cl to
revert the change.

Powered by Google App Engine
This is Rietveld 408576698