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

Side by Side Diff: mojo/services/view_manager/public/cpp/view_tracker.h

Issue 911073005: Drop all uses of //base except ObserverList from view mgr client lib (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
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 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_
7 7
8 #include <stdint.h>
8 #include <set> 9 #include <set>
9 10
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "view_manager/public/cpp/view_observer.h" 11 #include "view_manager/public/cpp/view_observer.h"
13 12
14 namespace mojo { 13 namespace mojo {
15 14
16 class ViewTracker : public ViewObserver { 15 class ViewTracker : public ViewObserver {
17 public: 16 public:
18 using Views = std::set<View*>; 17 using Views = std::set<View*>;
19 18
20 ViewTracker(); 19 ViewTracker();
21 ~ViewTracker() override; 20 ~ViewTracker() override;
(...skipping 10 matching lines...) Expand all
32 // Returns true if |view| was previously added and has not been removed or 31 // Returns true if |view| was previously added and has not been removed or
33 // deleted. 32 // deleted.
34 bool Contains(View* view); 33 bool Contains(View* view);
35 34
36 // ViewObserver overrides: 35 // ViewObserver overrides:
37 virtual void OnViewDestroying(View* view) override; 36 virtual void OnViewDestroying(View* view) override;
38 37
39 private: 38 private:
40 Views views_; 39 Views views_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(ViewTracker); 41 // Disallow copy and assignment.
42 ViewTracker(const ViewTracker&);
sky 2015/02/10 22:51:15 MOJO_DISALLOW_COPY_AND_ASSIGN?
43 void operator=(const ViewTracker&);
43 }; 44 };
44 45
45 } // namespace mojo 46 } // namespace mojo
46 47
47 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ 48 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698