chromium/ui/views/test/test_views.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/views/test/test_views.h"

#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/events/event.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/widget/native_widget_private.h"
#include "ui/views/widget/widget.h"

namespace views {

StaticSizedView::StaticSizedView(const gfx::Size& preferred_size)
    // Default GetMinimumSize() is GetPreferredSize(). Default GetMaximumSize()
    // is 0x0.
    :{}

StaticSizedView::~StaticSizedView() = default;

gfx::Size StaticSizedView::CalculatePreferredSize(
    const SizeBounds& /*available_size*/) const {}

gfx::Size StaticSizedView::GetMinimumSize() const {}

gfx::Size StaticSizedView::GetMaximumSize() const {}

BEGIN_METADATA()

ProportionallySizedView::ProportionallySizedView(int factor)
    :{}

ProportionallySizedView::~ProportionallySizedView() = default;

void ProportionallySizedView::SetPreferredWidth(int width) {}

gfx::Size ProportionallySizedView::CalculatePreferredSize(
    const SizeBounds& available_size) const {}

BEGIN_METADATA()

CloseWidgetView::CloseWidgetView(ui::EventType event_type)
    :{}

void CloseWidgetView::OnEvent(ui::Event* event) {}

BEGIN_METADATA()

EventCountView::EventCountView() = default;

EventCountView::~EventCountView() = default;

int EventCountView::GetEventCount(ui::EventType type) {}

void EventCountView::ResetCounts() {}

void EventCountView::OnMouseMoved(const ui::MouseEvent& event) {}

void EventCountView::OnKeyEvent(ui::KeyEvent* event) {}

void EventCountView::OnMouseEvent(ui::MouseEvent* event) {}

void EventCountView::OnScrollEvent(ui::ScrollEvent* event) {}

void EventCountView::OnGestureEvent(ui::GestureEvent* event) {}

void EventCountView::RecordEvent(ui::Event* event) {}

BEGIN_METADATA()

ResizeAwareParentView::ResizeAwareParentView() {}

void ResizeAwareParentView::ChildPreferredSizeChanged(View* child) {}

BEGIN_METADATA()

}  // namespace views