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_BASE_ANDROID_WINDOW_ANDROID_H_ |
6 #define UI_BASE_ANDROID_WINDOW_ANDROID_H_ | 6 #define UI_BASE_ANDROID_WINDOW_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <vector> | 9 #include <vector> |
10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "ui/base/ui_export.h" | 13 #include "ui/base/ui_base_export.h" |
14 #include "ui/gfx/vector2d_f.h" | 14 #include "ui/gfx/vector2d_f.h" |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 | 17 |
18 class WindowAndroidObserver; | 18 class WindowAndroidObserver; |
19 | 19 |
20 // Android implementation of the activity window. | 20 // Android implementation of the activity window. |
21 class UI_EXPORT WindowAndroid { | 21 class UI_BASE_EXPORT WindowAndroid { |
22 public: | 22 public: |
23 WindowAndroid(JNIEnv* env, jobject obj); | 23 WindowAndroid(JNIEnv* env, jobject obj); |
24 | 24 |
25 void Destroy(JNIEnv* env, jobject obj); | 25 void Destroy(JNIEnv* env, jobject obj); |
26 | 26 |
27 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); | 27 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); |
28 | 28 |
29 static bool RegisterWindowAndroid(JNIEnv* env); | 29 static bool RegisterWindowAndroid(JNIEnv* env); |
30 | 30 |
31 // The content offset is used to translate snapshots to the correct part of | 31 // The content offset is used to translate snapshots to the correct part of |
(...skipping 21 matching lines...) Expand all Loading... |
53 gfx::Vector2dF content_offset_; | 53 gfx::Vector2dF content_offset_; |
54 | 54 |
55 ObserverList<WindowAndroidObserver> observer_list_; | 55 ObserverList<WindowAndroidObserver> observer_list_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); | 57 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace ui | 60 } // namespace ui |
61 | 61 |
62 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_H_ | 62 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_H_ |
OLD | NEW |