diff options
author | dominikg@chromium.org <dominikg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-20 16:20:19 +0000 |
---|---|---|
committer | dominikg@chromium.org <dominikg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-20 16:20:19 +0000 |
commit | f9d16f81d50310dd8b794af5e34bae2e75fa2c1c (patch) | |
tree | 531d87302df8eb5a007ebceb691cb8a8e0c681e5 /content/port | |
parent | b625231dd38618acd720afb4cc1e11caac2d9bac (diff) | |
download | chromium_src-f9d16f81d50310dd8b794af5e34bae2e75fa2c1c.zip chromium_src-f9d16f81d50310dd8b794af5e34bae2e75fa2c1c.tar.gz chromium_src-f9d16f81d50310dd8b794af5e34bae2e75fa2c1c.tar.bz2 |
Replace old with new synthetic gesture framework.
- Remove current implementation of synthetic gestures.
- Rename temporarily named classes and files of new synthetic gesture framework
(e.g. SyntheticGestureNew -> SyntheticGesture).
- Link up new implementation in browser and renderer.
- Hook up synthetic gesture controller to input flushing in RWHI.
- Update JavaScript front-end and Telemetry.
BUG=297980
Review URL: https://codereview.chromium.org/62443007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/port')
-rw-r--r-- | content/port/browser/render_widget_host_view_port.h | 11 | ||||
-rw-r--r-- | content/port/browser/synthetic_gesture.h | 36 |
2 files changed, 0 insertions, 47 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h index bd13f73..fd8954f 100644 --- a/content/port/browser/render_widget_host_view_port.h +++ b/content/port/browser/render_widget_host_view_port.h @@ -270,17 +270,6 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) = 0; - // Asks the view to create a synthetic gesture that will be used to - // simulate a user-initiated scroll. - virtual SyntheticGesture* CreateSmoothScrollGesture( - bool scroll_down, int pixels_to_scroll, int mouse_event_x, - int mouse_event_y) = 0; - - // Asks the view to create a synthetic gesture that will be used to - // simulate a user-initiated pinch-to-zoom. - virtual SyntheticGesture* CreatePinchGesture( - bool zoom_in, int pixels_to_move, int anchor_x, int anchor_y) = 0; - virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; virtual void SetScrollOffsetPinning( bool is_pinned_to_left, bool is_pinned_to_right) = 0; diff --git a/content/port/browser/synthetic_gesture.h b/content/port/browser/synthetic_gesture.h deleted file mode 100644 index 4330d76..0000000 --- a/content/port/browser/synthetic_gesture.h +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_ -#define CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_ - -#include "base/memory/ref_counted.h" -#include "base/time/time.h" - -namespace content { - -class RenderWidgetHost; - -// This is a base class representing a single scroll gesture. These gestures are -// paired with the rendering benchmarking system to (automatically) measure how -// smoothnly chrome is responding to user input. -class SyntheticGesture : public base::RefCounted<SyntheticGesture> { - public: - - // When called, the gesture should compute its state at the provided timestamp - // and send the right input events to the provided RenderWidgetHost to - // simulate the gesture having run up to that point in time. - // - // This function should return true until the gesture is over. A false return - // value will stop ticking the gesture and clean it up. - virtual bool ForwardInputEvents(base::TimeTicks now, - RenderWidgetHost* host) = 0; - protected: - friend class base::RefCounted<SyntheticGesture>; - virtual ~SyntheticGesture() {} -}; - -} // namespace content - -#endif // CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_ |