chromium/ui/views/examples/text_example.cc

// Copyright 2012 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/text_example.h"

#include <memory>
#include <utility>

#include "base/strings/utf_string_conversions.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/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/font_list.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/combobox/combobox.h"
#include "ui/views/controls/label.h"
#include "ui/views/examples/example_combobox_model.h"
#include "ui/views/examples/grit/views_examples_resources.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/table_layout.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"

namespace views::examples {

namespace {

// Number of columns in the view layout.
constexpr int kNumColumns =;

// Toggles bit |flag| on |flags| based on state of |checkbox|.
void SetFlagFromCheckbox(Checkbox* checkbox, int* flags, int flag) {}

}  // namespace

// TextExample's content view, which draws stylized string.
class TextExample::TextExampleView : public View {};

BEGIN_METADATA()
END_METADATA

TextExample::TextExample()
    :{}

TextExample::~TextExample() = default;

Checkbox* TextExample::AddCheckbox(View* parent, const char* name) {}

Combobox* TextExample::AddCombobox(View* parent,
                                   std::u16string name,
                                   base::span<const char* const> items,
                                   void (TextExample::*combobox_callback)()) {}

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

void TextExample::UpdateStyle() {}

void TextExample::AlignComboboxChanged() {}

void TextExample::TextComboboxChanged() {}

void TextExample::ElideComboboxChanged() {}

void TextExample::PrefixComboboxChanged() {}

void TextExample::WeightComboboxChanged() {}

}  // namespace views::examples