⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267408 in webkit


Ignore:
Timestamp:
Sep 22, 2020, 8:28:32 AM (6 years ago)
Author:
weinig@apple.com
Message:

[WebIDL] Split up Performance.idl into component partials
https://bugs.webkit.org/show_bug.cgi?id=216729

Reviewed by Darin Adler.

Split additions to the Peformance interface from the Navagation Timing,
Resource Timing, User Timing and Performance Timeline specs into their
own IDL files. Trying something new with the naming (using Performance
'+' name of the spec supplying the addition) for these partials to test
the waters.

  • CMakeLists.txt:
  • DerivedSources-input.xcfilelist:
  • DerivedSources-output.xcfilelist:
  • DerivedSources.make:
  • WebCore.xcodeproj/project.pbxproj:
  • page/Performance+NavigationTiming.idl: Added.
  • page/Performance+PerformanceTimeline.idl: Added.
  • page/Performance+ResourceTiming.idl: Added.
  • page/Performance+UserTiming.idl: Added.
  • page/Performance.idl:
Location:
trunk/Source/WebCore
Files:
4 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/CMakeLists.txt

    r267402 r267408  
    10501050    page/NavigatorServiceWorker.idl
    10511051    page/NavigatorShare.idl
     1052    page/Performance+NavigationTiming.idl
     1053    page/Performance+PerformanceTimeline.idl
     1054    page/Performance+ResourceTiming.idl
     1055    page/Performance+UserTiming.idl
    10521056    page/Performance.idl
    10531057    page/PerformanceEntry.idl
  • trunk/Source/WebCore/ChangeLog

    r267404 r267408  
     12020-09-22  Sam Weinig  <weinig@apple.com>
     2
     3        [WebIDL] Split up Performance.idl into component partials
     4        https://bugs.webkit.org/show_bug.cgi?id=216729
     5
     6        Reviewed by Darin Adler.
     7
     8        Split additions to the Peformance interface from the Navagation Timing,
     9        Resource Timing, User Timing and Performance Timeline specs into their
     10        own IDL files. Trying something new with the naming (using Performance
     11        '+' name of the spec supplying the addition) for these partials to test
     12        the waters.
     13
     14        * CMakeLists.txt:
     15        * DerivedSources-input.xcfilelist:
     16        * DerivedSources-output.xcfilelist:
     17        * DerivedSources.make:
     18        * WebCore.xcodeproj/project.pbxproj:
     19        * page/Performance+NavigationTiming.idl: Added.
     20        * page/Performance+PerformanceTimeline.idl: Added.
     21        * page/Performance+ResourceTiming.idl: Added.
     22        * page/Performance+UserTiming.idl: Added.
     23        * page/Performance.idl:
     24
    1252020-09-22  Zalan Bujtas  <zalan@apple.com>
    226
  • trunk/Source/WebCore/DerivedSources-input.xcfilelist

    r267402 r267408  
    10281028$(PROJECT_DIR)/page/NavigatorServiceWorker.idl
    10291029$(PROJECT_DIR)/page/NavigatorShare.idl
     1030$(PROJECT_DIR)/page/Performance+NavigationTiming.idl
     1031$(PROJECT_DIR)/page/Performance+PerformanceTimeline.idl
     1032$(PROJECT_DIR)/page/Performance+ResourceTiming.idl
     1033$(PROJECT_DIR)/page/Performance+UserTiming.idl
    10301034$(PROJECT_DIR)/page/Performance.idl
    10311035$(PROJECT_DIR)/page/PerformanceEntry.idl
  • trunk/Source/WebCore/DerivedSources-output.xcfilelist

    r267402 r267408  
    13851385$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPbkdf2Params.cpp
    13861386$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPbkdf2Params.h
     1387$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance+NavigationTiming.cpp
     1388$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance+NavigationTiming.h
     1389$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance+PerformanceTimeline.cpp
     1390$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance+PerformanceTimeline.h
     1391$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance+ResourceTiming.cpp
     1392$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance+ResourceTiming.h
     1393$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance+UserTiming.cpp
     1394$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance+UserTiming.h
    13871395$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance.cpp
    13881396$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPerformance.h
  • trunk/Source/WebCore/DerivedSources.make

    r267402 r267408  
    10391039    $(WebCore)/page/NavigatorServiceWorker.idl \
    10401040    $(WebCore)/page/NavigatorShare.idl \
     1041    $(WebCore)/page/Performance+NavigationTiming.idl \
     1042    $(WebCore)/page/Performance+PerformanceTimeline.idl \
     1043    $(WebCore)/page/Performance+ResourceTiming.idl \
     1044    $(WebCore)/page/Performance+UserTiming.idl \
    10411045    $(WebCore)/page/Performance.idl \
    10421046    $(WebCore)/page/PerformanceEntry.idl \
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r267402 r267408  
    1023910239                7C6752BA1B06E82000C279CB /* NonElementParentNode.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = NonElementParentNode.idl; sourceTree = "<group>"; };
    1024010240                7C6EFEEA1F946A2E00FFAD41 /* SettingsDefaultValues.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SettingsDefaultValues.h; sourceTree = "<group>"; };
     10241                7C72471A2516744C00C363CD /* Performance+UserTiming.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = "Performance+UserTiming.idl"; sourceTree = "<group>"; };
     10242                7C72471C251674CE00C363CD /* Performance+PerformanceTimeline.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = "Performance+PerformanceTimeline.idl"; sourceTree = "<group>"; };
     10243                7C72471D2516752C00C363CD /* Performance+ResourceTiming.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = "Performance+ResourceTiming.idl"; sourceTree = "<group>"; };
     10244                7C72471E2516758800C363CD /* Performance+NavigationTiming.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = "Performance+NavigationTiming.idl"; sourceTree = "<group>"; };
    1024110245                7C73FB05191EF416007DE061 /* UserMessageHandlersNamespace.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UserMessageHandlersNamespace.cpp; sourceTree = "<group>"; };
    1024210246                7C73FB06191EF417007DE061 /* UserMessageHandlersNamespace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserMessageHandlersNamespace.h; sourceTree = "<group>"; };
     
    2157321577                                371E65CD13661EED00BEEDB0 /* PageSerializer.cpp */,
    2157421578                                371E65CB13661EDC00BEEDB0 /* PageSerializer.h */,
     21579                                7C72471E2516758800C363CD /* Performance+NavigationTiming.idl */,
     21580                                7C72471C251674CE00C363CD /* Performance+PerformanceTimeline.idl */,
     21581                                7C72471D2516752C00C363CD /* Performance+ResourceTiming.idl */,
     21582                                7C72471A2516744C00C363CD /* Performance+UserTiming.idl */,
    2157521583                                E526AF3E1727F8F200E41781 /* Performance.cpp */,
    2157621584                                8A844D0211D3C18E0014065C /* Performance.h */,
  • trunk/Source/WebCore/page/Performance.idl

    r267402 r267408  
    4242    // readonly attribute DOMHighResTimeStamp timeOrigin;
    4343    [Default] object toJSON();
    44 
    45     // https://w3c.github.io/navigation-timing/#extensions-to-the-performance-interface
    46     [Exposed=Window] readonly attribute PerformanceNavigation navigation;
    47     [Exposed=Window] readonly attribute PerformanceTiming timing;
    48 
    49     // https://w3c.github.io/performance-timeline/#extensions-to-the-performance-interface
    50     PerformanceEntryList getEntries();
    51     PerformanceEntryList getEntriesByType(DOMString entryType);
    52     PerformanceEntryList getEntriesByName(DOMString name, optional DOMString entryType);
    53 
    54     // https://w3c.github.io/resource-timing/#sec-extensions-performance-interface
    55     undefined clearResourceTimings();
    56     undefined setResourceTimingBufferSize(unsigned long maxSize);
    57     attribute EventHandler onresourcetimingbufferfull;
    58 
    59     // https://w3c.github.io/user-timing/#extensions-performance-interface
    60     [MayThrowException, CallWith=GlobalObject] PerformanceMark mark(DOMString markName, optional PerformanceMarkOptions markOptions);
    61     undefined clearMarks(optional DOMString markName);
    62     [MayThrowException, CallWith=GlobalObject] PerformanceMeasure measure(DOMString measureName, optional (DOMString or PerformanceMeasureOptions) startOrMeasureOptions, optional DOMString endMark);
    63     undefined clearMeasures(optional DOMString measureName);
    6444};
    65 
    66 typedef sequence<PerformanceEntry> PerformanceEntryList;
Note: See TracChangeset for help on using the changeset viewer.