summaryrefslogtreecommitdiffstats
path: root/mojo/examples/aura_demo
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-17 00:47:33 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-17 00:47:33 +0000
commite6a1635b22a381997f3557a0b18437160731bdf1 (patch)
tree2c737f388ec084ae3894aecbbcf3da7a784d18f4 /mojo/examples/aura_demo
parent3615989732561d148032aeb74475d79948f4e000 (diff)
downloadchromium_src-e6a1635b22a381997f3557a0b18437160731bdf1.zip
chromium_src-e6a1635b22a381997f3557a0b18437160731bdf1.tar.gz
chromium_src-e6a1635b22a381997f3557a0b18437160731bdf1.tar.bz2
Rename ViewManager types
INode->NodeData IViewManager->ViewManagerService IViewManagerInit->ViewManagerInitService IViewManagerClient->ViewManagerClient ViewManagerConnection->ViewManagerServiceImpl ViewManagerInitConnection->ViewManagerInitServiceImpl BUG=384443 TEST=none R=ben@chromium.org TBR=ben@chromium.org Review URL: https://codereview.chromium.org/339743003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/aura_demo')
-rw-r--r--mojo/examples/aura_demo/aura_demo.cc37
-rw-r--r--mojo/examples/aura_demo/view_manager_init.cc2
2 files changed, 20 insertions, 19 deletions
diff --git a/mojo/examples/aura_demo/aura_demo.cc b/mojo/examples/aura_demo/aura_demo.cc
index c0fad68..ba8c48e 100644
--- a/mojo/examples/aura_demo/aura_demo.cc
+++ b/mojo/examples/aura_demo/aura_demo.cc
@@ -130,28 +130,28 @@ class DemoWindowTreeClient : public aura::client::WindowTreeClient {
class AuraDemo;
-// Trivial IViewManagerClient implementation. Forwards to AuraDemo when
+// Trivial ViewManagerClient implementation. Forwards to AuraDemo when
// connection established.
-class IViewManagerClientImpl
- : public InterfaceImpl<view_manager::IViewManagerClient> {
+class ViewManagerClientImpl
+ : public InterfaceImpl<view_manager::ViewManagerClient> {
public:
- explicit IViewManagerClientImpl(AuraDemo* aura_demo)
+ explicit ViewManagerClientImpl(AuraDemo* aura_demo)
: aura_demo_(aura_demo) {}
- virtual ~IViewManagerClientImpl() {}
+ virtual ~ViewManagerClientImpl() {}
private:
void OnResult(bool result) {
- VLOG(1) << "IViewManagerClientImpl::::OnResult result=" << result;
+ VLOG(1) << "ViewManagerClientImpl::::OnResult result=" << result;
DCHECK(result);
}
- // IViewManagerClient:
+ // ViewManagerClient:
virtual void OnViewManagerConnectionEstablished(
uint16_t connection_id,
const String& creator_url,
uint32_t next_server_change_id,
- mojo::Array<view_manager::INodePtr> nodes) OVERRIDE;
- virtual void OnRootsAdded(Array<view_manager::INodePtr> nodes) OVERRIDE {
+ mojo::Array<view_manager::NodeDataPtr> nodes) OVERRIDE;
+ virtual void OnRootsAdded(Array<view_manager::NodeDataPtr> nodes) OVERRIDE {
NOTREACHED();
}
virtual void OnServerChangeIdAdvanced(
@@ -166,7 +166,7 @@ class IViewManagerClientImpl
uint32_t new_parent,
uint32_t old_parent,
uint32_t server_change_id,
- mojo::Array<view_manager::INodePtr> nodes) OVERRIDE {
+ mojo::Array<view_manager::NodeDataPtr> nodes) OVERRIDE {
}
virtual void OnNodeReordered(
uint32_t node_id,
@@ -190,7 +190,7 @@ class IViewManagerClientImpl
AuraDemo* aura_demo_;
- DISALLOW_COPY_AND_ASSIGN(IViewManagerClientImpl);
+ DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl);
};
class AuraDemo : public Application, public WindowTreeHostMojoDelegate {
@@ -201,11 +201,12 @@ class AuraDemo : public Application, public WindowTreeHostMojoDelegate {
window2_(NULL),
window21_(NULL),
view_id_(0) {
- AddService<IViewManagerClientImpl>(this);
+ AddService<ViewManagerClientImpl>(this);
}
virtual ~AuraDemo() {}
- void SetRoot(view_manager::IViewManager* view_manager, uint32_t view_id) {
+ void SetRoot(view_manager::ViewManagerService* view_manager,
+ uint32_t view_id) {
aura::Env::CreateInstance(true);
view_manager_ = view_manager;
view_id_ = view_id;
@@ -278,7 +279,7 @@ class AuraDemo : public Application, public WindowTreeHostMojoDelegate {
scoped_ptr<DemoWindowDelegate> delegate2_;
scoped_ptr<DemoWindowDelegate> delegate21_;
- view_manager::IViewManager* view_manager_;
+ view_manager::ViewManagerService* view_manager_;
aura::Window* window1_;
aura::Window* window2_;
@@ -293,16 +294,16 @@ class AuraDemo : public Application, public WindowTreeHostMojoDelegate {
DISALLOW_COPY_AND_ASSIGN(AuraDemo);
};
-void IViewManagerClientImpl::OnViewManagerConnectionEstablished(
+void ViewManagerClientImpl::OnViewManagerConnectionEstablished(
uint16_t connection_id,
const String& creator_url,
uint32_t next_server_change_id,
- mojo::Array<view_manager::INodePtr> nodes) {
+ mojo::Array<view_manager::NodeDataPtr> nodes) {
const uint32_t view_id = connection_id << 16 | 1;
- client()->CreateView(view_id, base::Bind(&IViewManagerClientImpl::OnResult,
+ client()->CreateView(view_id, base::Bind(&ViewManagerClientImpl::OnResult,
base::Unretained(this)));
client()->SetView(nodes[0]->node_id, view_id,
- base::Bind(&IViewManagerClientImpl::OnResult,
+ base::Bind(&ViewManagerClientImpl::OnResult,
base::Unretained(this)));
aura_demo_->SetRoot(client(), view_id);
diff --git a/mojo/examples/aura_demo/view_manager_init.cc b/mojo/examples/aura_demo/view_manager_init.cc
index 2f42bbf..7a558d3 100644
--- a/mojo/examples/aura_demo/view_manager_init.cc
+++ b/mojo/examples/aura_demo/view_manager_init.cc
@@ -30,7 +30,7 @@ class ViewManagerInit : public Application {
VLOG(1) << "ViewManagerInit::DidConnection result=" << result;
}
- view_manager::IViewManagerInitPtr view_manager_init_;
+ view_manager::ViewManagerInitServicePtr view_manager_init_;
DISALLOW_COPY_AND_ASSIGN(ViewManagerInit);
};