OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // ContentViewCore implementation. | 51 // ContentViewCore implementation. |
52 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() OVERRIDE; | 52 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() OVERRIDE; |
53 virtual WebContents* GetWebContents() const OVERRIDE; | 53 virtual WebContents* GetWebContents() const OVERRIDE; |
54 virtual ui::ViewAndroid* GetViewAndroid() const OVERRIDE; | 54 virtual ui::ViewAndroid* GetViewAndroid() const OVERRIDE; |
55 virtual ui::WindowAndroid* GetWindowAndroid() const OVERRIDE; | 55 virtual ui::WindowAndroid* GetWindowAndroid() const OVERRIDE; |
56 virtual scoped_refptr<cc::Layer> GetLayer() const OVERRIDE; | 56 virtual scoped_refptr<cc::Layer> GetLayer() const OVERRIDE; |
57 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; | 57 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; |
58 virtual void ShowPastePopup(int x, int y) OVERRIDE; | 58 virtual void ShowPastePopup(int x, int y) OVERRIDE; |
59 virtual void GetScaledContentBitmap( | 59 virtual void GetScaledContentBitmap( |
60 float scale, | 60 float scale, |
61 jobject bitmap_config, | 61 SkBitmap::Config bitmap_config, |
62 gfx::Rect src_subrect, | 62 gfx::Rect src_subrect, |
63 const base::Callback<void(bool, const SkBitmap&)>& result_callback) | 63 const base::Callback<void(bool, const SkBitmap&)>& result_callback) |
64 OVERRIDE; | 64 OVERRIDE; |
65 virtual float GetDpiScale() const OVERRIDE; | 65 virtual float GetDpiScale() const OVERRIDE; |
66 virtual void PauseVideo() OVERRIDE; | 66 virtual void PauseVideo() OVERRIDE; |
67 virtual void PauseOrResumeGeolocation(bool should_pause) OVERRIDE; | 67 virtual void PauseOrResumeGeolocation(bool should_pause) OVERRIDE; |
68 | 68 |
69 // -------------------------------------------------------------------------- | 69 // -------------------------------------------------------------------------- |
70 // Methods called from Java via JNI | 70 // Methods called from Java via JNI |
71 // -------------------------------------------------------------------------- | 71 // -------------------------------------------------------------------------- |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 java_bridge_dispatcher_host_manager_; | 381 java_bridge_dispatcher_host_manager_; |
382 | 382 |
383 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 383 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
384 }; | 384 }; |
385 | 385 |
386 bool RegisterContentViewCore(JNIEnv* env); | 386 bool RegisterContentViewCore(JNIEnv* env); |
387 | 387 |
388 } // namespace content | 388 } // namespace content |
389 | 389 |
390 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 390 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |