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