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_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_ | 5 #ifndef UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_ |
6 #define UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_ | 6 #define UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_ |
7 | 7 |
8 #include "ui/base/ui_export.h" | 8 #include "ui/base/ui_export.h" |
9 | 9 |
| 10 namespace content { |
| 11 class Compositor; |
| 12 } |
| 13 |
10 namespace ui { | 14 namespace ui { |
11 | 15 |
12 class UI_EXPORT WindowAndroidObserver { | 16 class UI_EXPORT WindowAndroidObserver { |
13 public: | 17 public: |
14 virtual void OnCompositingDidCommit() = 0; | 18 virtual void OnCompositingDidCommit(content::Compositor* compositor) = 0; |
15 virtual void OnAttachCompositor() = 0; | 19 virtual void OnAttachCompositor() = 0; |
16 virtual void OnDetachCompositor() = 0; | 20 virtual void OnDetachCompositor() = 0; |
17 | 21 |
18 protected: | 22 protected: |
19 virtual ~WindowAndroidObserver() {} | 23 virtual ~WindowAndroidObserver() {} |
20 }; | 24 }; |
21 | 25 |
22 } // namespace ui | 26 } // namespace ui |
23 | 27 |
24 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_ | 28 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_ |
OLD | NEW |