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

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: Updated all the namespaces in mus 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
Index: components/mus/view_tree_impl.h
diff --git a/components/mus/view_tree_impl.h b/components/mus/view_tree_impl.h
index 9efbeabea5aa23e70036f4cea5eef9ee327f7d1e..fdbc5407b4280adad600860aa102396a86cd6938 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);
~ViewTreeImpl() override;
@@ -44,8 +44,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_; }
@@ -78,7 +78,7 @@ class ViewTreeImpl : public mojo::ViewTree, public AccessPolicyDelegate {
bool SetViewVisibility(const ViewId& view_id, bool visible);
bool Embed(const ViewId& view_id,
mojo::ViewTreeClientPtr client,
- 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
@@ -114,8 +114,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;
@@ -168,47 +168,46 @@ 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,
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;
- void SetAccessPolicy(mojo::Id transport_view_id,
- uint32 policy_bitmask) override;
+ void SetAccessPolicy(Id transport_view_id, uint32 policy_bitmask) override;
// AccessPolicyDelegate:
bool IsRootForAccessPolicy(const ViewId& id) const override;
@@ -220,15 +219,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_;
@@ -246,6 +245,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_

Powered by Google App Engine
This is Rietveld 408576698