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

Unified Diff: ui/base/android/window_android_observer.h

Issue 26753005: Adding compositor callbacks to RenderWidgetHostViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: host observers through WindowAndroid Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/android/window_android_observer.h
diff --git a/ui/base/android/window_android_observer.h b/ui/base/android/window_android_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..16bb409f193c4cca980bc526b62dc78ede83ec13
--- /dev/null
+++ b/ui/base/android/window_android_observer.h
@@ -0,0 +1,28 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_
+#define UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_
+
+#include "ui/base/ui_export.h"
+
+namespace content {
+class Compositor;
+} // namespace content
+
+namespace ui {
+
+class UI_EXPORT WindowAndroidObserver {
+ public:
+ virtual void OnCompositingDidCommit(content::Compositor* compositor) = 0;
+ virtual void OnAttachCompositor(content::Compositor* compositor) = 0;
no sievers 2013/11/14 22:01:01 Can you remove the compositor argument from all fu
powei 2013/11/15 02:18:26 Done.
+ virtual void OnDetachCompositor(content::Compositor* compositor) = 0;
+
+ protected:
+ virtual ~WindowAndroidObserver() {}
+};
+
+} // namespace ui
+
+#endif // UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_
« content/public/browser/android/compositor.h ('K') | « ui/base/android/window_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698