OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |