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 "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
9 #include <jni.h> | 9 #include <jni.h> |
10 | 10 |
11 #include "content/public/browser/navigation_controller.h" | 11 #include "content/public/browser/navigation_controller.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 class Layer; | 14 class Layer; |
15 } | 15 } |
16 | 16 |
17 namespace gfx { | 17 namespace gfx { |
| 18 class Rect; |
18 class Size; | 19 class Size; |
19 } | 20 } |
20 | 21 |
21 namespace ui { | 22 namespace ui { |
22 class WindowAndroid; | 23 class WindowAndroid; |
23 } | 24 } |
24 | 25 |
25 namespace content { | 26 namespace content { |
26 class WebContents; | 27 class WebContents; |
27 | 28 |
(...skipping 10 matching lines...) Expand all Loading... |
38 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; | 39 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; |
39 virtual base::android::ScopedJavaLocalRef<jobject> GetContainerViewDelegate() | 40 virtual base::android::ScopedJavaLocalRef<jobject> GetContainerViewDelegate() |
40 = 0; | 41 = 0; |
41 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; | 42 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; |
42 virtual scoped_refptr<cc::Layer> GetLayer() const = 0; | 43 virtual scoped_refptr<cc::Layer> GetLayer() const = 0; |
43 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0; | 44 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0; |
44 virtual void OnWebPreferencesUpdated() = 0; | 45 virtual void OnWebPreferencesUpdated() = 0; |
45 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) = 0; | 46 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) = 0; |
46 virtual void ShowPastePopup(int x, int y) = 0; | 47 virtual void ShowPastePopup(int x, int y) = 0; |
47 virtual unsigned int GetScaledContentTexture(const gfx::Size& size) = 0; | 48 virtual unsigned int GetScaledContentTexture(const gfx::Size& size) = 0; |
| 49 virtual unsigned int GetScaledContentTexture(const gfx::Size& size, |
| 50 const gfx::Rect& src_rect) = 0; |
48 | 51 |
49 protected: | 52 protected: |
50 virtual ~ContentViewCore() {}; | 53 virtual ~ContentViewCore() {}; |
51 }; | 54 }; |
52 | 55 |
53 }; // namespace content | 56 }; // namespace content |
54 | 57 |
55 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 58 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
OLD | NEW |