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

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

Issue 217253002: [Android] Short-circuit touch forwarding when no touch handlers exist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 9 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 | « no previous file | 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 blink::WebGestureEvent MakeGestureEvent( 345 blink::WebGestureEvent MakeGestureEvent(
346 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const; 346 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const;
347 347
348 void SendBeginFrame(base::TimeTicks frame_time); 348 void SendBeginFrame(base::TimeTicks frame_time);
349 349
350 gfx::Size GetViewportSizePix() const; 350 gfx::Size GetViewportSizePix() const;
351 gfx::Size GetViewportSizeOffsetPix() const; 351 gfx::Size GetViewportSizeOffsetPix() const;
352 352
353 void DeleteScaledSnapshotTexture(); 353 void DeleteScaledSnapshotTexture();
354 354
355 bool OnMotionEvent(const ui::MotionEvent& event);
355 void SendGestureEvent(const blink::WebGestureEvent& event); 356 void SendGestureEvent(const blink::WebGestureEvent& event);
356 357
357 // Update focus state of the RenderWidgetHostView. 358 // Update focus state of the RenderWidgetHostView.
358 void SetFocusInternal(bool focused); 359 void SetFocusInternal(bool focused);
359 360
360 // Send device_orientation_ to renderer. 361 // Send device_orientation_ to renderer.
361 void SendOrientationChangeEventInternal(); 362 void SendOrientationChangeEventInternal();
362 363
363 // Utility method for synthesizing a touch cancel event and dispatching it 364 // Utility method for synthesizing a touch cancel event and dispatching it
364 // through the touch pipeline. 365 // through the touch pipeline.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 bool geolocation_needs_pause_; 404 bool geolocation_needs_pause_;
404 405
405 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 406 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
406 }; 407 };
407 408
408 bool RegisterContentViewCore(JNIEnv* env); 409 bool RegisterContentViewCore(JNIEnv* env);
409 410
410 } // namespace content 411 } // namespace content
411 412
412 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 413 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698