OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; | 49 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; |
50 | 50 |
51 // Text surrounding selection. | 51 // Text surrounding selection. |
52 virtual void RequestTextSurroundingSelection( | 52 virtual void RequestTextSurroundingSelection( |
53 int max_length, | 53 int max_length, |
54 const base::Callback<void(const base::string16& content, | 54 const base::Callback<void(const base::string16& content, |
55 int start_offset, | 55 int start_offset, |
56 int end_offset)>& callback) = 0; | 56 int end_offset)>& callback) = 0; |
57 | 57 |
58 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; | 58 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; |
59 virtual const base::android::JavaRef<jobject>& GetViewAndroidDelegate() | |
60 const = 0; | |
61 virtual cc::Layer* GetLayer() const = 0; | 59 virtual cc::Layer* GetLayer() const = 0; |
62 | 60 |
63 protected: | 61 protected: |
64 ~ContentViewCore() {} | 62 ~ContentViewCore() {} |
65 }; | 63 }; |
66 | 64 |
67 }; // namespace content | 65 }; // namespace content |
68 | 66 |
69 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 67 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
OLD | NEW |