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

Side by Side Diff: content/browser/renderer_host/input/motion_event_web.h

Issue 348813002: Extend MotionEvent to have tool type and button state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_INPUT_MOTION_EVENT_WEB_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_
7 7
8 #include "third_party/WebKit/public/web/WebInputEvent.h" 8 #include "third_party/WebKit/public/web/WebInputEvent.h"
9 #include "ui/events/gesture_detection/motion_event.h" 9 #include "ui/events/gesture_detection/motion_event.h"
10 10
(...skipping 23 matching lines...) Expand all
34 size_t historical_index) const OVERRIDE; 34 size_t historical_index) const OVERRIDE;
35 virtual float GetHistoricalTouchMajor( 35 virtual float GetHistoricalTouchMajor(
36 size_t pointer_index, 36 size_t pointer_index,
37 size_t historical_index) const OVERRIDE; 37 size_t historical_index) const OVERRIDE;
38 virtual float GetHistoricalX( 38 virtual float GetHistoricalX(
39 size_t pointer_index, 39 size_t pointer_index,
40 size_t historical_index) const OVERRIDE; 40 size_t historical_index) const OVERRIDE;
41 virtual float GetHistoricalY( 41 virtual float GetHistoricalY(
42 size_t pointer_index, 42 size_t pointer_index,
43 size_t historical_index) const OVERRIDE; 43 size_t historical_index) const OVERRIDE;
44 virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE;
45 virtual int GetButtonState() const OVERRIDE;
44 virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE; 46 virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE;
45 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; 47 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE;
46 48
47 private: 49 private:
48 blink::WebTouchEvent event_; 50 blink::WebTouchEvent event_;
49 Action cached_action_; 51 Action cached_action_;
50 int cached_action_index_; 52 int cached_action_index_;
51 53
52 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); 54 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb);
53 }; 55 };
54 56
55 } // namespace content 57 } // namespace content
56 58
57 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ 59 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/motion_event_android.cc ('k') | content/browser/renderer_host/input/motion_event_web.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698