Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 618013003: Support fullscreen for non-video elements in the WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactorFullscreenNonMedia
Patch Set: Fix failing test Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Shows the disambiguation popup 238 // Shows the disambiguation popup
239 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents 239 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents
240 // |zoomed_bitmap| --> magnified image of potential touch targets 240 // |zoomed_bitmap| --> magnified image of potential touch targets
241 void ShowDisambiguationPopup( 241 void ShowDisambiguationPopup(
242 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); 242 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap);
243 243
244 // Creates a java-side touch event, used for injecting touch event for 244 // Creates a java-side touch event, used for injecting touch event for
245 // testing/benchmarking purposes 245 // testing/benchmarking purposes
246 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); 246 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer();
247 247
248 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient();
249
250 // Returns the context that the ContentViewCore was created with, it would
251 // typically be an Activity context for an on screen view.
252 base::android::ScopedJavaLocalRef<jobject> GetContext();
253
254 // Returns True if the given media should be blocked to load. 248 // Returns True if the given media should be blocked to load.
255 bool ShouldBlockMediaRequest(const GURL& url); 249 bool ShouldBlockMediaRequest(const GURL& url);
256 250
257 void DidStopFlinging(); 251 void DidStopFlinging();
258 252
259 // Returns the viewport size after accounting for the viewport offset. 253 // Returns the viewport size after accounting for the viewport offset.
260 gfx::Size GetViewSize() const; 254 gfx::Size GetViewSize() const;
261 255
262 void SetAccessibilityEnabledInternal(bool enabled); 256 void SetAccessibilityEnabledInternal(bool enabled);
263 257
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 java_bridge_dispatcher_host_; 338 java_bridge_dispatcher_host_;
345 339
346 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 340 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
347 }; 341 };
348 342
349 bool RegisterContentViewCore(JNIEnv* env); 343 bool RegisterContentViewCore(JNIEnv* env);
350 344
351 } // namespace content 345 } // namespace content
352 346
353 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 347 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698