chromium/third_party/blink/renderer/core/css/media_list.cc

/*
 * (C) 1999-2003 Lars Knoll ([email protected])
 * Copyright (C) 2004, 2006, 2010, 2012 Apple Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */
#include "third_party/blink/renderer/core/css/media_list.h"

#include <memory>
#include "third_party/blink/renderer/core/css/css_style_rule.h"
#include "third_party/blink/renderer/core/css/css_style_sheet.h"
#include "third_party/blink/renderer/core/css/media_query_exp.h"
#include "third_party/blink/renderer/core/css/media_query_set_owner.h"
#include "third_party/blink/renderer/core/css/parser/media_query_parser.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {

/* MediaList is used to store 3 types of media related entities which mean the
 * same:
 *
 * Media Queries, Media Types and Media Descriptors.
 *
 * Media queries, as described in the Media Queries Level 3 specification, build
 * on the mechanism outlined in HTML4. The syntax of media queries fit into the
 * media type syntax reserved in HTML4. The media attribute of HTML4 also exists
 * in XHTML and generic XML. The same syntax can also be used inside the @media
 * and @import rules of CSS.
 *
 * However, the parsing rules for media queries are incompatible with those of
 * HTML4 and are consistent with those of media queries used in CSS.
 *
 * HTML5 (at the moment of writing still work in progress) references the Media
 * Queries specification directly and thus updates the rules for HTML.
 *
 * CSS 2.1 Spec (http://www.w3.org/TR/CSS21/media.html)
 * CSS 3 Media Queries Spec (http://www.w3.org/TR/css3-mediaqueries/)
 */

MediaQuerySet::MediaQuerySet() = default;

MediaQuerySet::MediaQuerySet(const MediaQuerySet&) = default;

MediaQuerySet::MediaQuerySet(HeapVector<Member<const MediaQuery>> queries)
    :{}

MediaQuerySet* MediaQuerySet::Create(
    const String& media_string,
    const ExecutionContext* execution_context) {}

void MediaQuerySet::Trace(Visitor* visitor) const {}

const MediaQuerySet* MediaQuerySet::CopyAndAdd(
    const String& query_string,
    const ExecutionContext* execution_context) const {}

const MediaQuerySet* MediaQuerySet::CopyAndRemove(
    const String& query_string_to_remove,
    const ExecutionContext* execution_context) const {}

String MediaQuerySet::MediaText() const {}

MediaList::MediaList(CSSStyleSheet* parent_sheet)
    :{}

MediaList::MediaList(CSSRule* parent_rule)
    :{}

String MediaList::mediaText(ExecutionContext* execution_context) const {}

void MediaList::setMediaText(const ExecutionContext* execution_context,
                             const String& value) {}

String MediaList::item(unsigned index) const {}

void MediaList::deleteMedium(const ExecutionContext* execution_context,
                             const String& medium,
                             ExceptionState& exception_state) {}

void MediaList::appendMedium(const ExecutionContext* execution_context,
                             const String& medium) {}

const MediaQuerySet* MediaList::Queries() const {}

void MediaList::Trace(Visitor* visitor) const {}

MediaQuerySetOwner* MediaList::Owner() const {}

void MediaList::NotifyMutation() {}

}  // namespace blink