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

Side by Side Diff: services/ui/common/image_cursors_set.h

Issue 2916823002: Move Mus into chrome's process when running with --mus.
Patch Set: Removing debug include. Created 3 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
« no previous file with comments | « services/ui/common/BUILD.gn ('k') | services/ui/common/image_cursors_set.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_UI_COMMON_IMAGE_CURSORS_SET_H_
6 #define SERVICES_UI_COMMON_IMAGE_CURSORS_SET_H_
7
8 #include <memory>
9 #include <set>
10
11 #include "base/memory/weak_ptr.h"
12
13 namespace ui {
14
15 class ImageCursors;
16
17 // Helper class wrapping a set of ImageCursors objects.
18 class ImageCursorsSet {
19 public:
20 ImageCursorsSet();
21 virtual ~ImageCursorsSet();
22
23 void AddImageCursors(std::unique_ptr<ImageCursors> image_cursors);
24 void RemoveImageCursors(ImageCursors* image_cursors);
25 base::WeakPtr<ImageCursorsSet> GetWeakPtr();
26
27 private:
28 std::set<std::unique_ptr<ImageCursors>> image_cursors_set_;
29 base::WeakPtrFactory<ImageCursorsSet> weak_ptr_factory_;
30
31 DISALLOW_COPY_AND_ASSIGN(ImageCursorsSet);
32 };
33
34 } // namespace ui
35
36 #endif // SERVICES_UI_COMMON_IMAGE_CURSORS_SET_H_
OLDNEW
« no previous file with comments | « services/ui/common/BUILD.gn ('k') | services/ui/common/image_cursors_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698