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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual scoped_refptr<cc::Layer> GetLayer() const OVERRIDE; | 53 virtual scoped_refptr<cc::Layer> GetLayer() const OVERRIDE; |
54 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; | 54 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; |
55 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE; | 55 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE; |
56 virtual void ShowPastePopup(int x, int y) OVERRIDE; | 56 virtual void ShowPastePopup(int x, int y) OVERRIDE; |
57 virtual unsigned int GetScaledContentTexture( | 57 virtual unsigned int GetScaledContentTexture( |
58 float scale, | 58 float scale, |
59 gfx::Size* out_size) OVERRIDE; | 59 gfx::Size* out_size) OVERRIDE; |
60 virtual float GetDpiScale() const OVERRIDE; | 60 virtual float GetDpiScale() const OVERRIDE; |
61 virtual void RequestContentClipping(const gfx::Rect& clipping, | 61 virtual void RequestContentClipping(const gfx::Rect& clipping, |
62 const gfx::Size& content_size) OVERRIDE; | 62 const gfx::Size& content_size) OVERRIDE; |
| 63 virtual void PauseVideo() OVERRIDE; |
63 | 64 |
64 // -------------------------------------------------------------------------- | 65 // -------------------------------------------------------------------------- |
65 // Methods called from Java via JNI | 66 // Methods called from Java via JNI |
66 // -------------------------------------------------------------------------- | 67 // -------------------------------------------------------------------------- |
67 | 68 |
68 void OnJavaContentViewCoreDestroyed(JNIEnv* env, jobject obj); | 69 void OnJavaContentViewCoreDestroyed(JNIEnv* env, jobject obj); |
69 | 70 |
70 // Notifies the ContentViewCore that items were selected in the currently | 71 // Notifies the ContentViewCore that items were selected in the currently |
71 // showing select popup. | 72 // showing select popup. |
72 void SelectPopupMenuItems(JNIEnv* env, jobject obj, jintArray indices); | 73 void SelectPopupMenuItems(JNIEnv* env, jobject obj, jintArray indices); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 ui::WindowAndroid* window_android_; | 373 ui::WindowAndroid* window_android_; |
373 | 374 |
374 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 375 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
375 }; | 376 }; |
376 | 377 |
377 bool RegisterContentViewCore(JNIEnv* env); | 378 bool RegisterContentViewCore(JNIEnv* env); |
378 | 379 |
379 } // namespace content | 380 } // namespace content |
380 | 381 |
381 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 382 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |