| 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_ANDROID_VIEW_ANDROID_H_ | 5 #ifndef UI_ANDROID_VIEW_ANDROID_H_ |
| 6 #define UI_ANDROID_VIEW_ANDROID_H_ | 6 #define UI_ANDROID_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "ui/android/ui_android_export.h" | 9 #include "ui/android/ui_android_export.h" |
| 10 #include "ui/gfx/geometry/rect_f.h" |
| 10 | 11 |
| 11 namespace ui { | 12 namespace ui { |
| 12 | 13 |
| 13 class WindowAndroid; | 14 class WindowAndroid; |
| 14 | 15 |
| 15 // This is a NativeView interface for getting access to | 16 // This is a NativeView interface for getting access to |
| 16 // WindowAndroid(NativeWindow). | 17 // WindowAndroid(NativeWindow). |
| 17 class UI_ANDROID_EXPORT ViewAndroid { | 18 class UI_ANDROID_EXPORT ViewAndroid { |
| 18 public: | 19 public: |
| 19 virtual WindowAndroid* GetWindowAndroid() const = 0; | 20 virtual WindowAndroid* GetWindowAndroid() const = 0; |
| 20 | 21 |
| 21 virtual base::android::ScopedJavaLocalRef<jobject> | 22 virtual base::android::ScopedJavaLocalRef<jobject> |
| 22 GetViewAndroidDelegate() const = 0 ; | 23 GetViewAndroidDelegate() const = 0 ; |
| 23 | 24 |
| 25 virtual base::android::ScopedJavaLocalRef<jobject> |
| 26 AcquireAnchorView(const gfx::RectF& bounds) = 0; |
| 27 |
| 24 protected: | 28 protected: |
| 25 virtual ~ViewAndroid() {} | 29 virtual ~ViewAndroid() {} |
| 26 }; | 30 }; |
| 27 | 31 |
| 28 } // namespace ui | 32 } // namespace ui |
| 29 | 33 |
| 30 #endif // UI_ANDROID_VIEW_ANDROID_H_ | 34 #endif // UI_ANDROID_VIEW_ANDROID_H_ |
| OLD | NEW |