chromium/ui/views/examples/multiline_example.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/examples/multiline_example.h"

#include <stddef.h>

#include <algorithm>
#include <memory>
#include <string>
#include <utility>

#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/events/event.h"
#include "ui/gfx/range/range.h"
#include "ui/gfx/render_text.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/examples/examples_color_id.h"
#include "ui/views/examples/grit/views_examples_resources.h"
#include "ui/views/layout/table_layout.h"
#include "ui/views/view.h"

GetStringUTF16;
GetStringUTF8;

namespace views::examples {

namespace {

gfx::Range ClampRange(gfx::Range range, size_t max) {}

// A Label with a clamped preferred width to demonstrate wrapping.
class PreferredSizeLabel : public Label {};

BEGIN_METADATA()

}  // namespace

// A simple View that hosts a RenderText object.
class MultilineExample::RenderTextView : public View {};

BEGIN_METADATA()
END_METADATA

MultilineExample::MultilineExample()
    :{}

MultilineExample::~MultilineExample() {}

void MultilineExample::CreateExampleView(View* container) {}

void MultilineExample::ContentsChanged(Textfield* sender,
                                       const std::u16string& new_contents) {}

}  // namespace views::examples