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

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

Issue 2353063005: Refactor ContentViewClient (1/6) (Closed)
Patch Set: cast to activity Created 4 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 // Shows the disambiguation popup 351 // Shows the disambiguation popup
352 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents 352 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents
353 // |zoomed_bitmap| --> magnified image of potential touch targets 353 // |zoomed_bitmap| --> magnified image of potential touch targets
354 void ShowDisambiguationPopup( 354 void ShowDisambiguationPopup(
355 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); 355 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap);
356 356
357 // Creates a java-side touch event, used for injecting motion events for 357 // Creates a java-side touch event, used for injecting motion events for
358 // testing/benchmarking purposes. 358 // testing/benchmarking purposes.
359 base::android::ScopedJavaLocalRef<jobject> CreateMotionEventSynthesizer(); 359 base::android::ScopedJavaLocalRef<jobject> CreateMotionEventSynthesizer();
360 360
361 // Returns True if the given media should be blocked to load.
362 bool ShouldBlockMediaRequest(const GURL& url);
363
364 void DidStopFlinging(); 361 void DidStopFlinging();
365 362
366 // Returns the context with which the ContentViewCore was created, typically 363 // Returns the context with which the ContentViewCore was created, typically
367 // the Activity context. 364 // the Activity context.
368 base::android::ScopedJavaLocalRef<jobject> GetContext() const; 365 base::android::ScopedJavaLocalRef<jobject> GetContext() const;
369 366
370 // Returns the viewport size after accounting for the viewport offset. 367 // Returns the viewport size after accounting for the viewport offset.
371 gfx::Size GetViewSize() const; 368 gfx::Size GetViewSize() const;
372 369
373 gfx::Size GetViewSizeWithOSKHidden() const; 370 gfx::Size GetViewSizeWithOSKHidden() const;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 468 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
472 469
473 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 470 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
474 }; 471 };
475 472
476 bool RegisterContentViewCore(JNIEnv* env); 473 bool RegisterContentViewCore(JNIEnv* env);
477 474
478 } // namespace content 475 } // namespace content
479 476
480 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 477 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_video_view.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698