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

#include <memory>
#include <set>
#include <utility>

#include "base/logging.h"
#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/base/models/simple_menu_model.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/examples/examples_color_id.h"
#include "ui/views/examples/grit/views_examples_resources.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/metadata/view_factory.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"

GetStringUTF16;
GetStringUTF8;

namespace viewsexamples  // namespace views::examples

DEFINE_VIEW_BUILDER()

namespace views::examples {

// ExampleMenuModel ---------------------------------------------------------

ExampleMenuModel::ExampleMenuModel() :{}

bool ExampleMenuModel::IsCommandIdChecked(int command_id) const {}

bool ExampleMenuModel::IsCommandIdEnabled(int command_id) const {}

void ExampleMenuModel::ExecuteCommand(int command_id, int event_flags) {}

// ExampleMenuButton -----------------------------------------------------------

ExampleMenuButton::ExampleMenuButton(const std::u16string& test)
    :{}

ExampleMenuButton::~ExampleMenuButton() = default;

void ExampleMenuButton::ButtonPressed() {}

ui::SimpleMenuModel* ExampleMenuButton::GetMenuModel() {}

MenuExample::MenuExample()
    :{}

MenuExample::~MenuExample() = default;

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

}  // namespace views::examples