|
|
Chromium Code Reviews
Description[refactor] - Remove unused WebTextInputType from WebViewImpl.
WebViewImpl also implements WebWidget::textInputType() and, unfortunately,
until it is fully separated from WebWidget, IME related methods should be
duplicated.
BUG=629721
Committed: https://crrev.com/ad901b8d9ac484364a22be270bfe1cd6ab317b47
Cr-Commit-Position: refs/heads/master@{#417671}
Patch Set 1 #Patch Set 2 : Added TODOs everywhere. #Patch Set 3 : Rebased #
Messages
Total messages: 31 (16 generated)
ekaramad@chromium.org changed reviewers: + dglazkov@chromium.org
dglazkov@ Could you please review this change. It seems like this should have happened in your earlier CL: https://codereview.chromium.org/2285923002/. Please ignore if it is irrelevant. This CL duplicates the removal of those types from WebFrameWidgetImpl::textInputInfo() in WebViewImpl::textInputInfo(). Sorry for the duplicated code (that I might have added originally) but this is intended to be temporary until we refactor all of it into a separate place.
On 2016/09/01 at 21:09:39, ekaramad wrote: > dglazkov@ Could you please review this change. It seems like this should have happened in your earlier CL: https://codereview.chromium.org/2285923002/. Please ignore if it is irrelevant. > > This CL duplicates the removal of those types from WebFrameWidgetImpl::textInputInfo() in WebViewImpl::textInputInfo(). Sorry for the duplicated code (that I might have added originally) but this is intended to be temporary until we refactor all of it into a separate place. LGTM. Can we have a comment somwehere explaining this refactor. Duplicated code is super-bad. Like, really super-bad. And confusing if there's no info.
On 2016/09/02 01:11:29, dglazkov wrote: > On 2016/09/01 at 21:09:39, ekaramad wrote: > > dglazkov@ Could you please review this change. It seems like this should have > happened in your earlier CL: https://codereview.chromium.org/2285923002/. Please > ignore if it is irrelevant. > > > > This CL duplicates the removal of those types from > WebFrameWidgetImpl::textInputInfo() in WebViewImpl::textInputInfo(). Sorry for > the duplicated code (that I might have added originally) but this is intended to > be temporary until we refactor all of it into a separate place. > > LGTM. > > Can we have a comment somwehere explaining this refactor. Duplicated code is > super-bad. Like, really super-bad. And confusing if there's no info. I have a bug reported when I landed the blink changes for OOPIF IME. There are things to clean up here and I will make the de-duplication my top priority. I will cc you on that bug. Back to this CL...where would be the ideal location for the comment?
Description was changed from ========== [refactor] - Remove unused WebTextInputType from WebViewImpl. WebViewImpl also implements WebWidget::textInputType() and, unfortunately, until it is fully separated from WebWidget, IME related methods should be duplicated. BUG=NONE ========== to ========== [refactor] - Remove unused WebTextInputType from WebViewImpl. WebViewImpl also implements WebWidget::textInputType() and, unfortunately, until it is fully separated from WebWidget, IME related methods should be duplicated. BUG=629721 ==========
On 2016/09/02 at 04:04:39, ekaramad wrote: > Back to this CL...where would be the ideal location for the comment? I think it might be good to put it in places where we expect peeps to stumble. Maybe a link to a doc that describes the plan. It seems to me that this refactoring probably should've been discussed somewhere, maybe platform-architecture-dev@?
On 2016/09/02 15:47:03, dglazkov wrote: > On 2016/09/02 at 04:04:39, ekaramad wrote: > > Back to this CL...where would be the ideal location for the comment? > > I think it might be good to put it in places where we expect peeps to stumble. > Maybe a link to a doc that describes the plan. It seems to me that this > refactoring probably should've been discussed somewhere, maybe > platform-architecture-dev@? I added TODOs. Unfortunately, there have not been such discussions AFAIK. the reason for this duplication was implementing the blocking IME logic for out of process frames. Since IME is handled at WebFrameWidgetImpl of the local root, almost the exact code was copied over. All I have is the bug that you commented on earlier. But I can go ahead and prepare a doc soon. I just need to identify what needs to be taken out of WebWidget into the new class. Generally, the duplicated code is either: 1) IME method calls such as set/confirmComposition 2) IME updates such as textInputInfo(), caretOrSelectionRange(), etc. It gets trickier for methods in category 2) as they might have other caller users and not specific to IME (I am not quite certain yet). The ultimate goal is that WebViewImpl is no longer a WebWidget, so even for the main frame we will have a WebFrameWidgetImpl. If that was happening today then of course we did not really need to modify anything. So in some sense, the Text Input refactoring here is a part of the general WebView WebWigit split.
PTAL.
LGTM, please consider bringing this topic up with at least architecture leads.
ekaramad@chromium.org changed reviewers: + dcheng@chromium.org
On 2016/09/02 16:19:43, dglazkov wrote: > LGTM, please consider bringing this topic up with at least architecture leads. I also added dcheng@ for the record. I will run the doc with him and any suggested architecture leads. Thanks!
The CQ bit was checked by ekaramad@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
LGTM lfg is working on splitting Widget out of WebView: at that point, the duplication will naturally go away. But it will take us some time to get there.
The CQ bit was checked by ekaramad@chromium.org to run a CQ dry run
The CQ bit was unchecked by ekaramad@chromium.org
The CQ bit was checked by ekaramad@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by ekaramad@chromium.org to run a CQ dry run
The CQ bit was unchecked by ekaramad@chromium.org
The CQ bit was checked by ekaramad@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dglazkov@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2301173005/#ps40001 (title: "Rebased")
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [refactor] - Remove unused WebTextInputType from WebViewImpl. WebViewImpl also implements WebWidget::textInputType() and, unfortunately, until it is fully separated from WebWidget, IME related methods should be duplicated. BUG=629721 ========== to ========== [refactor] - Remove unused WebTextInputType from WebViewImpl. WebViewImpl also implements WebWidget::textInputType() and, unfortunately, until it is fully separated from WebWidget, IME related methods should be duplicated. BUG=629721 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== [refactor] - Remove unused WebTextInputType from WebViewImpl. WebViewImpl also implements WebWidget::textInputType() and, unfortunately, until it is fully separated from WebWidget, IME related methods should be duplicated. BUG=629721 ========== to ========== [refactor] - Remove unused WebTextInputType from WebViewImpl. WebViewImpl also implements WebWidget::textInputType() and, unfortunately, until it is fully separated from WebWidget, IME related methods should be duplicated. BUG=629721 Committed: https://crrev.com/ad901b8d9ac484364a22be270bfe1cd6ab317b47 Cr-Commit-Position: refs/heads/master@{#417671} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/ad901b8d9ac484364a22be270bfe1cd6ab317b47 Cr-Commit-Position: refs/heads/master@{#417671} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
