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

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: Fix compile break 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 void UpdateImeAdapter(int native_ime_adapter, int text_input_type, 263 void UpdateImeAdapter(int native_ime_adapter, int text_input_type,
264 const std::string& text, 264 const std::string& text,
265 int selection_start, int selection_end, 265 int selection_start, int selection_end,
266 int composition_start, int composition_end, 266 int composition_start, int composition_end,
267 bool show_ime_if_needed, bool require_ack); 267 bool show_ime_if_needed, bool require_ack);
268 void SetTitle(const base::string16& title); 268 void SetTitle(const base::string16& title);
269 void OnBackgroundColorChanged(SkColor color); 269 void OnBackgroundColorChanged(SkColor color);
270 270
271 bool HasFocus(); 271 bool HasFocus();
272 void ConfirmTouchEvent(InputEventAckState ack_result); 272 void ConfirmTouchEvent(InputEventAckState ack_result);
273 void UnhandledFlingStartEvent(); 273 void OnFlingStartEventAck(InputEventAckState ack_result);
274 void OnScrollUpdateGestureConsumed(); 274 void OnScrollUpdateGestureConsumed();
275 void HasTouchEventHandlers(bool need_touch_events); 275 void HasTouchEventHandlers(bool need_touch_events);
276 void OnSelectionChanged(const std::string& text); 276 void OnSelectionChanged(const std::string& text);
277 void OnSelectionBoundsChanged( 277 void OnSelectionBoundsChanged(
278 const ViewHostMsg_SelectionBounds_Params& params); 278 const ViewHostMsg_SelectionBounds_Params& params);
279 279
280 void StartContentIntent(const GURL& content_url); 280 void StartContentIntent(const GURL& content_url);
281 281
282 // Shows the disambiguation popup 282 // Shows the disambiguation popup
283 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 283 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
(...skipping 12 matching lines...) Expand all
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
« no previous file with comments | « cc/trees/layer_tree_host_impl.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