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

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

Issue 2436023003: Adds CaptureClientObserver as a way to track changes in capture (Closed)
Patch Set: fix comments Created 4 years, 1 month 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"
(...skipping 24 matching lines...) Expand all
35 class VIEWS_EXPORT DesktopCaptureClient : public aura::client::CaptureClient { 35 class VIEWS_EXPORT DesktopCaptureClient : public aura::client::CaptureClient {
36 public: 36 public:
37 explicit DesktopCaptureClient(aura::Window* root); 37 explicit DesktopCaptureClient(aura::Window* root);
38 ~DesktopCaptureClient() override; 38 ~DesktopCaptureClient() override;
39 39
40 // Overridden from aura::client::CaptureClient: 40 // Overridden from aura::client::CaptureClient:
41 void SetCapture(aura::Window* window) override; 41 void SetCapture(aura::Window* window) override;
42 void ReleaseCapture(aura::Window* window) override; 42 void ReleaseCapture(aura::Window* window) override;
43 aura::Window* GetCaptureWindow() override; 43 aura::Window* GetCaptureWindow() override;
44 aura::Window* GetGlobalCaptureWindow() override; 44 aura::Window* GetGlobalCaptureWindow() override;
45 void AddObserver(aura::client::CaptureClientObserver* observer) override;
46 void RemoveObserver(aura::client::CaptureClientObserver* observer) override;
45 47
46 private: 48 private:
47 typedef std::set<DesktopCaptureClient*> CaptureClients; 49 typedef std::set<DesktopCaptureClient*> CaptureClients;
48 50
49 aura::Window* root_; 51 aura::Window* root_;
50 aura::Window* capture_window_; 52 aura::Window* capture_window_;
51 53
52 // Set of DesktopCaptureClients. 54 // Set of DesktopCaptureClients.
53 static CaptureClients* capture_clients_; 55 static CaptureClients* capture_clients_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient); 57 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient);
56 }; 58 };
57 59
58 } // namespace views 60 } // namespace views
59 61
60 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ 62 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/client/default_capture_client.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