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

Unified Diff: components/mus/ws/view_tree_host_impl.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/mus/ws/view_tree_host_impl.h ('k') | components/mus/ws/view_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/view_tree_host_impl.cc
diff --git a/components/mus/ws/view_tree_host_impl.cc b/components/mus/ws/view_tree_host_impl.cc
index 636711d9277399fe1fa0325cd719cef6b79353e5..fa72a5bd5c10bbcd7781bea4f3b8bc4735ecb688 100644
--- a/components/mus/ws/view_tree_host_impl.cc
+++ b/components/mus/ws/view_tree_host_impl.cc
@@ -17,7 +17,7 @@
namespace mus {
ViewTreeHostImpl::ViewTreeHostImpl(
- mojo::ViewTreeHostClientPtr client,
+ mojom::WindowTreeHostClientPtr client,
ConnectionManager* connection_manager,
mojo::ApplicationImpl* app_impl,
const scoped_refptr<GpuState>& gpu_state,
@@ -26,9 +26,8 @@ ViewTreeHostImpl::ViewTreeHostImpl(
connection_manager_(connection_manager),
client_(client.Pass()),
event_dispatcher_(this),
- display_manager_(DisplayManager::Create(app_impl,
- gpu_state,
- surfaces_state)),
+ display_manager_(
+ DisplayManager::Create(app_impl, gpu_state, surfaces_state)),
focus_controller_(new FocusController(this)) {
display_manager_->Init(this);
if (client_) {
@@ -45,8 +44,8 @@ void ViewTreeHostImpl::Init(ViewTreeHostDelegate* delegate) {
delegate_->OnDisplayInitialized();
}
-ViewTreeImpl* ViewTreeHostImpl::GetViewTree() {
- return delegate_ ? delegate_->GetViewTree() : nullptr;
+ViewTreeImpl* ViewTreeHostImpl::GetWindowTree() {
+ return delegate_ ? delegate_->GetWindowTree() : nullptr;
}
bool ViewTreeHostImpl::IsViewAttachedToRoot(const ServerView* view) const {
@@ -62,7 +61,7 @@ bool ViewTreeHostImpl::SchedulePaintIfInViewport(const ServerView* view,
return false;
}
-const mojo::ViewportMetrics& ViewTreeHostImpl::GetViewportMetrics() const {
+const mojom::ViewportMetrics& ViewTreeHostImpl::GetViewportMetrics() const {
return display_manager_->GetViewportMetrics();
}
@@ -157,8 +156,8 @@ void ViewTreeHostImpl::OnDisplayClosed() {
}
void ViewTreeHostImpl::OnViewportMetricsChanged(
- const mojo::ViewportMetrics& old_metrics,
- const mojo::ViewportMetrics& new_metrics) {
+ const mojom::ViewportMetrics& old_metrics,
+ const mojom::ViewportMetrics& new_metrics) {
if (!root_) {
root_.reset(connection_manager_->CreateServerView(
RootViewId(connection_manager_->GetAndAdvanceNextHostId())));
@@ -228,7 +227,7 @@ void ViewTreeHostImpl::OnFocusChanged(ServerView* old_focused_view,
}
// Ensure that we always notify the root connection of a focus change.
- ViewTreeImpl* root_tree = GetViewTree();
+ ViewTreeImpl* root_tree = GetWindowTree();
if (root_tree != owning_connection_old &&
root_tree != embedded_connection_old &&
root_tree != owning_connection_new &&
« no previous file with comments | « components/mus/ws/view_tree_host_impl.h ('k') | components/mus/ws/view_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698