Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Unified Diff: components/web_view/public/cpp/web_view.cc

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/web_view/public/cpp/web_view.h ('k') | components/web_view/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/public/cpp/web_view.cc
diff --git a/components/web_view/public/cpp/web_view.cc b/components/web_view/public/cpp/web_view.cc
deleted file mode 100644
index e7583380b70e77201c05b10ff622f21776ef748f..0000000000000000000000000000000000000000
--- a/components/web_view/public/cpp/web_view.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2015 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 "components/web_view/public/cpp/web_view.h"
-
-#include <stdint.h>
-#include <utility>
-
-#include "base/bind.h"
-#include "components/mus/public/cpp/window.h"
-#include "mojo/shell/public/cpp/shell.h"
-
-namespace web_view {
-namespace {
-
-void OnEmbed(bool success, uint16_t connection_id) {
- CHECK(success);
-}
-
-} // namespace
-
-WebView::WebView(mojom::WebViewClient* client) : binding_(client) {}
-WebView::~WebView() {}
-
-void WebView::Init(mojo::Shell* shell, mus::Window* window) {
- mojom::WebViewFactoryPtr factory;
- shell->ConnectToService("mojo:web_view", &factory);
- factory->CreateWebView(binding_.CreateInterfacePtrAndBind(),
- GetProxy(&web_view_));
-
- mus::mojom::WindowTreeClientPtr window_tree_client;
- web_view_->GetWindowTreeClient(GetProxy(&window_tree_client));
- window->Embed(std::move(window_tree_client),
- mus::mojom::WindowTree::kAccessPolicyEmbedRoot,
- base::Bind(&OnEmbed));
-}
-
-} // namespace web_view
« no previous file with comments | « components/web_view/public/cpp/web_view.h ('k') | components/web_view/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698