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

Side by Side Diff: mojo/services/public/cpp/view_manager/lib/view.cc

Issue 418983002: Nukes view_manager namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge Created 6 years, 5 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 | Annotate | Revision Log
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 "mojo/services/public/cpp/view_manager/view.h" 5 #include "mojo/services/public/cpp/view_manager/view.h"
6 6
7 #include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h" 7 #include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h"
8 #include "mojo/services/public/cpp/view_manager/lib/view_private.h" 8 #include "mojo/services/public/cpp/view_manager/lib/view_private.h"
9 #include "mojo/services/public/cpp/view_manager/node.h" 9 #include "mojo/services/public/cpp/view_manager/node.h"
10 #include "mojo/services/public/cpp/view_manager/view_observer.h" 10 #include "mojo/services/public/cpp/view_manager/view_observer.h"
11 #include "ui/gfx/canvas.h" 11 #include "ui/gfx/canvas.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 namespace view_manager {
15 14
16 // static 15 // static
17 View* View::Create(ViewManager* manager) { 16 View* View::Create(ViewManager* manager) {
18 View* view = new View(manager); 17 View* view = new View(manager);
19 static_cast<ViewManagerClientImpl*>(manager)->AddView(view); 18 static_cast<ViewManagerClientImpl*>(manager)->AddView(view);
20 return view; 19 return view;
21 } 20 }
22 21
23 void View::Destroy() { 22 void View::Destroy() {
24 if (manager_) 23 if (manager_)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (manager_) 63 if (manager_)
65 static_cast<ViewManagerClientImpl*>(manager_)->RemoveView(id_); 64 static_cast<ViewManagerClientImpl*>(manager_)->RemoveView(id_);
66 65
67 FOR_EACH_OBSERVER(ViewObserver, observers_, OnViewDestroyed(this)); 66 FOR_EACH_OBSERVER(ViewObserver, observers_, OnViewDestroyed(this));
68 } 67 }
69 68
70 void View::LocalDestroy() { 69 void View::LocalDestroy() {
71 delete this; 70 delete this;
72 } 71 }
73 72
74 } // namespace view_manager
75 } // namespace mojo 73 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698