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

Unified Diff: components/mus/view_tree_impl.cc

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/view_tree_impl.h ('k') | components/mus/view_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/view_tree_impl.cc
diff --git a/components/mus/view_tree_impl.cc b/components/mus/view_tree_impl.cc
index b97583e1fbf1b804651bc5491cd63a145e011539..bcc0364ac199999bcd1753fe2a700cac1d33bfc4 100644
--- a/components/mus/view_tree_impl.cc
+++ b/components/mus/view_tree_impl.cc
@@ -20,6 +20,7 @@
using mojo::Array;
using mojo::Callback;
+using mojo::Id;
using mojo::InterfaceRequest;
using mojo::OrderDirection;
using mojo::Rect;
@@ -28,10 +29,10 @@
using mojo::String;
using mojo::ViewDataPtr;
-namespace mus {
+namespace view_manager {
ViewTreeImpl::ViewTreeImpl(ConnectionManager* connection_manager,
- ConnectionSpecificId creator_id,
+ mojo::ConnectionSpecificId creator_id,
const ViewId& root_id,
uint32_t policy_bitmask)
: connection_manager_(connection_manager),
@@ -67,7 +68,7 @@
const ServerView* focused_view = host ? host->GetFocusedView() : nullptr;
if (focused_view)
focused_view = access_policy_->GetViewForFocusChange(focused_view);
- const Id focused_view_transport_id(
+ const mojo::Id focused_view_transport_id(
ViewIdToTransportId(focused_view ? focused_view->id() : ViewId()));
client->OnEmbed(id_, ViewToViewData(to_send.front()), tree.Pass(),
@@ -155,7 +156,7 @@
bool ViewTreeImpl::Embed(const ViewId& view_id,
mojo::ViewTreeClientPtr client,
uint32_t policy_bitmask,
- ConnectionSpecificId* connection_id) {
+ mojo::ConnectionSpecificId* connection_id) {
*connection_id = kInvalidConnectionId;
if (!client.get() || !CanEmbed(view_id, policy_bitmask))
return false;
@@ -605,7 +606,7 @@
callback.Run(success);
}
-void ViewTreeImpl::RequestSurface(Id view_id,
+void ViewTreeImpl::RequestSurface(mojo::Id view_id,
mojo::InterfaceRequest<mojo::Surface> surface,
mojo::SurfaceClientPtr client) {
ServerView* view = GetView(ViewIdFromTransportId(view_id));
@@ -638,11 +639,11 @@
}
}
-void ViewTreeImpl::Embed(Id transport_view_id,
+void ViewTreeImpl::Embed(mojo::Id transport_view_id,
mojo::ViewTreeClientPtr client,
uint32_t policy_bitmask,
const EmbedCallback& callback) {
- ConnectionSpecificId connection_id = kInvalidConnectionId;
+ mojo::ConnectionSpecificId connection_id = kInvalidConnectionId;
const bool result = Embed(ViewIdFromTransportId(transport_view_id),
client.Pass(), policy_bitmask, &connection_id);
callback.Run(result, connection_id);
@@ -679,4 +680,4 @@
return is_embed_root_ && root_ && GetView(*root_)->Contains(view);
}
-} // namespace mus
+} // namespace view_manager
« no previous file with comments | « components/mus/view_tree_impl.h ('k') | components/mus/view_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698