[KeyEvent Mac] Move WebInputEventFactory into chromium.
There was an inconsistency on the Mac platform that the WebInputEventFactory
(old WebKit code) was being used. Other platforms have migrated to using
builders and it was weird for the Mac code path to have some code on one
side of the blink divide that others didn't. This change brings the Mac
platform inline with the others by moving the input event
factory from blink into chromium.
blink change: https://codereview.chromium.org/1335673002/
BUG=493833, 237267
Committed: https://crrev.com/8db5ca887d4560ed15bf5e6e2dce69dc85868f25
Cr-Commit-Position: refs/heads/master@{#348989}
Committed: https://crrev.com/5405b8306550f01b86204d45fad3360593b39001
Cr-Commit-Position: refs/heads/master@{#349157}
On 2015/09/10 15:26:57, dtapuska wrote: > On 2015/09/10 14:48:48, dtapuska wrote: > > Corresponding blink ...
5 years, 3 months ago
(2015-09-11 20:31:03 UTC)
#4
On 2015/09/10 15:26:57, dtapuska wrote:
> On 2015/09/10 14:48:48, dtapuska wrote:
>
> Corresponding blink change review is found here:
> https://codereview.chromium.org/1335673002/
Ping.
Wez
On 2015/09/11 20:31:03, dtapuska wrote: > On 2015/09/10 15:26:57, dtapuska wrote: > > On 2015/09/10 ...
5 years, 3 months ago
(2015-09-11 20:34:13 UTC)
#5
On 2015/09/11 20:31:03, dtapuska wrote:
> On 2015/09/10 15:26:57, dtapuska wrote:
> > On 2015/09/10 14:48:48, dtapuska wrote:
> >
> > Corresponding blink change review is found here:
> > https://codereview.chromium.org/1335673002/
>
> Ping.
nit: The CL description one-line doesn't mention Mac specifically, but this
seems to be a Mac-specific patch? Also, consider linking the Blink CL in the
actual Chromium CL description (and vice versa!).
Alexei Svitkine (slow)
The files being moved don't seem to follow Chromium coding convention. Given they're moving to ...
5 years, 3 months ago
(2015-09-11 20:39:31 UTC)
#6
The files being moved don't seem to follow Chromium coding convention. Given
they're moving to Chromium code, I would think we should convert them at the
same time.
(Can be done on this CL, so that the diffs can be kept via patchsets on the CL.)
Alexei Svitkine (slow)
https://codereview.chromium.org/1331013004/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm File content/browser/renderer_host/input/web_input_event_builders_mac.mm (right): https://codereview.chromium.org/1331013004/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode33 content/browser/renderer_host/input/web_input_event_builders_mac.mm:33: #include <ApplicationServices/ApplicationServices.h> Should be an #import. https://codereview.chromium.org/1331013004/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode43 content/browser/renderer_host/input/web_input_event_builders_mac.mm:43: #if ...
5 years, 3 months ago
(2015-09-11 20:42:11 UTC)
#7
On 2015/09/11 20:39:31, Alexei Svitkine wrote: > The files being moved don't seem to follow ...
5 years, 3 months ago
(2015-09-14 13:29:05 UTC)
#8
On 2015/09/11 20:39:31, Alexei Svitkine wrote:
> The files being moved don't seem to follow Chromium coding convention. Given
> they're moving to Chromium code, I would think we should convert them at the
> same time.
>
> (Can be done on this CL, so that the diffs can be kept via patchsets on the
CL.)
I imagined this request would come; I didn't know how much we wanted to keep of
the original code vs moving it to the convention for the repo. I will try to
address the code style issues today.
https://codereview.chromium.org/1331013004/diff/80001/content/browser/renderer_host/input/web_input_event_builders_mac.h File content/browser/renderer_host/input/web_input_event_builders_mac.h (right): https://codereview.chromium.org/1331013004/diff/80001/content/browser/renderer_host/input/web_input_event_builders_mac.h#newcode14 content/browser/renderer_host/input/web_input_event_builders_mac.h:14: #else On 2015/09/14 19:26:46, dtapuska wrote: > On 2015/09/14 ...
5 years, 3 months ago
(2015-09-14 19:32:56 UTC)
#14
https://codereview.chromium.org/1331013004/diff/80001/content/browser/rendere...
File content/browser/renderer_host/input/web_input_event_builders_mac.h (right):
https://codereview.chromium.org/1331013004/diff/80001/content/browser/rendere...
content/browser/renderer_host/input/web_input_event_builders_mac.h:14: #else
On 2015/09/14 19:26:46, dtapuska wrote:
> On 2015/09/14 18:54:03, Alexei Svitkine wrote:
> > Hmm, this file isn't being included in any non-Objc files, so I'd just drop
> the
> > #ifdef altogether and it's else clause.
>
> No this isn't possible the implementation mm file includes this file.
My point is to only have:
@class NSEvent;
@class NSView;
Without the #else clause. Since all the includes of this header are in .mm files
(including its impl), they should all understand the @class syntax and there
shouldn't be any issues. Or am I missing something?
5 years, 3 months ago
(2015-09-14 19:39:29 UTC)
#15
On 2015/09/14 19:32:56, Alexei Svitkine wrote:
>
https://codereview.chromium.org/1331013004/diff/80001/content/browser/rendere...
> File content/browser/renderer_host/input/web_input_event_builders_mac.h
(right):
>
>
https://codereview.chromium.org/1331013004/diff/80001/content/browser/rendere...
> content/browser/renderer_host/input/web_input_event_builders_mac.h:14: #else
> On 2015/09/14 19:26:46, dtapuska wrote:
> > On 2015/09/14 18:54:03, Alexei Svitkine wrote:
> > > Hmm, this file isn't being included in any non-Objc files, so I'd just
drop
> > the
> > > #ifdef altogether and it's else clause.
> >
> > No this isn't possible the implementation mm file includes this file.
>
> My point is to only have:
>
> @class NSEvent;
> @class NSView;
>
> Without the #else clause. Since all the includes of this header are in .mm
files
> (including its impl), they should all understand the @class syntax and there
> shouldn't be any issues. Or am I missing something?
Yes you are correct; I mis-read the comment and thought you wanted the converse.
dtapuska
https://codereview.chromium.org/1331013004/diff/80001/content/browser/renderer_host/input/web_input_event_builders_mac.h File content/browser/renderer_host/input/web_input_event_builders_mac.h (right): https://codereview.chromium.org/1331013004/diff/80001/content/browser/renderer_host/input/web_input_event_builders_mac.h#newcode14 content/browser/renderer_host/input/web_input_event_builders_mac.h:14: #else On 2015/09/14 19:32:56, Alexei Svitkine wrote: > On ...
5 years, 3 months ago
(2015-09-14 19:40:07 UTC)
#16
https://codereview.chromium.org/1331013004/diff/80001/content/browser/rendere...
File content/browser/renderer_host/input/web_input_event_builders_mac.h (right):
https://codereview.chromium.org/1331013004/diff/80001/content/browser/rendere...
content/browser/renderer_host/input/web_input_event_builders_mac.h:14: #else
On 2015/09/14 19:32:56, Alexei Svitkine wrote:
> On 2015/09/14 19:26:46, dtapuska wrote:
> > On 2015/09/14 18:54:03, Alexei Svitkine wrote:
> > > Hmm, this file isn't being included in any non-Objc files, so I'd just
drop
> > the
> > > #ifdef altogether and it's else clause.
> >
> > No this isn't possible the implementation mm file includes this file.
>
> My point is to only have:
>
> @class NSEvent;
> @class NSView;
>
> Without the #else clause. Since all the includes of this header are in .mm
files
> (including its impl), they should all understand the @class syntax and there
> shouldn't be any issues. Or am I missing something?
Done.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1331013004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1331013004/120001
5 years, 3 months ago
(2015-09-15 19:20:38 UTC)
#22
Much belated LGTM. This is great - thanks for cleaning up! https://codereview.chromium.org/1331013004/diff/40001/content/browser/DEPS File content/browser/DEPS (left): ...
5 years, 3 months ago
(2015-09-15 23:25:35 UTC)
#28
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1345043003/ by kochi@chromium.org. ...
5 years, 3 months ago
(2015-09-16 01:18:10 UTC)
#29
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1345043003/ by kochi@chromium.org.
The reason for reverting is: This caused compile failure on MacOSX 10.9 Retina
bot.
The relevant error log:
../../content/browser/renderer_host/input/web_input_event_builders_mac.mm:889:10:
error: use of undeclared identifier 'NSEventTypeSmartMagnify'; did you mean
'NSEventTypeMagnify'?
case NSEventTypeSmartMagnify:
^~~~~~~~~~~~~~~~~~~~~~~
NSEventTypeMagnify
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:48:5:
note: 'NSEventTypeMagnify' declared here
NSEventTypeMagnify = 30,
^
../../content/browser/renderer_host/input/web_input_event_builders_mac.mm:889:10:
error: duplicate case value 'NSEventTypeMagnify'
case NSEventTypeSmartMagnify:
^
../../content/browser/renderer_host/input/web_input_event_builders_mac.mm:885:10:
note: previous case defined here
case NSEventTypeMagnify:
^
2 errors generated.
ninja: build stopped: subcommand failed..
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1331013004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1331013004/160001
5 years, 3 months ago
(2015-09-16 16:43:27 UTC)
#33
On 2015/09/16 01:18:10, Takayoshi Kochi wrote: > A revert of this CL (patchset #7 id:120001) ...
5 years, 3 months ago
(2015-09-16 16:44:55 UTC)
#34
On 2015/09/16 01:18:10, Takayoshi Kochi wrote:
> A revert of this CL (patchset #7 id:120001) has been created in
> https://codereview.chromium.org/1345043003/ by mailto:kochi@chromium.org.
>
> The reason for reverting is: This caused compile failure on MacOSX 10.9 Retina
> bot.
>
> The relevant error log:
>
>
../../content/browser/renderer_host/input/web_input_event_builders_mac.mm:889:10:
> error: use of undeclared identifier 'NSEventTypeSmartMagnify'; did you mean
> 'NSEventTypeMagnify'?
> case NSEventTypeSmartMagnify:
> ^~~~~~~~~~~~~~~~~~~~~~~
> NSEventTypeMagnify
>
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:48:5:
> note: 'NSEventTypeMagnify' declared here
> NSEventTypeMagnify = 30,
> ^
>
../../content/browser/renderer_host/input/web_input_event_builders_mac.mm:889:10:
> error: duplicate case value 'NSEventTypeMagnify'
> case NSEventTypeSmartMagnify:
> ^
>
../../content/browser/renderer_host/input/web_input_event_builders_mac.mm:885:10:
> note: previous case defined here
> case NSEventTypeMagnify:
> ^
> 2 errors generated.
> ninja: build stopped: subcommand failed..
The reason for the revert was because the build failed:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.9%20%28re...
The problem is the min OS SDK really is 10.10; but the bot had 10.6 installed;
https://code.google.com/p/chromium/issues/detail?id=532504 fixed the bot so it
has a more recent SDK installed.
Re-landing change as the failing bot has been updated.
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 3 months ago
(2015-09-16 17:53:40 UTC)
#35
Message was sent while issue was closed.
Committed patchset #9 (id:160001)
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/5405b8306550f01b86204d45fad3360593b39001 Cr-Commit-Position: refs/heads/master@{#349157}
5 years, 3 months ago
(2015-09-16 17:54:26 UTC)
#36
On 2015/09/16 18:41:16, skobes wrote: > A revert of this CL (patchset #9 id:160001) has ...
5 years, 3 months ago
(2015-09-16 21:00:29 UTC)
#38
On 2015/09/16 18:41:16, skobes wrote:
> A revert of this CL (patchset #9 id:160001) has been created in
> https://codereview.chromium.org/1348843002/ by mailto:skobes@chromium.org.
>
> The reason for reverting is:
>
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.9%20%28re...
>
../../content/browser/renderer_host/input/web_input_event_builders_mac.mm:889:10:
> error: use of undeclared identifier 'NSEventTypeSmartMagnify'; did you mean
> 'NSEventTypeMagnify'?
> case NSEventTypeSmartMagnify:
> ^~~~~~~~~~~~~~~~~~~~~~~
> NSEventTypeMagnify.
Bot has been updated to use 10.10 SDK in
https://codereview.chromium.org/1347213002/
Attempting to re-land this again; 3rd time is a charm right?
dtapuska
The CQ bit was checked by dtapuska@chromium.org
5 years, 3 months ago
(2015-09-16 21:00:44 UTC)
#39
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1331013004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1331013004/160001
5 years, 3 months ago
(2015-09-16 21:01:12 UTC)
#40
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/100612)
5 years, 3 months ago
(2015-09-16 21:09:33 UTC)
#42
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1331013004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1331013004/160001
5 years, 3 months ago
(2015-09-17 12:11:55 UTC)
#44
Issue 1331013004: [KeyEvent Mac] Move WebInputEventFactory into chromium.
(Closed)
Created 5 years, 3 months ago by dtapuska
Modified 5 years, 3 months ago
Reviewers: Wez, sadrul, Alexei Svitkine (slow), mnaganov (inactive), piman, Nico
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 28