Skip to content
Snippets Groups Projects
Select Git revision
  • debian/7.1.33-34
  • debian/main/7.4 default
  • skip-pid-file
  • debian/main/8.2
  • debian/main/8.1
  • pristine-tar
  • upstream/8.1
  • debian/main/8.0
  • upstream/8.0
  • debian/main/7.3
  • debian/main/7.2
  • debian/main/7.1
  • debian/main/7.0
  • debian/main/5.6
  • upstream/8.2
  • debian/bullseye/7.4
  • upstream/7.4
  • upstream/7.3
  • debian/buster/7.3
  • upstream/7.2
  • debian/stretch/7.0
  • upstream/8.1.16+repack
  • upstream/8.0.28
  • upstream/8.2.3
  • debian/8.2.2-3
  • debian/8.2.2-1
  • upstream/8.1.15
  • upstream/8.2.2
  • debian/8.2.1-1
  • upstream/8.0.27
  • upstream/8.1.14
  • upstream/8.2.1
  • debian/8.2.0-4
  • debian/8.2.0-1
  • upstream/8.2.0
  • debian/1%8.0.26-1
  • upstream/8.0.26
  • upstream/8.2.0_rc7
  • upstream/8.1.13
  • debian/7.4.33-1+deb11u1
  • debian/1%7.4.33-1
41 results

php_variables.h

Blame
  • Forked from Debian PHP Team / php
    Source project has a limited visibility.
    MediaQueryParser.h 2.20 KiB
    /*
     * Copyright (C) 2022 Apple Inc. All rights reserved.
     *
     * Redistribution and use in source and binary forms, with or without
     * modification, are permitted provided that the following conditions
     * are met:
     * 1. Redistributions of source code must retain the above copyright
     *    notice, this list of conditions and the following disclaimer.
     * 2. Redistributions in binary form must reproduce the above copyright
     *    notice, this list of conditions and the following disclaimer in the
     *    documentation and/or other materials provided with the distribution.
     *
     * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
     * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
     * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
     * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     */
    
    #pragma once
    
    #include "GenericMediaQueryParser.h"
    #include "MediaQuery.h"
    #include "MediaQueryParserContext.h"
    
    namespace WebCore {
    namespace MQ {
    
    struct MediaQueryParser : public GenericMediaQueryParser<MediaQueryParser>  {
        static MediaQueryList parse(const String&, const MediaQueryParserContext&);
        static MediaQueryList parse(CSSParserTokenRange, const MediaQueryParserContext&);
        static std::optional<MediaQuery> parseCondition(CSSParserTokenRange, const MediaQueryParserContext&);
    
        static MediaQueryList consumeMediaQueryList(CSSParserTokenRange&, const MediaQueryParserContext&);
        static std::optional<MediaQuery> consumeMediaQuery(CSSParserTokenRange&, const MediaQueryParserContext&);
    
        static const FeatureSchema* schemaForFeatureName(const AtomString&, const MediaQueryParserContext&);
        static Vector<const FeatureSchema*> featureSchemas();
    };
    
    void serialize(StringBuilder&, const MediaQueryList&);
    void serialize(StringBuilder&, const MediaQuery&);
    
    }
    }