| 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" | |
| 13 #include "ui/aura/client/capture_client.h" | 12 #include "ui/aura/client/capture_client.h" |
| 14 #include "ui/views/views_export.h" | 13 #include "ui/views/views_export.h" |
| 15 | 14 |
| 16 namespace aura { | 15 namespace aura { |
| 17 class RootWindow; | 16 class RootWindow; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace views { | 19 namespace views { |
| 21 | 20 |
| 22 // Desktop implementation of CaptureClient. There is one CaptureClient per | 21 // Desktop implementation of CaptureClient. There is one CaptureClient per |
| (...skipping 28 matching lines...) Expand all Loading... |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 typedef std::set<DesktopCaptureClient*> CaptureClients; | 52 typedef std::set<DesktopCaptureClient*> CaptureClients; |
| 54 | 53 |
| 55 aura::Window* root_; | 54 aura::Window* root_; |
| 56 aura::Window* capture_window_; | 55 aura::Window* capture_window_; |
| 57 | 56 |
| 58 // Set of DesktopCaptureClients. | 57 // Set of DesktopCaptureClients. |
| 59 static CaptureClients* capture_clients_; | 58 static CaptureClients* capture_clients_; |
| 60 | 59 |
| 61 base::ObserverList<aura::client::CaptureClientObserver> observers_; | |
| 62 | |
| 63 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient); | 60 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient); |
| 64 }; | 61 }; |
| 65 | 62 |
| 66 } // namespace views | 63 } // namespace views |
| 67 | 64 |
| 68 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ | 65 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ |
| OLD | NEW |