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

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

Issue 131373004: Let the browser know the end of fling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); 297 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient();
298 298
299 // Returns the context that the ContentViewCore was created with, it would 299 // Returns the context that the ContentViewCore was created with, it would
300 // typically be an Activity context for an on screen view. 300 // typically be an Activity context for an on screen view.
301 base::android::ScopedJavaLocalRef<jobject> GetContext(); 301 base::android::ScopedJavaLocalRef<jobject> GetContext();
302 302
303 // Returns True if the given media should be blocked to load. 303 // Returns True if the given media should be blocked to load.
304 bool ShouldBlockMediaRequest(const GURL& url); 304 bool ShouldBlockMediaRequest(const GURL& url);
305 305
306 void DidStopFlinging();
307
306 // -------------------------------------------------------------------------- 308 // --------------------------------------------------------------------------
307 // Methods called from native code 309 // Methods called from native code
308 // -------------------------------------------------------------------------- 310 // --------------------------------------------------------------------------
309 311
310 gfx::Size GetPhysicalBackingSize() const; 312 gfx::Size GetPhysicalBackingSize() const;
311 gfx::Size GetViewportSizeDip() const; 313 gfx::Size GetViewportSizeDip() const;
312 gfx::Size GetViewportSizeOffsetDip() const; 314 gfx::Size GetViewportSizeOffsetDip() const;
313 float GetOverdrawBottomHeightDip() const; 315 float GetOverdrawBottomHeightDip() const;
314 316
315 void AttachLayer(scoped_refptr<cc::Layer> layer); 317 void AttachLayer(scoped_refptr<cc::Layer> layer);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 bool geolocation_needs_pause_; 395 bool geolocation_needs_pause_;
394 396
395 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 397 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
396 }; 398 };
397 399
398 bool RegisterContentViewCore(JNIEnv* env); 400 bool RegisterContentViewCore(JNIEnv* env);
399 401
400 } // namespace content 402 } // namespace content
401 403
402 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 404 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698