OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_WINDOW_MANAGER_CAPTURE_CONTROLLER_H_ | 5 #ifndef SERVICES_WINDOW_MANAGER_CAPTURE_CONTROLLER_H_ |
6 #define SERVICES_WINDOW_MANAGER_CAPTURE_CONTROLLER_H_ | 6 #define SERVICES_WINDOW_MANAGER_CAPTURE_CONTROLLER_H_ |
7 | 7 |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "mojo/services/view_manager/public/cpp/view_observer.h" | 9 #include "mojo/services/view_manager/public/cpp/view_observer.h" |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 private: | 28 private: |
29 void NotifyCaptureChange(mojo::View* new_capture, mojo::View* old_capture); | 29 void NotifyCaptureChange(mojo::View* new_capture, mojo::View* old_capture); |
30 | 30 |
31 // Overridden from ViewObserver: | 31 // Overridden from ViewObserver: |
32 void OnViewDestroying(mojo::View* view) override; | 32 void OnViewDestroying(mojo::View* view) override; |
33 | 33 |
34 // The current capture view. Null if there is no capture view. | 34 // The current capture view. Null if there is no capture view. |
35 mojo::View* capture_view_; | 35 mojo::View* capture_view_; |
36 | 36 |
37 ObserverList<CaptureControllerObserver> capture_controller_observers_; | 37 base::ObserverList<CaptureControllerObserver> capture_controller_observers_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(CaptureController); | 39 DISALLOW_COPY_AND_ASSIGN(CaptureController); |
40 }; | 40 }; |
41 | 41 |
42 void SetCaptureController(mojo::View* view, | 42 void SetCaptureController(mojo::View* view, |
43 CaptureController* capture_controller); | 43 CaptureController* capture_controller); |
44 CaptureController* GetCaptureController(mojo::View* view); | 44 CaptureController* GetCaptureController(mojo::View* view); |
45 mojo::View* GetCaptureView(mojo::View* view); | 45 mojo::View* GetCaptureView(mojo::View* view); |
46 | 46 |
47 } // namespace window_manager | 47 } // namespace window_manager |
48 | 48 |
49 #endif // SERVICES_WINDOW_MANAGER_CAPTURE_CONTROLLER_H_ | 49 #endif // SERVICES_WINDOW_MANAGER_CAPTURE_CONTROLLER_H_ |
OLD | NEW |