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

Unified Diff: mandoline/ui/aura/surface_binding.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 | « mandoline/ui/aura/surface_binding.h ('k') | mandoline/ui/aura/surface_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/aura/surface_binding.cc
diff --git a/mandoline/ui/aura/surface_binding.cc b/mandoline/ui/aura/surface_binding.cc
index 80483737c5d3b588bb3d4942c56ae48e96f69bee..df2299ea65c9bf2ad2c95bc11dfc82d039d76c5c 100644
--- a/mandoline/ui/aura/surface_binding.cc
+++ b/mandoline/ui/aura/surface_binding.cc
@@ -42,17 +42,17 @@
: public base::RefCounted<PerConnectionState> {
public:
static PerConnectionState* Get(mojo::Shell* shell,
- mus::ViewTreeConnection* connection);
+ mojo::ViewTreeConnection* connection);
- scoped_ptr<cc::OutputSurface> CreateOutputSurface(mus::View* view);
+ scoped_ptr<cc::OutputSurface> CreateOutputSurface(mojo::View* view);
private:
- typedef std::map<mus::ViewTreeConnection*, PerConnectionState*>
- ConnectionToStateMap;
+ typedef std::map<mojo::ViewTreeConnection*,
+ PerConnectionState*> ConnectionToStateMap;
friend class base::RefCounted<PerConnectionState>;
- PerConnectionState(mojo::Shell* shell, mus::ViewTreeConnection* connection);
+ PerConnectionState(mojo::Shell* shell, mojo::ViewTreeConnection* connection);
~PerConnectionState();
void Init();
@@ -61,7 +61,7 @@
base::ThreadLocalPointer<ConnectionToStateMap>>::Leaky view_states;
mojo::Shell* shell_;
- mus::ViewTreeConnection* connection_;
+ mojo::ViewTreeConnection* connection_;
// Set of state needed to create an OutputSurface.
mojo::GpuPtr gpu_;
@@ -77,7 +77,7 @@
// static
SurfaceBinding::PerConnectionState* SurfaceBinding::PerConnectionState::Get(
mojo::Shell* shell,
- mus::ViewTreeConnection* connection) {
+ mojo::ViewTreeConnection* connection) {
ConnectionToStateMap* view_map = view_states.Pointer()->Get();
if (!view_map) {
view_map = new ConnectionToStateMap;
@@ -91,7 +91,7 @@
}
scoped_ptr<cc::OutputSurface>
-SurfaceBinding::PerConnectionState::CreateOutputSurface(mus::View* view) {
+SurfaceBinding::PerConnectionState::CreateOutputSurface(mojo::View* view) {
// TODO(sky): figure out lifetime here. Do I need to worry about the return
// value outliving this?
mojo::CommandBufferPtr cb;
@@ -105,8 +105,9 @@
SurfaceBinding::PerConnectionState::PerConnectionState(
mojo::Shell* shell,
- mus::ViewTreeConnection* connection)
- : shell_(shell) {}
+ mojo::ViewTreeConnection* connection)
+ : shell_(shell) {
+}
SurfaceBinding::PerConnectionState::~PerConnectionState() {
ConnectionToStateMap* view_map = view_states.Pointer()->Get();
@@ -131,8 +132,10 @@
// SurfaceBinding --------------------------------------------------------------
-SurfaceBinding::SurfaceBinding(mojo::Shell* shell, mus::View* view)
- : view_(view), state_(PerConnectionState::Get(shell, view->connection())) {}
+SurfaceBinding::SurfaceBinding(mojo::Shell* shell, mojo::View* view)
+ : view_(view),
+ state_(PerConnectionState::Get(shell, view->connection())) {
+}
SurfaceBinding::~SurfaceBinding() {
}
« no previous file with comments | « mandoline/ui/aura/surface_binding.h ('k') | mandoline/ui/aura/surface_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698