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

Unified Diff: mojo/services/view_manager/root_node_manager.cc

Issue 510483003: Rename RootViewManager to DisplayManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « mojo/services/view_manager/root_node_manager.h ('k') | mojo/services/view_manager/root_view_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/root_node_manager.cc
diff --git a/mojo/services/view_manager/root_node_manager.cc b/mojo/services/view_manager/root_node_manager.cc
index a60a7e274a4f662fd9673558528086abd91b5a63..18461b790110755e5ebce0ddc376733cfdd91a9b 100644
--- a/mojo/services/view_manager/root_node_manager.cc
+++ b/mojo/services/view_manager/root_node_manager.cc
@@ -39,14 +39,14 @@ RootNodeManager::Context::~Context() {
RootNodeManager::RootNodeManager(
ApplicationConnection* app_connection,
- RootViewManagerDelegate* view_manager_delegate,
+ DisplayManagerDelegate* display_manager_delegate,
const Callback<void()>& native_viewport_closed_callback)
: app_connection_(app_connection),
next_connection_id_(1),
- root_view_manager_(app_connection,
- this,
- view_manager_delegate,
- native_viewport_closed_callback),
+ display_manager_(app_connection,
+ this,
+ display_manager_delegate,
+ native_viewport_closed_callback),
root_(new Node(this, RootNodeId())),
current_change_(NULL) {
}
@@ -244,7 +244,7 @@ void RootNodeManager::OnNodeDestroyed(const Node* node) {
void RootNodeManager::OnNodeHierarchyChanged(const Node* node,
const Node* new_parent,
const Node* old_parent) {
- if (!root_view_manager_.in_setup())
+ if (!display_manager_.in_setup())
ProcessNodeHierarchyChanged(node, new_parent, old_parent);
}
@@ -256,12 +256,12 @@ void RootNodeManager::OnNodeBoundsChanged(const Node* node,
return;
// TODO(sky): optimize this.
- root_view_manager_.SchedulePaint(node->parent(), old_bounds);
- root_view_manager_.SchedulePaint(node->parent(), new_bounds);
+ display_manager_.SchedulePaint(node->parent(), old_bounds);
+ display_manager_.SchedulePaint(node->parent(), new_bounds);
}
void RootNodeManager::OnNodeBitmapChanged(const Node* node) {
- root_view_manager_.SchedulePaint(node, gfx::Rect(node->bounds().size()));
+ display_manager_.SchedulePaint(node, gfx::Rect(node->bounds().size()));
}
} // namespace service
« no previous file with comments | « mojo/services/view_manager/root_node_manager.h ('k') | mojo/services/view_manager/root_view_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698