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

Unified Diff: components/mus/view_tree_impl.h

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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_host_impl.cc ('k') | components/mus/view_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/view_tree_impl.h
diff --git a/components/mus/view_tree_impl.h b/components/mus/view_tree_impl.h
index 2c6f060119fca8ea37849505cf8a875c1aa9742b..8549585070791a68710945f1bca233e9559f7a94 100644
--- a/components/mus/view_tree_impl.h
+++ b/components/mus/view_tree_impl.h
@@ -22,7 +22,7 @@ namespace gfx {
class Rect;
}
-namespace view_manager {
+namespace mus {
class AccessPolicy;
class ConnectionManager;
@@ -36,7 +36,7 @@ class ViewTreeHostImpl;
class ViewTreeImpl : public mojo::ViewTree, public AccessPolicyDelegate {
public:
ViewTreeImpl(ConnectionManager* connection_manager,
- mojo::ConnectionSpecificId creator_id,
+ ConnectionSpecificId creator_id,
const ViewId& root_id,
uint32_t policy_bitmask);
~ViewTreeImpl() override;
@@ -45,8 +45,8 @@ class ViewTreeImpl : public mojo::ViewTree, public AccessPolicyDelegate {
// client via OnEmbed().
void Init(mojo::ViewTreeClient* client, mojo::ViewTreePtr tree);
- mojo::ConnectionSpecificId id() const { return id_; }
- mojo::ConnectionSpecificId creator_id() const { return creator_id_; }
+ ConnectionSpecificId id() const { return id_; }
+ ConnectionSpecificId creator_id() const { return creator_id_; }
mojo::ViewTreeClient* client() { return client_; }
@@ -80,7 +80,7 @@ class ViewTreeImpl : public mojo::ViewTree, public AccessPolicyDelegate {
bool Embed(const ViewId& view_id,
mojo::ViewTreeClientPtr client,
uint32_t policy_bitmask,
- mojo::ConnectionSpecificId* connection_id);
+ ConnectionSpecificId* connection_id);
void Embed(const ViewId& view_id, mojo::URLRequestPtr request);
// The following methods are invoked after the corresponding change has been
@@ -116,8 +116,8 @@ class ViewTreeImpl : public mojo::ViewTree, public AccessPolicyDelegate {
const ServerView* new_focused_view);
private:
- using ViewIdSet = base::hash_set<mojo::Id>;
- using ViewMap = std::map<mojo::ConnectionSpecificId, ServerView*>;
+ using ViewIdSet = base::hash_set<Id>;
+ using ViewMap = std::map<ConnectionSpecificId, ServerView*>;
bool IsViewKnown(const ServerView* view) const;
@@ -170,44 +170,44 @@ class ViewTreeImpl : public mojo::ViewTree, public AccessPolicyDelegate {
// ViewTree:
void CreateView(
- mojo::Id transport_view_id,
+ Id transport_view_id,
const mojo::Callback<void(mojo::ErrorCode)>& callback) override;
- void DeleteView(mojo::Id transport_view_id,
+ void DeleteView(Id transport_view_id,
const mojo::Callback<void(bool)>& callback) override;
- void AddView(mojo::Id parent_id,
- mojo::Id child_id,
+ void AddView(Id parent_id,
+ Id child_id,
const mojo::Callback<void(bool)>& callback) override;
void RemoveViewFromParent(
- mojo::Id view_id,
+ Id view_id,
const mojo::Callback<void(bool)>& callback) override;
- void ReorderView(mojo::Id view_id,
- mojo::Id relative_view_id,
+ void ReorderView(Id view_id,
+ Id relative_view_id,
mojo::OrderDirection direction,
const mojo::Callback<void(bool)>& callback) override;
- void GetViewTree(mojo::Id view_id,
+ void GetViewTree(Id view_id,
const mojo::Callback<void(mojo::Array<mojo::ViewDataPtr>)>&
callback) override;
- void SetViewBounds(mojo::Id view_id,
+ void SetViewBounds(Id view_id,
mojo::RectPtr bounds,
const mojo::Callback<void(bool)>& callback) override;
- void SetViewVisibility(mojo::Id view_id,
+ void SetViewVisibility(Id view_id,
bool visible,
const mojo::Callback<void(bool)>& callback) override;
- void SetViewProperty(mojo::Id view_id,
+ void SetViewProperty(Id view_id,
const mojo::String& name,
mojo::Array<uint8_t> value,
const mojo::Callback<void(bool)>& callback) override;
- void RequestSurface(mojo::Id view_id,
+ void RequestSurface(Id view_id,
mojo::InterfaceRequest<mojo::Surface> surface,
mojo::SurfaceClientPtr client) override;
- void Embed(mojo::Id transport_view_id,
+ void Embed(Id transport_view_id,
mojo::ViewTreeClientPtr client,
uint32_t policy_bitmask,
const EmbedCallback& callback) override;
void SetFocus(uint32_t view_id) override;
void SetViewTextInputState(uint32_t view_id,
mojo::TextInputStatePtr state) override;
- void SetImeVisibility(mojo::Id transport_view_id,
+ void SetImeVisibility(Id transport_view_id,
bool visible,
mojo::TextInputStatePtr state) override;
@@ -221,15 +221,15 @@ class ViewTreeImpl : public mojo::ViewTree, public AccessPolicyDelegate {
ConnectionManager* connection_manager_;
// Id of this connection as assigned by ConnectionManager.
- const mojo::ConnectionSpecificId id_;
+ const ConnectionSpecificId id_;
// ID of the connection that created us. If 0 it indicates either we were
// created by the root, or the connection that created us has been destroyed.
- mojo::ConnectionSpecificId creator_id_;
+ ConnectionSpecificId creator_id_;
mojo::ViewTreeClient* client_;
- scoped_ptr<view_manager::AccessPolicy> access_policy_;
+ scoped_ptr<mus::AccessPolicy> access_policy_;
// The views created by this connection. This connection owns these objects.
ViewMap view_map_;
@@ -247,6 +247,6 @@ class ViewTreeImpl : public mojo::ViewTree, public AccessPolicyDelegate {
DISALLOW_COPY_AND_ASSIGN(ViewTreeImpl);
};
-} // namespace view_manager
+} // namespace mus
#endif // COMPONENTS_MUS_VIEW_TREE_IMPL_H_
« no previous file with comments | « components/mus/view_tree_host_impl.cc ('k') | components/mus/view_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698