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

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

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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_TOUCH_EMULATOR_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_
7 7
8 #include "content/browser/renderer_host/input/touch_emulator_client.h" 8 #include "content/browser/renderer_host/input/touch_emulator_client.h"
9 #include "content/common/cursors/webcursor.h" 9 #include "content/common/cursors/webcursor.h"
10 #include "content/common/input/input_event_ack_state.h" 10 #include "content/common/input/input_event_ack_state.h"
(...skipping 27 matching lines...) Expand all
38 // Returns |true| if the event ack was consumed. Consumed ack should not 38 // Returns |true| if the event ack was consumed. Consumed ack should not
39 // propagate any further. 39 // propagate any further.
40 bool HandleTouchEventAck(const blink::WebTouchEvent& event, 40 bool HandleTouchEventAck(const blink::WebTouchEvent& event,
41 InputEventAckState ack_result); 41 InputEventAckState ack_result);
42 42
43 // Cancel any touches, for example, when focus is lost. 43 // Cancel any touches, for example, when focus is lost.
44 void CancelTouch(); 44 void CancelTouch();
45 45
46 private: 46 private:
47 // ui::GestureProviderClient implementation. 47 // ui::GestureProviderClient implementation.
48 virtual void OnGestureEvent(const ui::GestureEventData& gesture) OVERRIDE; 48 virtual void OnGestureEvent(const ui::GestureEventData& gesture) override;
49 49
50 // Returns cursor size in DIP. 50 // Returns cursor size in DIP.
51 gfx::SizeF InitCursorFromResource( 51 gfx::SizeF InitCursorFromResource(
52 WebCursor* cursor, float scale, int resource_id); 52 WebCursor* cursor, float scale, int resource_id);
53 void ResetState(); 53 void ResetState();
54 void UpdateCursor(); 54 void UpdateCursor();
55 bool UpdateShiftPressed(bool shift_pressed); 55 bool UpdateShiftPressed(bool shift_pressed);
56 56
57 // Whether we should convert scrolls into pinches. 57 // Whether we should convert scrolls into pinches.
58 bool InPinchGestureMode() const; 58 bool InPinchGestureMode() const;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // The cumulative scale change from the start of pinch gesture. 104 // The cumulative scale change from the start of pinch gesture.
105 float pinch_scale_; 105 float pinch_scale_;
106 bool pinch_gesture_active_; 106 bool pinch_gesture_active_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(TouchEmulator); 108 DISALLOW_COPY_AND_ASSIGN(TouchEmulator);
109 }; 109 };
110 110
111 } // namespace content 111 } // namespace content
112 112
113 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ 113 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698