Bug 136494 - [iOS] Make iOS build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS disabled
Summary: [iOS] Make iOS build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS disa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-03 12:59 PDT by Daniel Bates
Modified: 2014-09-04 17:10 PDT (History)
11 users (show)

See Also:


Attachments
Patch (14.17 KB, patch)
2014-09-03 13:06 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (14.44 KB, patch)
2014-09-03 13:14 PDT, Daniel Bates
aestes: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2014-09-03 12:59:37 PDT
Make iOS WebKit build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS are disabled.
Comment 1 Daniel Bates 2014-09-03 13:06:29 PDT
Created attachment 237573 [details]
Patch
Comment 2 Daniel Bates 2014-09-03 13:14:34 PDT
Created attachment 237576 [details]
Patch

Export symbol EventHandler::handleTouchEvent when building with ENABLE(TOUCH_EVENTS).
Comment 3 Andy Estes 2014-09-03 18:04:54 PDT
Comment on attachment 237576 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=237576&action=review

> Source/WebCore/bindings/js/JSDocumentCustom.cpp:38
> +#if ENABLE(TOUCH_EVENTS)
>  #include "JSTouch.h"
>  #include "JSTouchList.h"
> +#endif

We usually separate the conditional includes from the unconditional ones.

> Source/WebCore/platform/ios/ScrollAnimatorIOS.mm:33
> +#if ENABLE(TOUCH_EVENTS)
>  #include "PlatformTouchEventIOS.h"
> +#endif

Ditto.

> Source/WebCore/rendering/RenderLayer.cpp:183
> +#endif
> +#if ENABLE(IOS_TOUCH_EVENTS)
>      , m_registeredAsTouchEventListenerForScrolling(false)
> +#endif
> +#if PLATFORM(IOS)

I would just nest the ENABLE(IOS_TOUCH_EVENTS) inside the PLATFORM(IOS) block, which would make this simpler.

> Source/WebKit/mac/MigrateHeaders.make:239
> +ifeq ($(findstring ENABLE_IOS_TOUCH_EVENTS, $(FEATURE_DEFINES)), ENABLE_IOS_TOUCH_EVENTS)
> +all : \
> +    $(PRIVATE_HEADERS_DIR)/WebEventRegion.h
> +endif
> +

You should remove line 219.
Comment 4 Daniel Bates 2014-09-04 08:39:40 PDT
Comment on attachment 237576 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=237576&action=review

>> Source/WebCore/bindings/js/JSDocumentCustom.cpp:38
>> +#endif
> 
> We usually separate the conditional includes from the unconditional ones.

Will move conditional includes for ENABLE(TOUCH_EVENTS) and ENABLE(WEBGL) after the list of unconditional includes.

>> Source/WebCore/platform/ios/ScrollAnimatorIOS.mm:33
>> +#endif
> 
> Ditto.

Will move this conditional include after the list of unconditional includes.

>> Source/WebCore/rendering/RenderLayer.cpp:183
>> +#if PLATFORM(IOS)
> 
> I would just nest the ENABLE(IOS_TOUCH_EVENTS) inside the PLATFORM(IOS) block, which would make this simpler.

Will nest ENABLE(IOS_TOUCH_EVENTS) inside the PLATFORM(IOS) block here and in file RenderLayer.h.

>> Source/WebKit/mac/MigrateHeaders.make:239
>> +
> 
> You should remove line 219.

Oops! Will remove.
Comment 5 Daniel Bates 2014-09-04 08:43:13 PDT
Committed r173258: <http://trac.webkit.org/changeset/173258>
Comment 6 Daniel Bates 2014-09-04 17:10:04 PDT
Committed iOS build fix in <http://trac.webkit.org/changeset/173292>.