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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 1140693004: [Android] Prevent touch interception for browser-consumed touches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 enum VSyncRequestType { 316 enum VSyncRequestType {
317 FLUSH_INPUT = 1 << 0, 317 FLUSH_INPUT = 1 << 0,
318 BEGIN_FRAME = 1 << 1, 318 BEGIN_FRAME = 1 << 1,
319 PERSISTENT_BEGIN_FRAME = 1 << 2 319 PERSISTENT_BEGIN_FRAME = 1 << 2
320 }; 320 };
321 void RequestVSyncUpdate(uint32 requests); 321 void RequestVSyncUpdate(uint32 requests);
322 void StartObservingRootWindow(); 322 void StartObservingRootWindow();
323 void StopObservingRootWindow(); 323 void StopObservingRootWindow();
324 void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period); 324 void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period);
325 bool Animate(base::TimeTicks frame_time); 325 bool Animate(base::TimeTicks frame_time);
326 void RequestDisallowInterceptTouchEvent();
326 327
327 // The model object. 328 // The model object.
328 RenderWidgetHostImpl* host_; 329 RenderWidgetHostImpl* host_;
329 330
330 bool use_surfaces_; 331 bool use_surfaces_;
331 332
332 // Used to control action dispatch at the next |OnVSync()| call. 333 // Used to control action dispatch at the next |OnVSync()| call.
333 uint32 outstanding_vsync_requests_; 334 uint32 outstanding_vsync_requests_;
334 335
335 bool is_showing_; 336 bool is_showing_;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 gfx::Vector2dF last_scroll_offset_; 414 gfx::Vector2dF last_scroll_offset_;
414 415
415 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 416 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
416 417
417 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 418 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
418 }; 419 };
419 420
420 } // namespace content 421 } // namespace content
421 422
422 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698