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

Side by Side Diff: components/mus/server_view.cc

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 unified diff | Download patch
« no previous file with comments | « components/mus/server_view.h ('k') | components/mus/server_view_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/mus/server_view.h" 5 #include "components/mus/server_view.h"
6 6
7 #include <inttypes.h> 7 #include <inttypes.h>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "components/mus/server_view_delegate.h" 10 #include "components/mus/server_view_delegate.h"
11 #include "components/mus/server_view_observer.h" 11 #include "components/mus/server_view_observer.h"
12 #include "components/mus/surfaces/surfaces_state.h" 12 #include "components/mus/surfaces/surfaces_state.h"
13 #include "mojo/converters/geometry/geometry_type_converters.h" 13 #include "mojo/converters/geometry/geometry_type_converters.h"
14 #include "mojo/converters/surfaces/surfaces_type_converters.h" 14 #include "mojo/converters/surfaces/surfaces_type_converters.h"
15 15
16 namespace view_manager { 16 namespace mus {
17 17
18 namespace { 18 namespace {
19 19
20 void CallCallback(const mojo::Closure& callback, cc::SurfaceDrawStatus status) { 20 void CallCallback(const mojo::Closure& callback, cc::SurfaceDrawStatus status) {
21 callback.Run(); 21 callback.Run();
22 } 22 }
23 23
24 } // namespace 24 } // namespace
25 25
26 ServerView::ServerView(ServerViewDelegate* delegate, const ViewId& id) 26 ServerView::ServerView(ServerViewDelegate* delegate, const ViewId& id)
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 return; 304 return;
305 client_->ReturnResources( 305 client_->ReturnResources(
306 mojo::Array<mojo::ReturnedResourcePtr>::From(resources)); 306 mojo::Array<mojo::ReturnedResourcePtr>::From(resources));
307 } 307 }
308 308
309 void ServerView::RemoveImpl(ServerView* view) { 309 void ServerView::RemoveImpl(ServerView* view) {
310 view->parent_ = NULL; 310 view->parent_ = NULL;
311 children_.erase(std::find(children_.begin(), children_.end(), view)); 311 children_.erase(std::find(children_.begin(), children_.end(), view));
312 } 312 }
313 313
314 } // namespace view_manager 314 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/server_view.h ('k') | components/mus/server_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698