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 17 matching lines...) Expand all Loading... |
28 // Refer to the public WebContents interface or elsewhere instead. | 28 // Refer to the public WebContents interface or elsewhere instead. |
29 class CONTENT_EXPORT ContentViewCore { | 29 class CONTENT_EXPORT ContentViewCore { |
30 public: | 30 public: |
31 // Returns the existing ContentViewCore for |web_contents|, or nullptr. | 31 // Returns the existing ContentViewCore for |web_contents|, or nullptr. |
32 static ContentViewCore* FromWebContents(WebContents* web_contents); | 32 static ContentViewCore* FromWebContents(WebContents* web_contents); |
33 | 33 |
34 virtual WebContents* GetWebContents() const = 0; | 34 virtual WebContents* GetWebContents() const = 0; |
35 | 35 |
36 // May return null reference. | 36 // May return null reference. |
37 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; | 37 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; |
38 virtual bool ShowPastePopup(const ContextMenuParams& params) = 0; | 38 virtual bool ShowSelectionMenu(const ContextMenuParams& params) = 0; |
39 | 39 |
40 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; | 40 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; |
41 | 41 |
42 protected: | 42 protected: |
43 ~ContentViewCore() {} | 43 ~ContentViewCore() {} |
44 }; | 44 }; |
45 | 45 |
46 }; // namespace content | 46 }; // namespace content |
47 | 47 |
48 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 48 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
OLD | NEW |