Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / android / window_android_observer.h
blob4e97d2a51272a63686a3ee96ee7876e3b3ceba14
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
3 // found in the LICENSE file.
5 #ifndef UI_ANDROID_WINDOW_ANDROID_OBSERVER_H_
6 #define UI_ANDROID_WINDOW_ANDROID_OBSERVER_H_
8 #include "ui/android/ui_android_export.h"
10 namespace ui {
12 class UI_ANDROID_EXPORT WindowAndroidObserver {
13 public:
14 virtual void OnCompositingDidCommit() = 0;
15 virtual void OnRootWindowVisibilityChanged(bool visible) = 0;
16 virtual void OnAttachCompositor() = 0;
17 virtual void OnDetachCompositor() = 0;
18 virtual void OnVSync(base::TimeTicks frame_time,
19 base::TimeDelta vsync_period) = 0;
20 virtual void OnAnimate(base::TimeTicks frame_begin_time) {}
22 // Note that activity state callbacks will only be made if the WindowAndroid
23 // has been explicitly subscribed to receive them. The observer instance
24 // should account for whether or not this is the case.
25 virtual void OnActivityPaused() = 0;
26 virtual void OnActivityResumed() = 0;
28 protected:
29 virtual ~WindowAndroidObserver() {}
32 } // namespace ui
34 #endif // UI_ANDROID_WINDOW_ANDROID_OBSERVER_H_