OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COREWM_CAPTURE_CONTROLLER_H_ | 5 #ifndef UI_VIEWS_COREWM_CAPTURE_CONTROLLER_H_ |
6 #define UI_VIEWS_COREWM_CAPTURE_CONTROLLER_H_ | 6 #define UI_VIEWS_COREWM_CAPTURE_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "ui/aura/client/capture_client.h" | 12 #include "ui/aura/client/capture_client.h" |
13 #include "ui/aura/window_observer.h" | 13 #include "ui/aura/window_observer.h" |
14 #include "ui/views/views_export.h" | 14 #include "ui/views/views_export.h" |
15 | 15 |
| 16 namespace aura { |
| 17 class RootWindow; |
| 18 } |
| 19 |
16 namespace views { | 20 namespace views { |
17 namespace corewm { | 21 namespace corewm { |
18 | 22 |
19 // Internal CaptureClient implementation. See ScopedCaptureClient for details. | 23 // Internal CaptureClient implementation. See ScopedCaptureClient for details. |
20 class VIEWS_EXPORT CaptureController : public aura::client::CaptureClient { | 24 class VIEWS_EXPORT CaptureController : public aura::client::CaptureClient { |
21 public: | 25 public: |
22 // Adds |root| to the list of RootWindows notified when capture changes. | 26 // Adds |root| to the list of RootWindows notified when capture changes. |
23 void Attach(aura::RootWindow* root); | 27 void Attach(aura::RootWindow* root); |
24 | 28 |
25 // Removes |root| from the list of RootWindows notified when capture changes. | 29 // Removes |root| from the list of RootWindows notified when capture changes. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // RootWindow this ScopedCaptureClient was create for. | 82 // RootWindow this ScopedCaptureClient was create for. |
79 aura::RootWindow* root_window_; | 83 aura::RootWindow* root_window_; |
80 | 84 |
81 DISALLOW_COPY_AND_ASSIGN(ScopedCaptureClient); | 85 DISALLOW_COPY_AND_ASSIGN(ScopedCaptureClient); |
82 }; | 86 }; |
83 | 87 |
84 } // namespace corewm | 88 } // namespace corewm |
85 } // namespace views | 89 } // namespace views |
86 | 90 |
87 #endif // UI_VIEWS_COREWM_CAPTURE_CONTROLLER_H_ | 91 #endif // UI_VIEWS_COREWM_CAPTURE_CONTROLLER_H_ |
OLD | NEW |