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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; | 56 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; |
57 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE; | 57 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE; |
58 virtual void ShowPastePopup(int x, int y) OVERRIDE; | 58 virtual void ShowPastePopup(int x, int y) OVERRIDE; |
59 virtual unsigned int GetScaledContentTexture( | 59 virtual unsigned int GetScaledContentTexture( |
60 float scale, | 60 float scale, |
61 gfx::Size* out_size) OVERRIDE; | 61 gfx::Size* out_size) OVERRIDE; |
62 virtual float GetDpiScale() const OVERRIDE; | 62 virtual float GetDpiScale() const OVERRIDE; |
63 virtual void RequestContentClipping(const gfx::Rect& clipping, | 63 virtual void RequestContentClipping(const gfx::Rect& clipping, |
64 const gfx::Size& content_size) OVERRIDE; | 64 const gfx::Size& content_size) OVERRIDE; |
65 virtual void PauseVideo() OVERRIDE; | 65 virtual void PauseVideo() OVERRIDE; |
| 66 virtual void PauseGeolocation() OVERRIDE; |
| 67 virtual void ResumeGeolocation() OVERRIDE; |
66 | 68 |
67 // -------------------------------------------------------------------------- | 69 // -------------------------------------------------------------------------- |
68 // Methods called from Java via JNI | 70 // Methods called from Java via JNI |
69 // -------------------------------------------------------------------------- | 71 // -------------------------------------------------------------------------- |
70 | 72 |
71 void OnJavaContentViewCoreDestroyed(JNIEnv* env, jobject obj); | 73 void OnJavaContentViewCoreDestroyed(JNIEnv* env, jobject obj); |
72 | 74 |
73 // Notifies the ContentViewCore that items were selected in the currently | 75 // Notifies the ContentViewCore that items were selected in the currently |
74 // showing select popup. | 76 // showing select popup. |
75 void SelectPopupMenuItems(JNIEnv* env, jobject obj, jintArray indices); | 77 void SelectPopupMenuItems(JNIEnv* env, jobject obj, jintArray indices); |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 int device_orientation_; | 392 int device_orientation_; |
391 | 393 |
392 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 394 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
393 }; | 395 }; |
394 | 396 |
395 bool RegisterContentViewCore(JNIEnv* env); | 397 bool RegisterContentViewCore(JNIEnv* env); |
396 | 398 |
397 } // namespace content | 399 } // namespace content |
398 | 400 |
399 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 401 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |