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 24 matching lines...) Expand all Loading... |
35 // Refer to the public WebContents interface or elsewhere instead. | 35 // Refer to the public WebContents interface or elsewhere instead. |
36 class CONTENT_EXPORT ContentViewCore { | 36 class CONTENT_EXPORT ContentViewCore { |
37 public: | 37 public: |
38 // Returns the existing ContentViewCore for |web_contents|, or nullptr. | 38 // Returns the existing ContentViewCore for |web_contents|, or nullptr. |
39 static ContentViewCore* FromWebContents(WebContents* web_contents); | 39 static ContentViewCore* FromWebContents(WebContents* web_contents); |
40 | 40 |
41 virtual WebContents* GetWebContents() const = 0; | 41 virtual WebContents* GetWebContents() const = 0; |
42 | 42 |
43 // May return null reference. | 43 // May return null reference. |
44 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; | 44 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; |
45 virtual bool ShowPastePopup(int x, int y) = 0; | 45 virtual void ShowPastePopup(int x, int y) = 0; |
46 | 46 |
47 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; | 47 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; |
48 | 48 |
49 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; | 49 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; |
50 | 50 |
51 protected: | 51 protected: |
52 ~ContentViewCore() {} | 52 ~ContentViewCore() {} |
53 }; | 53 }; |
54 | 54 |
55 }; // namespace content | 55 }; // namespace content |
56 | 56 |
57 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 57 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
OLD | NEW |