# When editing this file, please run the following command to make sure you
# haven't introduced any syntax errors:
#
# ./Tools/Scripts/check-webkit-style
#
# If you want to test your regular expressions, you can edit various files and
# then try following command:
#
# ./Tools/Scripts/webkit-patch apply-watchlist-local
#
{
    "DEFINITIONS": {
        "AppleMacPublicApi": {
            "filename": r"Source/WebCore/bindings/objc/PublicDOMInterfaces.h"
        },
        "Forms": {
            "filename": r"Source/WebCore/html/HTML(DataList|FieldSet|Input|Keygen|Label|Legend|OptGroup|Option|Output|Select|TextArea)Element\."
                        r"|Source/WebCore/html/.*Form[A-Z].*\."
                        r"|Source/WebCore/html/\w*InputType\."
                        r"|Source/WebCore/html/shadow/(SliderThumbElement|TextControlInnerElements)\."
                        r"|Source/WebCore/rendering/Render(FileUploadControl|ListBox|MenuList|Slider|TextControl.*)\."
        },
        "Geolocation": {
            "filename": r"Source/WebCore/Modules/geolocation/"
                        r"|Source/WebCore/page/GeolocationClient.h"
                        r"|Source/WebCore/bindings/js/JSGeolocationCustom.cpp"
                        r"|Source/WebCore/platform/mock/GeolocationClientMock.(h|cpp)"
                        r"|Source/WebKit2/WebProcess/Geolocation/",
        },
        "GStreamerGraphics": {
            "filename": r"Source/WebCore/platform/graphics/gstreamer/",
        },
        "GStreamerAudio": {
            "filename": r"Source/WebCore/platform/audio/gstreamer/",
        },
        "WebIDL": {
            "filename": r"Source/WebCore/(?!inspector)(?!testing).*\.idl"
        },
        "webkitpy": {
            "filename": r"Tools/Scripts/webkitpy/",
        },
        "webkitperl": {
            "filename": r"Tools/Scripts/webkitperl/"
                        r"|Tools/Scripts/webkitdirs.pm"
                        r"|Tools/Scripts/VCSUtils.pm"
                        r"|Tools/Scripts/test-webkitperl",
        },
        "SVNScripts": {
            "filename": r"Tools/Scripts/svn-.*",
        },
        "XSS": {
            "filename": r".*XSS",
        },
        "FrameLoader": {
            "more": r"FrameLoader\.(cpp|h)",
        },
        "Loader": {
            "filename": r"Source/WebCore/loader/",
        },
        "Rendering": {
            "filename": r"Source/WebCore/rendering/",
        },
        "RenderLayers": {
            "filename": r"Source/WebCore/rendering/RenderLayer*",
        },
        "GraphicsLayer": {
            "filename": r"Source/WebCore/platform/graphics/GraphicsLayer*",
        },
        "CoreAnimation": {
            "filename": r"Source/WebCore/platform/graphics/ca/",
        },
        "Animation": {
            "filename": r"Source/WebCore/page/animation/",
        },
        "GtkWebKit2PublicAPI": {
            "filename": r"Source/WebKit2/UIProcess/API/gtk/",
        },
        "CoordinatedGraphics": {
            "filename": r"Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/"
                        r"|Source/WebKit2/UIProcess/CoordinatedGraphics/"
                        r"|Source/WebKit2/Shared/CoordinatedGraphics/"
                        r"|Source/WebCore/platform/graphics/surfaces/",
        },
        "TextureMapper": {
            "filename": r"Source/WebCore/platform/graphics/texmap/",
        },
        "OpenGL": {
            "filename": r"Source/WebCore/platform/graphics/opengl/",
        },
        "CSS": {
            "filename": r"Source/WebCore/css/",
        },
        "DOM": {
            "filename": r"Source/WebCore/dom/",
        },
        "HTML": {
            "filename": r"Source/WebCore/html/",
        },
        "DOMAttributes": {
            "filename": r"Source/WebCore/dom/.*Attr.*"
                        r"|Source/WebCore/dom/NamedNodeMap\.(cpp|h|idl)"
                        r"|Source/WebCore/dom/Element\.(cpp|h|idl)",
        },
        "EFL": {
            "filename": r"Source/WebKit/efl/"
                        r"|Source/WebCore/platform/efl/"
                        r"|Source/WTF/wtf/efl/"
                        r"|Tools/EWebLauncher"
                        r"|Tools/DumpRenderTree/efl/"
                        r"|LayoutTests/platform/efl/",
        },
        "EFLWebKit2PublicAPI": {
            "filename": r"Source/WebKit2/UIProcess/API/efl/"
                        r"|Source/WebKit2/UIProcess/API/C/efl/",
        },
        "EFLWebKit2PlatformSpecific": {
            "filename": r"Source/WebKit2/.*\.(cmake|txt)"
                        r"|Source/WebKit2/Platform/efl/"
                        r"|Source/WebKit2/efl/"
                        r"|Source/WebKit2/Shared/API/c/efl/"
                        r"|Source/WebKit2/Shared/efl/"
                        r"|Source/WebKit2/WebProcess/InjectedBundle/efl/"
                        r"|Source/WebKit2/WebProcess/WebPage/efl/"
                        r"|Source/WebKit2/WebProcess/efl/"
                        r"|Source/WebKit2/WebProcess/Downloads/efl/"
                        r"|Source/WebKit2/WebProcess/WebCoreSupport/efl/"
                        r"|Source/WebKit2/UIProcess/efl/"
                        r"|Source/WebKit2/UIProcess/Launcher/efl/",
        },
        "CMake": {
            "filename": r".*CMakeLists\w*\.txt"
                        r"|.*\w+\.cmake"
                        r"|Source/cmake/",
        },
        "Selectors": {
            "filename": r"Source/WebCore/css/CSSSelector*"
                        r"|Source/WebCore/css/SelectorChecker.*"
                        r"|Source/WebCore/css/StyleResolver.*"
                        r"|Source/WebCore/dom/SelectorQuery.*",
        },
        "SoupNetwork": {
            "filename": r"Source/WebCore/platform/network/soup/",
        },
        "ScrollingCoordinator": {
            "filename": r"Source/WebCore/page/scrolling/",
        },
        "WebKitGTKTranslations": {
            "filename": r"Source/WebKit/gtk/po/",
        },
        "Media": {
            "filename": r"(Source|LayoutTests)/.*([Mm]edia|[Aa]udio|[Vv]ideo)",
        },
        "Track": {
            "filename": r"Source/WebCore/html/track/"
                        r"|Source/WebCore/loader/*Track*.*"
                        r"|Source/WebCore/html/HTMLMediaElement*"
                        r"|Source/WebCore/html/HTMLTrackElement*"
                        r"|Source/WebCore/Modules/mediacontrols*"
                        r"|Source/WebCore/css/mediaControl*"
                        r"|LayoutTests/media/track/",
        },
        "MathML": {
            "filename": r"(Source|LayoutTests|Websites)/.*mathml",
        },
        "Editing": {
            "filename": r"Source/WebCore/editing/",
        },
        "NetworkInfo": {
            "filename": r"Source/WebCore/Modules/networkinfo",
        },
        "Battery": {
            "filename": r"Source/WebCore/Modules/battery",
        },
        "WTF": {
            "filename": r"Source/WTF/wtf",
        },
        "WebGL": {
            "filename": r"Source/WebCore/html/canvas/.*WebGL.*"
                        r"|Source/WebCore/bindings/js/.*WebGL.*"
                        r"|Source/WebCore/platform/graphics/gpu"
                        r"|Source/WebCore/platform/graphics/opengl"
                        r"|Source/WebCore/platform/graphics/ANGLE.*"
                        r"|Source/WebCore/platform/graphics/.*GraphicsContext3D.*"
                        r"|Source/ThirdParty/ANGLE",
        },
        "Filters": {
            "filename": r"Source/WebCore/platform/graphics/filters"
                        r"|Source/WebCore/rendering/.*Filter.*"
                        r"|Source/WebCore/rendering/style/.*Filter.*"
                        r"|Source/WebCore/rendering/svg/.*Filter.*"
                        r"|Source/WebCore/svg/graphics/filters"
                        r"|Source/WebCore/svg/graphics/.*Filter.*",
        },
        "TouchAdjustment": {
            "filename": r"Source/WebCore/page/TouchAdjustment.*"
                        r"|LayoutTests/touchadjustment"
        },
        "SVG": {
            "filename": r"Source/WebCore/svg"
                        r"|Source/WebCore/rendering/svg",
        },
        "WebInspectorAPI": {
            "filename": r"Source/WebCore/inspector/InjectedScriptSource.js"
                        r"|Source/WebCore/inspector/.+\.json"
                        r"|Source/WebCore/inspector/.+\.idl"
                        r"|Source/WebCore/page/Console.idl",
        },
        "WebSocket": {
            "filename": r"Source/WebCore/Modules/websockets"
                        r"|Source/WebCore/platform/network/(|.+/)SocketStream.*",
        },
        "MediaStream": {
            "filename": r"Source/WebCore/Modules/mediastream"
                        r"|Source/WebCore/platform/mediastream"
                        r"|LayoutTests/fast/mediastream",
        },
        "Accessibility": {
            "filename": r"Source/WebCore/accessibility"
                        r"|LayoutTests/.*accessibility",
        },
        "Cairo": {
            "filename": r"Source/WebCore/platform/graphics/cairo",
        },
        "Harfbuzz": {
            "filename": r"Source/WebCore/platform/graphics/harfbuzz",
        },
        "PerformanceTests": {
            "filename": r"PerformanceTests"
                        r"|Tools/Scripts/webkitpy/performance_tests",
        },
        "GtkBuildSystem": {
            "filename": r"configure.ac"
                        r"|.*GNUmakefile.(am|features.am.in)",
        },
        "ConsoleUsage": {
            "more": r"[Aa]ddConsoleMessage|reportException|logExceptionToConsole|addMessage|printErrorMessage"
        },
        "ContentSecurityPolicyUsage": {
            "more": r"[Cc]ontentSecurityPolicy(?!\.(h|cpp))",
        },
        "ContentSecurityPolicyFiles": {
            "filename": r"Source/WebCore/page/(Content|DOM)SecurityPolicy\."
                        r"|LayoutTests/http/tests/security/contentSecurityPolicy"
        },
        "RegionsDevelopment": {
            "filename": r"Source/WebCore/rendering/RenderRegion\.(h|cpp)"
                        r"|Source/WebCore/rendering/RenderFlowThread\.(h|cpp)"
                        r"|Source/WebCore/rendering/FlowThreadController\.(h|cpp)"
                        r"|Source/WebCore/rendering/RenderRegionSet\.(h|cpp)"
                        r"|Source/WebCore/rendering/RenderNamedFlowThread\.(h|cpp)"
                        r"|Source/WebCore/rendering/RenderBoxRegionInfo\.h"
                        r"|Source/WebCore/dom/WebKitNamedFlow\.(h|cpp|idl)"
                        r"|Source/WebCore/dom/(DOM)?NamedFlowCollection\.(h|cpp|idl)"
                        r"|Source/WebCore/css/WebKitCSSRegionRule\.(h|cpp|idl)"
                        r"|LayoutTests/fast/regions",
        },
        "RegionsExpectationsMore": {
            "filename": r"LayoutTests/platform/.*TestExpectations",
            "more": r"fast/regions/.*\.html",
        },
        "RegionsExpectationsLess": {
            "filename": r"LayoutTests/platform/.*TestExpectations",
            "less": r"fast/regions/.*\.html",
        },
        "RegionsUsage": {
            "more": r"(RenderRegion|RenderFlowThread|RenderNamedFlowThread)(?!\.(h|cpp))",
        },
        "IndexedDB": {
            "filename": r"Source/WebCore/Modules/indexeddb"
                        r"|Source/WebCore/bindings/.*IDB.*\.(h|cpp)"
                        r"|Source/WebCore/bindings/.*SerializedScriptValue.*\.(h|cpp)"
                        r"|Source/WebCore/platform/leveldb"
                        r"|LayoutTests/storage/indexeddb"
                        r"|LayoutTests/platform/.*/storage/indexeddb",
        },
        "BindingsScripts": {
            "filename": r"Source/WebCore/bindings/scripts/",
        },
        "cURLNetwork": {
            "filename": r"Source/WebCore/platform/network/curl/",
        },
        "ANGLE": {
            "filename": r"Source/ThirdParty/ANGLE",
        },
        "CSSGridLayout": {
            "filename": r"Source/WebCore/rendering/.*Grid.*"
                        r"|Source/WebCore/css/.*Grid.*"
                        r"|LayoutTests/fast/css-grid-layout/"
                        r"|LayoutTests/ietestcenter/css3/grid/"
                        r"|LayoutTests/platform/.*/fast/css-grid-layout/"
                        r"|LayoutTests/platform/.*/ietestcenter/css3/grid/",
        },
    },
    "CC_RULES": {
        # Note: All email addresses listed must be registered with bugzilla.
        # Specifically, levin@chromium.org and levin+threading@chromium.org are
        # two different accounts as far as bugzilla is concerned.
        "Accessibility": [ "cfleizach@apple.com", "dmazzoni@google.com", "apinheiro@igalia.com", "jdiggs@igalia.com", "aboxhall@chromium.org", "mario@webkit.org", "samuel_white@apple.com", "jcraig@apple.com" ],
        "Animation" : [ "simon.fraser@apple.com", "dino@apple.com", "dstockwell@chromium.org" ],
        "AppleMacPublicApi": [ "timothy@apple.com" ],
        "Battery": [ "gyuyoung.kim@webkit.org", "dchris@gmail.com" ],
        "BindingsScripts": [ "dchris@gmail.com", "cgarcia@igalia.com" ],
        "Cairo": [ "dominik.rottsches@intel.com" ],
        "CMake": [ "rakuco@webkit.org", "gyuyoung.kim@webkit.org", "ryuan.choi@gmail.com", "sergio.correia@openbossa.org" ],
        "CoordinatedGraphics" : [ "noam@webkit.org", "zeno@webkit.org", "cmarcelo@webkit.org", "luiz@webkit.org", "ryuan.choi@gmail.com", "sergio.correia@openbossa.org" ],
        "ConsoleUsage" : [ "mkwst@chromium.org" ],
        "ContentSecurityPolicyFiles|ContentSecurityPolicyUsage" : [ "mkwst@chromium.org" ],
        "CoreAnimation" : [ "simon.fraser@apple.com" ],
        "CSS": [ "alexis@webkit.org", "macpherson@chromium.org", "esprehn+autocc@chromium.org", "glenn@skynav.com", "gyuyoung.kim@webkit.org" ],
        "CSSGridLayout": [ "svillar@igalia.com", "jfernandez@igalia.com", "rego@igalia.com" ],
        "cURLNetwork": [ "galpeter@inf.u-szeged.hu" ],
        "DOM": [ "esprehn+autocc@chromium.org", "kangil.han@samsung.com" ],
        "DOMAttributes": [ "cmarcelo@webkit.org", ],
        "EFL": [ "gyuyoung.kim@webkit.org", "dchris@gmail.com", "ryuan.choi@gmail.com", "sergio.correia@openbossa.org" ],
        "EFLWebKit2PlatformSpecific": [ "gyuyoung.kim@webkit.org", "dchris@gmail.com", "ryuan.choi@gmail.com", "sergio.correia@openbossa.org" ],
        "EFLWebKit2PublicAPI": [ "gyuyoung.kim@webkit.org", "dchris@gmail.com", "ryuan.choi@gmail.com", "sergio.correia@openbossa.org" ],
        "Editing": [ "mifenton@rim.com" ],
        "Filters": [ "dino@apple.com", "kondapallykalyan@gmail.com" ],
        "Forms": [ "tkent@chromium.org", "mifenton@rim.com", "roger_fong@apple.com" ],
        "FrameLoader": [ "japhet@chromium.org" ],
        "Geolocation": [ "benjamin@webkit.org" ],
        "GraphicsLayer": [ "simon.fraser@apple.com", "kondapallykalyan@gmail.com", "sergio.correia@openbossa.org" ],
        "GStreamerGraphics": [ "alexis@webkit.org", "pnormand@igalia.com", "gns@gnome.org", "mrobinson@webkit.org", "cgarcia@igalia.com" ],
        "GStreamerAudio": [ "pnormand@igalia.com", "dchris@gmail.com", "sergio.correia@openbossa.org" ],
        "GtkBuildSystem": [ "zandobersek@gmail.com", "berto@igalia.com" ],
        "GtkWebKit2PublicAPI": [ "cgarcia@igalia.com", "gns@gnome.org", "mrobinson@webkit.org", "berto@igalia.com" ],
        "Harfbuzz": [ "dominik.rottsches@intel.com" ],
        "HTML": [ "esprehn+autocc@chromium.org", "gyuyoung.kim@webkit.org" ],
        "IndexedDB": [ "alecflett@chromium.org", "jsbell@chromium.org" ],
        "Loader": [ "japhet@chromium.org" ],
        "MathML": [ "dbarton@mathscribe.com", "mrobinson@webkit.org", "fred.wang@free.fr" ],
        "Media": [ "eric.carlson@apple.com", "jer.noble@apple.com", "glenn@skynav.com", "philipj@opera.com", "sergio.correia@openbossa.org" ],
        "Track": [ "eric.carlson@apple.com", "philipj@opera.com" ],
        "MediaStream": [ "tommyw@google.com", "hta@google.com", "sergio.correia@openbossa.org" ],
        "NetworkInfo": [ "gyuyoung.kim@webkit.org", "dchris@gmail.com" ],
        "OpenGL" : [ "noam@webkit.org", "dino@apple.com", "kondapallykalyan@gmail.com", "roger_fong@apple.com" ],
        "PerformanceTests": [ "rniwa@webkit.org" ],
        "RegionsDevelopment|RegionsExpectationsMore|RegionsExpectationsLess|RegionsUsage": [ "WebkitBugTracker@adobe.com" ],
        "Rendering": [ "esprehn+autocc@chromium.org", "glenn@skynav.com", "kondapallykalyan@gmail.com" ],
        "RenderLayers" : [ "simon.fraser@apple.com", "kondapallykalyan@gmail.com" ],
        "SVG": ["schenney@chromium.org", "pdr@google.com", "fmalita@chromium.org", "dominik.rottsches@intel.com", "gyuyoung.kim@webkit.org", "sergio.correia@openbossa.org" ],
        "SVNScripts": [ "dbates@webkit.org" ],
        "ScrollingCoordinator": [ "andersca@apple.com", "jamesr@chromium.org", "tonikitoo@webkit.org", "cmarcelo@webkit.org", "luiz@webkit.org" ],
        "Selectors": [ "allan.jensen@digia.com" ],
        "SoupNetwork": [ "gns@gnome.org", "mrobinson@webkit.org", "danw@gnome.org", "dchris@gmail.com", "cgarcia@igalia.com", "berto@igalia.com" ],
        "TextureMapper" : [ "noam@webkit.org", "cmarcelo@webkit.org", "luiz@webkit.org", "kondapallykalyan@gmail.com" ],
        "TouchAdjustment" : [ "allan.jensen@digia.com" ],
        "WTF": [ "benjamin@webkit.org", "cmarcelo@webkit.org" ],
        "WebGL": [ "dino@apple.com", "kondapallykalyan@gmail.com" , "roger_fong@apple.com" ],
        "WebIDL": [ "esprehn+autocc@chromium.org", "dchris@gmail.com", "kondapallykalyan@gmail.com" ],
        "WebInspectorAPI": [ "timothy@apple.com", "joepeck@webkit.org", "graouts@webkit.org" ],
        "WebKitGTKTranslations": [ "gns@gnome.org", "mrobinson@webkit.org" ],
        "WebSocket": [ "yutak@chromium.org", "toyoshim+watchlist@chromium.org" ],
        "XSS": [ "dbates@webkit.org" ],
        "webkitperl": [ "dbates@webkit.org" ],
        "webkitpy": [ "glenn@skynav.com" ],
    },
    "MESSAGE_RULES": {
        "AppleMacPublicApi": [ "Please wait for approval from timothy@apple.com (or another member "
                               "of the Apple Safari Team) before submitting "
                               "because this patch contains changes to the Apple Mac "
                               "WebKit.framework public API.", ],
        "GtkWebKit2PublicAPI": [ "Thanks for the patch. If this patch contains new public API "
                                 "please make sure it follows the guidelines for new WebKit2 GTK+ API. "
                                 "See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API", ],
        "ANGLE": [ "Note that there are important steps to take when updating ANGLE. "
                   "See http://trac.webkit.org/wiki/UpdatingANGLE", ],
    },
}
