summaryrefslogtreecommitdiff
path: root/chromium/ui/views/examples/examples_window_with_content.cc
blob: 1133e88fa9a320f2aa0fc0a6bf57ac64ed554ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/views/examples/examples_window_with_content.h"

#include <memory>
#include <utility>
#include <vector>

#include "content/public/browser/browser_context.h"
#include "ui/views/examples/webview_example.h"

namespace views {
namespace examples {

void ShowExamplesWindowWithContent(Operation operation,
                                   content::BrowserContext* browser_context,
                                   gfx::NativeWindow window_context) {
  std::vector<std::unique_ptr<ExampleBase>> extra_examples;
  extra_examples.push_back(std::make_unique<WebViewExample>(browser_context));
  ShowExamplesWindow(operation, window_context, std::move(extra_examples));
}

}  // namespace examples
}  // namespace views