chromium/third_party/blink/renderer/core/html/forms/date_time_numeric_field_element.cc

/*
 * Copyright (C) 2012 Google 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. AND ITS CONTRIBUTORS ``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 ITS CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR 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.
 */

#include "third_party/blink/renderer/core/html/forms/date_time_numeric_field_element.h"

#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
#include "third_party/blink/renderer/core/events/keyboard_event.h"
#include "third_party/blink/renderer/core/layout/text_utils.h"
#include "third_party/blink/renderer/platform/fonts/font.h"
#include "third_party/blink/renderer/platform/text/platform_locale.h"
#include "third_party/blink/renderer/platform/text/text_run.h"

namespace blink {

int DateTimeNumericFieldElement::Range::ClampValue(int value) const {}

bool DateTimeNumericFieldElement::Range::IsInRange(int value) const {}

// ----------------------------

DateTimeNumericFieldElement::DateTimeNumericFieldElement(
    Document& document,
    FieldOwner& field_owner,
    DateTimeField type,
    const Range& range,
    const Range& hard_limits,
    const String& placeholder,
    const DateTimeNumericFieldElement::Step& step)
    :{}

float DateTimeNumericFieldElement::MaximumWidth(const ComputedStyle& style) {}

int DateTimeNumericFieldElement::DefaultValueForStepDown() const {}

int DateTimeNumericFieldElement::DefaultValueForStepUp() const {}

void DateTimeNumericFieldElement::SetFocused(
    bool value,
    mojom::blink::FocusType focus_type) {}

String DateTimeNumericFieldElement::FormatValue(int value) const {}

void DateTimeNumericFieldElement::HandleKeyboardEvent(
    KeyboardEvent& keyboard_event) {}

bool DateTimeNumericFieldElement::HasValue() const {}

void DateTimeNumericFieldElement::Initialize(const AtomicString& pseudo,
                                             const String& ax_help_text) {}

int DateTimeNumericFieldElement::Maximum() const {}

String DateTimeNumericFieldElement::Placeholder() const {}

void DateTimeNumericFieldElement::SetEmptyValue(EventBehavior event_behavior) {}

void DateTimeNumericFieldElement::SetValueAsInteger(
    int value,
    EventBehavior event_behavior) {}

void DateTimeNumericFieldElement::StepDown() {}

void DateTimeNumericFieldElement::StepUp() {}

String DateTimeNumericFieldElement::Value() const {}

int DateTimeNumericFieldElement::ValueAsInteger() const {}

int DateTimeNumericFieldElement::TypeAheadValue() const {}

String DateTimeNumericFieldElement::VisibleValue() const {}

int DateTimeNumericFieldElement::RoundDown(int n) const {}

int DateTimeNumericFieldElement::RoundUp(int n) const {}

}  // namespace blink