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

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

Issue 15651006: cc: Disable LastInputEventForBeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@nobfafteri
Patch Set: Remove HandleInputEventInternal Created 7 years, 6 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/thread_proxy.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 (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_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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 float GetOverdrawBottomHeightDip() const; 291 float GetOverdrawBottomHeightDip() const;
292 292
293 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); 293 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event);
294 294
295 void AttachLayer(scoped_refptr<cc::Layer> layer); 295 void AttachLayer(scoped_refptr<cc::Layer> layer);
296 void RemoveLayer(scoped_refptr<cc::Layer> layer); 296 void RemoveLayer(scoped_refptr<cc::Layer> layer);
297 void SetVSyncNotificationEnabled(bool enabled); 297 void SetVSyncNotificationEnabled(bool enabled);
298 void SetNeedsAnimate(); 298 void SetNeedsAnimate();
299 299
300 private: 300 private:
301 enum InputEventVSyncStatus {
302 NOT_LAST_INPUT_EVENT_FOR_VSYNC,
303 LAST_INPUT_EVENT_FOR_VSYNC
304 };
305
306 class ContentViewUserData; 301 class ContentViewUserData;
307 302
308 friend class ContentViewUserData; 303 friend class ContentViewUserData;
309 virtual ~ContentViewCoreImpl(); 304 virtual ~ContentViewCoreImpl();
310 305
311 // NotificationObserver implementation. 306 // NotificationObserver implementation.
312 virtual void Observe(int type, 307 virtual void Observe(int type,
313 const NotificationSource& source, 308 const NotificationSource& source,
314 const NotificationDetails& details) OVERRIDE; 309 const NotificationDetails& details) OVERRIDE;
315 310
316 // -------------------------------------------------------------------------- 311 // --------------------------------------------------------------------------
317 // Other private methods and data 312 // Other private methods and data
318 // -------------------------------------------------------------------------- 313 // --------------------------------------------------------------------------
319 314
320 void InitWebContents(); 315 void InitWebContents();
321 316
322 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); 317 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
323 318
324 float GetTouchPaddingDip(); 319 float GetTouchPaddingDip();
325 320
326 WebKit::WebGestureEvent MakeGestureEvent( 321 WebKit::WebGestureEvent MakeGestureEvent(
327 WebKit::WebInputEvent::Type type, long time_ms, 322 WebKit::WebInputEvent::Type type, long time_ms, float x, float y) const;
328 float x, float y, InputEventVSyncStatus vsync_status) const;
329 323
330 gfx::Size GetViewportSizePix() const; 324 gfx::Size GetViewportSizePix() const;
331 gfx::Size GetViewportSizeOffsetPix() const; 325 gfx::Size GetViewportSizeOffsetPix() const;
332 326
333 void DeleteScaledSnapshotTexture(); 327 void DeleteScaledSnapshotTexture();
334 328
335 void SendGestureEvent(const WebKit::WebGestureEvent& event); 329 void SendGestureEvent(const WebKit::WebGestureEvent& event);
336 330
337 // A weak reference to the Java ContentViewCore object. 331 // A weak reference to the Java ContentViewCore object.
338 JavaObjectWeakGlobalRef java_ref_; 332 JavaObjectWeakGlobalRef java_ref_;
(...skipping 26 matching lines...) Expand all
365 scoped_ptr<SyncInputEventFilter> input_event_filter_; 359 scoped_ptr<SyncInputEventFilter> input_event_filter_;
366 360
367 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 361 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
368 }; 362 };
369 363
370 bool RegisterContentViewCore(JNIEnv* env); 364 bool RegisterContentViewCore(JNIEnv* env);
371 365
372 } // namespace content 366 } // namespace content
373 367
374 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 368 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.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