Commit bb0eada5 authored by darin@chromium.org's avatar darin@chromium.org

Mojo: Remove utility:: namespace

Public facing APIs should just live in the mojo:: namespace.

R=sky@chromium.org, viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/128803002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243799 0039d316-1c4b-4281-b951-d872f2087c98
parent a340bb43
...@@ -62,7 +62,7 @@ class SampleApp : public ShellClient { ...@@ -62,7 +62,7 @@ class SampleApp : public ShellClient {
} }
virtual void OnDestroyed() MOJO_OVERRIDE { virtual void OnDestroyed() MOJO_OVERRIDE {
utility::RunLoop::current()->Quit(); RunLoop::current()->Quit();
} }
virtual void OnEvent(const Event& event) MOJO_OVERRIDE { virtual void OnEvent(const Event& event) MOJO_OVERRIDE {
...@@ -85,8 +85,8 @@ class SampleApp : public ShellClient { ...@@ -85,8 +85,8 @@ class SampleApp : public ShellClient {
extern "C" SAMPLE_APP_EXPORT MojoResult CDECL MojoMain( extern "C" SAMPLE_APP_EXPORT MojoResult CDECL MojoMain(
MojoHandle shell_handle) { MojoHandle shell_handle) {
mojo::utility::Environment env; mojo::Environment env;
mojo::utility::RunLoop loop; mojo::RunLoop loop;
MojoGLES2Initialize(); MojoGLES2Initialize();
mojo::examples::SampleApp app( mojo::examples::SampleApp app(
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "mojo/public/utility/thread_local.h" #include "mojo/public/utility/thread_local.h"
namespace mojo { namespace mojo {
namespace utility {
namespace internal { namespace internal {
namespace { namespace {
...@@ -109,5 +108,4 @@ void BindingsSupportImpl::CancelWait(AsyncWaitID async_wait_id) { ...@@ -109,5 +108,4 @@ void BindingsSupportImpl::CancelWait(AsyncWaitID async_wait_id) {
} }
} // namespace internal } // namespace internal
} // namespace utility
} // namespace mojo } // namespace mojo
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include "mojo/public/system/macros.h" #include "mojo/public/system/macros.h"
namespace mojo { namespace mojo {
namespace utility {
namespace internal { namespace internal {
// BindingsSupport implementation that uses RunLoop. Before using this you must // BindingsSupport implementation that uses RunLoop. Before using this you must
...@@ -40,7 +39,6 @@ class BindingsSupportImpl : public BindingsSupport { ...@@ -40,7 +39,6 @@ class BindingsSupportImpl : public BindingsSupport {
}; };
} // namespace internal } // namespace internal
} // namespace utility
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_ #endif // MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
namespace utility {
namespace { namespace {
class TestAsyncWaitCallback : public BindingsSupport::AsyncWaitCallback { class TestAsyncWaitCallback : public BindingsSupport::AsyncWaitCallback {
...@@ -110,5 +109,4 @@ TEST_F(BindingsSupportImplTest, CancelCallback) { ...@@ -110,5 +109,4 @@ TEST_F(BindingsSupportImplTest, CancelCallback) {
} }
} // namespace } // namespace
} // namespace utility
} // namespace mojo } // namespace mojo
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "mojo/public/utility/run_loop.h" #include "mojo/public/utility/run_loop.h"
namespace mojo { namespace mojo {
namespace utility {
Environment::Environment() : bindings_support_(NULL) { Environment::Environment() : bindings_support_(NULL) {
RunLoop::SetUp(); RunLoop::SetUp();
...@@ -28,5 +27,4 @@ Environment::~Environment() { ...@@ -28,5 +27,4 @@ Environment::~Environment() {
RunLoop::TearDown(); RunLoop::TearDown();
} }
} // namespace utility
} // namespace mojo } // namespace mojo
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "mojo/public/system/macros.h" #include "mojo/public/system/macros.h"
namespace mojo { namespace mojo {
namespace utility {
namespace internal { namespace internal {
class BindingsSupportImpl; class BindingsSupportImpl;
...@@ -28,7 +27,6 @@ class Environment { ...@@ -28,7 +27,6 @@ class Environment {
MOJO_DISALLOW_COPY_AND_ASSIGN(Environment); MOJO_DISALLOW_COPY_AND_ASSIGN(Environment);
}; };
} // namespace utility
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_ENVIRONMENT_H_ #endif // MOJO_PUBLIC_UTILITY_ENVIRONMENT_H_
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "mojo/public/utility/thread_local.h" #include "mojo/public/utility/thread_local.h"
namespace mojo { namespace mojo {
namespace utility {
namespace { namespace {
ThreadLocalPointer<RunLoop>* tls_run_loop = NULL; ThreadLocalPointer<RunLoop>* tls_run_loop = NULL;
...@@ -207,5 +206,4 @@ RunLoop::WaitState RunLoop::GetWaitState() const { ...@@ -207,5 +206,4 @@ RunLoop::WaitState RunLoop::GetWaitState() const {
return wait_state; return wait_state;
} }
} // namespace utility
} // namespace mojo } // namespace mojo
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "mojo/public/system/core_cpp.h" #include "mojo/public/system/core_cpp.h"
namespace mojo { namespace mojo {
namespace utility {
class RunLoopHandler; class RunLoopHandler;
...@@ -95,7 +94,6 @@ class RunLoop { ...@@ -95,7 +94,6 @@ class RunLoop {
MOJO_DISALLOW_COPY_AND_ASSIGN(RunLoop); MOJO_DISALLOW_COPY_AND_ASSIGN(RunLoop);
}; };
} // namespace utility
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_RUN_LOOP_H_ #endif // MOJO_PUBLIC_UTILITY_RUN_LOOP_H_
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "mojo/public/system/core_cpp.h" #include "mojo/public/system/core_cpp.h"
namespace mojo { namespace mojo {
namespace utility {
// Used by RunLoop to notify when a handle is either ready or has become // Used by RunLoop to notify when a handle is either ready or has become
// invalid. // invalid.
...@@ -21,7 +20,6 @@ class RunLoopHandler { ...@@ -21,7 +20,6 @@ class RunLoopHandler {
virtual ~RunLoopHandler() {} virtual ~RunLoopHandler() {}
}; };
} // namespace utility
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_RUN_LOOP_HANDLER_H_ #endif // MOJO_PUBLIC_UTILITY_RUN_LOOP_HANDLER_H_
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
namespace utility {
namespace { namespace {
class TestRunLoopHandler : public RunLoopHandler { class TestRunLoopHandler : public RunLoopHandler {
...@@ -190,5 +189,4 @@ TEST_F(RunLoopTest, Current) { ...@@ -190,5 +189,4 @@ TEST_F(RunLoopTest, Current) {
} }
} // namespace } // namespace
} // namespace utility
} // namespace mojo } // namespace mojo
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
#include "mojo/public/system/macros.h" #include "mojo/public/system/macros.h"
namespace mojo { namespace mojo {
namespace utility {
namespace internal { namespace internal {
// Helper functions that abstract the cross-platform APIs. Do not use directly. // Helper functions that abstract the cross-platform APIs. Do not use directly.
...@@ -124,7 +123,6 @@ class ThreadLocalBoolean { ...@@ -124,7 +123,6 @@ class ThreadLocalBoolean {
MOJO_DISALLOW_COPY_AND_ASSIGN(ThreadLocalBoolean); MOJO_DISALLOW_COPY_AND_ASSIGN(ThreadLocalBoolean);
}; };
} // namespace utility
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_THREAD_LOCAL_H_ #endif // MOJO_PUBLIC_UTILITY_THREAD_LOCAL_H_
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include <pthread.h> #include <pthread.h>
namespace mojo { namespace mojo {
namespace utility {
namespace internal { namespace internal {
// static // static
...@@ -38,5 +37,4 @@ void ThreadLocalPlatform::SetValueInSlot(SlotType slot, void* value) { ...@@ -38,5 +37,4 @@ void ThreadLocalPlatform::SetValueInSlot(SlotType slot, void* value) {
} }
} // namespace internal } // namespace internal
} // namespace utility
} // namespace mojo } // namespace mojo
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include <windows.h> #include <windows.h>
namespace mojo { namespace mojo {
namespace utility {
namespace internal { namespace internal {
// static // static
...@@ -37,5 +36,4 @@ void ThreadLocalPlatform::SetValueInSlot(SlotType slot, void* value) { ...@@ -37,5 +36,4 @@ void ThreadLocalPlatform::SetValueInSlot(SlotType slot, void* value) {
} }
} // namespace internal } // namespace internal
} // namespace utility
} // namespace mojo } // namespace mojo
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment