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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 // Creates a java-side touch event, used for injecting touch event for | 242 // Creates a java-side touch event, used for injecting touch event for |
243 // testing/benchmarking purposes | 243 // testing/benchmarking purposes |
244 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); | 244 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); |
245 | 245 |
246 // Returns True if the given media should be blocked to load. | 246 // Returns True if the given media should be blocked to load. |
247 bool ShouldBlockMediaRequest(const GURL& url); | 247 bool ShouldBlockMediaRequest(const GURL& url); |
248 | 248 |
249 void DidStopFlinging(); | 249 void DidStopFlinging(); |
250 | 250 |
| 251 // Returns the context with which the ContentViewCore was created, typically |
| 252 // the Activity context. |
| 253 base::android::ScopedJavaLocalRef<jobject> GetContext() const; |
| 254 |
251 // Returns the viewport size after accounting for the viewport offset. | 255 // Returns the viewport size after accounting for the viewport offset. |
252 gfx::Size GetViewSize() const; | 256 gfx::Size GetViewSize() const; |
253 | 257 |
254 void SetAccessibilityEnabledInternal(bool enabled); | 258 void SetAccessibilityEnabledInternal(bool enabled); |
255 | 259 |
256 bool IsFullscreenRequiredForOrientationLock() const; | 260 bool IsFullscreenRequiredForOrientationLock() const; |
257 | 261 |
258 // -------------------------------------------------------------------------- | 262 // -------------------------------------------------------------------------- |
259 // Methods called from native code | 263 // Methods called from native code |
260 // -------------------------------------------------------------------------- | 264 // -------------------------------------------------------------------------- |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 java_bridge_dispatcher_host_; | 340 java_bridge_dispatcher_host_; |
337 | 341 |
338 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 342 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
339 }; | 343 }; |
340 | 344 |
341 bool RegisterContentViewCore(JNIEnv* env); | 345 bool RegisterContentViewCore(JNIEnv* env); |
342 | 346 |
343 } // namespace content | 347 } // namespace content |
344 | 348 |
345 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 349 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |