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

Side by Side Diff: components/mus/public/cpp/view_tracker.h

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
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 COMPONENTS_MUS_PUBLIC_CPP_VIEW_TRACKER_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_VIEW_TRACKER_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_TRACKER_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_TRACKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <set> 9 #include <set>
10 10
11 #include "components/mus/public/cpp/view_observer.h" 11 #include "components/mus/public/cpp/view_observer.h"
12 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" 12 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
13 13
14 namespace mojo { 14 namespace mus {
15 15
16 class ViewTracker : public ViewObserver { 16 class ViewTracker : public ViewObserver {
17 public: 17 public:
18 using Views = std::set<View*>; 18 using Views = std::set<View*>;
19 19
20 ViewTracker(); 20 ViewTracker();
21 ~ViewTracker() override; 21 ~ViewTracker() override;
22 22
23 // Returns the set of views being observed. 23 // Returns the set of views being observed.
24 const std::set<View*>& views() const { return views_; } 24 const std::set<View*>& views() const { return views_; }
(...skipping 10 matching lines...) Expand all
35 35
36 // ViewObserver overrides: 36 // ViewObserver overrides:
37 void OnViewDestroying(View* view) override; 37 void OnViewDestroying(View* view) override;
38 38
39 private: 39 private:
40 Views views_; 40 Views views_;
41 41
42 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewTracker); 42 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewTracker);
43 }; 43 };
44 44
45 } // namespace mojo 45 } // namespace mus
46 46
47 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_TRACKER_H_ 47 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_TRACKER_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/view_surface_client.h ('k') | components/mus/public/cpp/view_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698