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

Unified Diff: webkit/compositor/WebCompositorInputHandlerImpl.h

Issue 10920056: Make cc_unittests and webkit_compositor_unittests executable always (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to webkit_compositor_bindings Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/compositor/WebCompositorImpl.cpp ('k') | webkit/compositor/WebCompositorInputHandlerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor/WebCompositorInputHandlerImpl.h
diff --git a/webkit/compositor/WebCompositorInputHandlerImpl.h b/webkit/compositor/WebCompositorInputHandlerImpl.h
deleted file mode 100644
index 6f1c3e1c91f0c9df1d222eeec1f09de4dbda5e44..0000000000000000000000000000000000000000
--- a/webkit/compositor/WebCompositorInputHandlerImpl.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright 2011 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 WebCompositorInputHandlerImpl_h
-#define WebCompositorInputHandlerImpl_h
-
-#include "CCGestureCurve.h"
-#include "CCInputHandler.h"
-#include "WebActiveWheelFlingParameters.h"
-#include "WebCompositorInputHandler.h"
-#include "WebInputEvent.h"
-#include <public/WebCompositor.h>
-#include <wtf/HashSet.h>
-#include <wtf/Noncopyable.h>
-#include <wtf/OwnPtr.h>
-
-namespace WTF {
-class Mutex;
-}
-
-namespace WebCore {
-class IntPoint;
-class CCGestureCurveTarget;
-class CCInputHandlerClient;
-class CCThread;
-}
-
-namespace WebKit {
-
-class WebCompositorInputHandlerClient;
-
-class WebCompositorInputHandlerImpl : public WebCompositorInputHandler, public WebCore::CCInputHandler, public WebCore::CCGestureCurveTarget {
- WTF_MAKE_NONCOPYABLE(WebCompositorInputHandlerImpl);
-public:
- static PassOwnPtr<WebCompositorInputHandlerImpl> create(WebCore::CCInputHandlerClient*);
- static WebCompositorInputHandler* fromIdentifier(int identifier);
-
- virtual ~WebCompositorInputHandlerImpl();
-
- // WebCompositorInputHandler implementation.
- virtual void setClient(WebCompositorInputHandlerClient*);
- virtual void handleInputEvent(const WebInputEvent&);
-
- // WebCore::CCInputHandler implementation.
- virtual int identifier() const;
- virtual void animate(double monotonicTime);
-
- // WebCore::CCGestureCurveTarget implementation.
- virtual void scrollBy(const WebCore::IntPoint&);
-
-private:
- explicit WebCompositorInputHandlerImpl(WebCore::CCInputHandlerClient*);
-
- enum EventDisposition { DidHandle, DidNotHandle, DropEvent };
- // This function processes the input event and determines the disposition, but does not make
- // any calls out to the WebCompositorInputHandlerClient. Some input types defer to helpers.
- EventDisposition handleInputEventInternal(const WebInputEvent&);
-
- EventDisposition handleGestureFling(const WebGestureEvent&);
-
- // Returns true if we actually had an active fling to cancel.
- bool cancelCurrentFling();
-
- OwnPtr<WebCore::CCActiveGestureAnimation> m_wheelFlingAnimation;
- // Parameters for the active fling animation, stored in case we need to transfer it out later.
- WebActiveWheelFlingParameters m_wheelFlingParameters;
-
- WebCompositorInputHandlerClient* m_client;
- int m_identifier;
- WebCore::CCInputHandlerClient* m_inputHandlerClient;
-
-#ifndef NDEBUG
- bool m_expectScrollUpdateEnd;
- bool m_expectPinchUpdateEnd;
-#endif
- bool m_gestureScrollStarted;
-
- static int s_nextAvailableIdentifier;
- static HashSet<WebCompositorInputHandlerImpl*>* s_compositors;
-};
-
-}
-
-#endif // WebCompositorImpl_h
« no previous file with comments | « webkit/compositor/WebCompositorImpl.cpp ('k') | webkit/compositor/WebCompositorInputHandlerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698