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_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_
6 #define UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_
8 #include "ui/base/ui_base_export.h"
12 class UI_BASE_EXPORT WindowAndroidObserver
{
14 virtual void OnCompositingDidCommit() = 0;
15 virtual void OnAttachCompositor() = 0;
16 virtual void OnDetachCompositor() = 0;
17 virtual void OnVSync(base::TimeTicks frame_time
,
18 base::TimeDelta vsync_period
) = 0;
19 virtual void OnAnimate(base::TimeTicks frame_begin_time
) {}
22 virtual ~WindowAndroidObserver() {}
27 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_