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_H_ | 5 #ifndef UI_ANDROID_WINDOW_ANDROID_H_ |
6 #define UI_BASE_ANDROID_WINDOW_ANDROID_H_ | 6 #define UI_ANDROID_WINDOW_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/android/jni_weak_ref.h" | 11 #include "base/android/jni_weak_ref.h" |
12 #include "base/android/scoped_java_ref.h" | 12 #include "base/android/scoped_java_ref.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "ui/base/ui_base_export.h" | 15 #include "ui/android/ui_android_export.h" |
16 #include "ui/gfx/geometry/vector2d_f.h" | 16 #include "ui/gfx/geometry/vector2d_f.h" |
17 | 17 |
18 namespace ui { | 18 namespace ui { |
19 | 19 |
20 class WindowAndroidCompositor; | 20 class WindowAndroidCompositor; |
21 class WindowAndroidObserver; | 21 class WindowAndroidObserver; |
22 | 22 |
23 // Android implementation of the activity window. | 23 // Android implementation of the activity window. |
24 class UI_BASE_EXPORT WindowAndroid { | 24 class UI_ANDROID_EXPORT WindowAndroid { |
25 public: | 25 public: |
26 WindowAndroid(JNIEnv* env, jobject obj); | 26 WindowAndroid(JNIEnv* env, jobject obj); |
27 | 27 |
28 void Destroy(JNIEnv* env, jobject obj); | 28 void Destroy(JNIEnv* env, jobject obj); |
29 | 29 |
30 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); | 30 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); |
31 | 31 |
32 static bool RegisterWindowAndroid(JNIEnv* env); | 32 static bool RegisterWindowAndroid(JNIEnv* env); |
33 | 33 |
34 // The content offset is used to translate snapshots to the correct part of | 34 // The content offset is used to translate snapshots to the correct part of |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 gfx::Vector2dF content_offset_; | 67 gfx::Vector2dF content_offset_; |
68 WindowAndroidCompositor* compositor_; | 68 WindowAndroidCompositor* compositor_; |
69 | 69 |
70 ObserverList<WindowAndroidObserver> observer_list_; | 70 ObserverList<WindowAndroidObserver> observer_list_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); | 72 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace ui | 75 } // namespace ui |
76 | 76 |
77 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_H_ | 77 #endif // UI_ANDROID_WINDOW_ANDROID_H_ |
OLD | NEW |