Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Side by Side Diff: ui/android/window_android_observer.h

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/android/window_android_compositor.h ('k') | ui/aura/mus/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ANDROID_WINDOW_ANDROID_OBSERVER_H_ 5 #ifndef UI_ANDROID_WINDOW_ANDROID_OBSERVER_H_
6 #define UI_ANDROID_WINDOW_ANDROID_OBSERVER_H_ 6 #define UI_ANDROID_WINDOW_ANDROID_OBSERVER_H_
7 7
8 #include "ui/android/ui_android_export.h" 8 #include "ui/android/ui_android_export.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 class UI_ANDROID_EXPORT WindowAndroidObserver { 12 class UI_ANDROID_EXPORT WindowAndroidObserver {
13 public: 13 public:
14 virtual void OnCompositingDidCommit() = 0; 14 virtual void OnCompositingDidCommit() = 0;
15 virtual void OnRootWindowVisibilityChanged(bool visible) = 0; 15 virtual void OnRootWindowVisibilityChanged(bool visible) = 0;
16 virtual void OnAttachCompositor() = 0; 16 virtual void OnAttachCompositor() = 0;
17 virtual void OnDetachCompositor() = 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) {} 18 virtual void OnAnimate(base::TimeTicks frame_begin_time) {}
21 19
22 // Note that activity state callbacks will only be made if the WindowAndroid 20 // Note that activity state callbacks will only be made if the WindowAndroid
23 // has been explicitly subscribed to receive them. The observer instance 21 // has been explicitly subscribed to receive them. The observer instance
24 // should account for whether or not this is the case. 22 // should account for whether or not this is the case.
25 virtual void OnActivityStopped() = 0; 23 virtual void OnActivityStopped() = 0;
26 virtual void OnActivityStarted() = 0; 24 virtual void OnActivityStarted() = 0;
27 25
28 protected: 26 protected:
29 virtual ~WindowAndroidObserver() {} 27 virtual ~WindowAndroidObserver() {}
30 }; 28 };
31 29
32 } // namespace ui 30 } // namespace ui
33 31
34 #endif // UI_ANDROID_WINDOW_ANDROID_OBSERVER_H_ 32 #endif // UI_ANDROID_WINDOW_ANDROID_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/android/window_android_compositor.h ('k') | ui/aura/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698