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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_capture_client.h

Issue 2626013005: Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients. (Closed)
Patch Set: fix leak in test Created 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/observer_list.h"
12 #include "ui/aura/client/capture_client.h" 13 #include "ui/aura/client/capture_client.h"
13 #include "ui/views/views_export.h" 14 #include "ui/views/views_export.h"
14 15
15 namespace aura { 16 namespace aura {
16 class RootWindow; 17 class RootWindow;
17 } 18 }
18 19
19 namespace views { 20 namespace views {
20 21
21 // Desktop implementation of CaptureClient. There is one CaptureClient per 22 // Desktop implementation of CaptureClient. There is one CaptureClient per
(...skipping 28 matching lines...) Expand all
50 51
51 private: 52 private:
52 typedef std::set<DesktopCaptureClient*> CaptureClients; 53 typedef std::set<DesktopCaptureClient*> CaptureClients;
53 54
54 aura::Window* root_; 55 aura::Window* root_;
55 aura::Window* capture_window_; 56 aura::Window* capture_window_;
56 57
57 // Set of DesktopCaptureClients. 58 // Set of DesktopCaptureClients.
58 static CaptureClients* capture_clients_; 59 static CaptureClients* capture_clients_;
59 60
61 base::ObserverList<aura::client::CaptureClientObserver> observers_;
62
60 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient); 63 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient);
61 }; 64 };
62 65
63 } // namespace views 66 } // namespace views
64 67
65 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ 68 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/views/mus/pointer_watcher_event_router.cc ('k') | ui/views/widget/desktop_aura/desktop_capture_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698