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

Unified Diff: components/web_view/frame_connection.cc

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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/frame_connection.h ('k') | components/web_view/frame_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/frame_connection.cc
diff --git a/components/web_view/frame_connection.cc b/components/web_view/frame_connection.cc
index ec2fde750406d21ff281687c54c3e6fb0c7dde07..fd7ac7684b5768c0b8f00672c6f0d3d2bcc70dbc 100644
--- a/components/web_view/frame_connection.cc
+++ b/components/web_view/frame_connection.cc
@@ -8,7 +8,7 @@
#include "base/callback.h"
#include "components/clipboard/public/interfaces/clipboard.mojom.h"
#include "components/mus/public/interfaces/gpu.mojom.h"
-#include "components/mus/public/interfaces/view_tree_host.mojom.h"
+#include "components/mus/public/interfaces/window_tree_host.mojom.h"
#include "components/resource_provider/public/interfaces/resource_provider.mojom.h"
#include "components/web_view/frame_tree.h"
#include "components/web_view/frame_utils.h"
@@ -33,15 +33,15 @@ void OnGotContentHandlerForFrame(
const uint32_t existing_content_handler_id,
const FrameTreeDelegate::CanNavigateFrameCallback& callback,
scoped_ptr<FrameConnection> connection) {
- mojo::ViewTreeClientPtr view_tree_client;
+ mus::mojom::WindowTreeClientPtr window_tree_client;
if (!AreAppIdsEqual(existing_content_handler_id,
connection->GetContentHandlerID())) {
- view_tree_client = connection->GetViewTreeClient();
+ window_tree_client = connection->GetWindowTreeClient();
}
FrameConnection* connection_ptr = connection.get();
callback.Run(connection_ptr->GetContentHandlerID(),
connection_ptr->frame_client(), connection.Pass(),
- view_tree_client.Pass());
+ window_tree_client.Pass());
}
} // namespace
@@ -94,8 +94,8 @@ void FrameConnection::Init(mojo::ApplicationImpl* app,
filter->filter.insert("mojo:tracing", tracing_interfaces.Pass());
mojo::Array<mojo::String> view_manager_interfaces;
- view_manager_interfaces.push_back(mojo::Gpu::Name_);
- view_manager_interfaces.push_back(mojo::ViewTreeHostFactory::Name_);
+ view_manager_interfaces.push_back(mus::mojom::Gpu::Name_);
+ view_manager_interfaces.push_back(mus::mojom::WindowTreeHostFactory::Name_);
filter->filter.insert("mojo:mus", view_manager_interfaces.Pass());
mojo::Array<mojo::String> test_runner_interfaces;
@@ -115,11 +115,11 @@ void FrameConnection::Init(mojo::ApplicationImpl* app,
application_connection_->AddContentHandlerIDCallback(on_got_id_callback);
}
-mojo::ViewTreeClientPtr FrameConnection::GetViewTreeClient() {
+mus::mojom::WindowTreeClientPtr FrameConnection::GetWindowTreeClient() {
DCHECK(application_connection_);
- mojo::ViewTreeClientPtr view_tree_client;
- application_connection_->ConnectToService(&view_tree_client);
- return view_tree_client.Pass();
+ mus::mojom::WindowTreeClientPtr window_tree_client;
+ application_connection_->ConnectToService(&window_tree_client);
+ return window_tree_client.Pass();
}
uint32_t FrameConnection::GetContentHandlerID() const {
« no previous file with comments | « components/web_view/frame_connection.h ('k') | components/web_view/frame_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698