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

Side by Side Diff: chrome/browser/android/vr_shell/vr_input_manager.h

Issue 2378903005: Implement controller handling in vr_shell.cc (Closed)
Patch Set: Rebase Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "chrome/browser/android/vr_shell/vr_gesture.h" 9 #include "chrome/browser/android/vr_shell/vr_gesture.h"
10 #include "content/public/browser/render_widget_host.h" 10 #include "content/public/browser/render_widget_host.h"
(...skipping 12 matching lines...) Expand all
23 23
24 void ProcessUpdatedGesture(VrGesture gesture); 24 void ProcessUpdatedGesture(VrGesture gesture);
25 25
26 void SendScrollEvent(int64_t time_ms, 26 void SendScrollEvent(int64_t time_ms,
27 float x, 27 float x,
28 float y, 28 float y,
29 float dx, 29 float dx,
30 float dy, 30 float dy,
31 int type); 31 int type);
32 void SendClickEvent(int64_t time_ms, float x, float y); 32 void SendClickEvent(int64_t time_ms, float x, float y);
33 void SendMouseMoveEvent(int64_t time_ms, float x, float y, int type); 33 void SendMouseMoveEvent(int64_t time_ms, float x, float y,
34 WebInputEvent::Type type);
34 35
35 void ScrollBegin(int64_t time_ms, 36 void ScrollBegin(int64_t time_ms,
36 float x, 37 float x,
37 float y, 38 float y,
38 float hintx, 39 float hintx,
39 float hinty, 40 float hinty,
40 bool target_viewport); 41 bool target_viewport);
41 void ScrollEnd(int64_t time_ms); 42 void ScrollEnd(int64_t time_ms);
42 void ScrollBy(int64_t time_ms, float x, float y, float dx, float dy); 43 void ScrollBy(int64_t time_ms, float x, float y, float dx, float dy);
43 void PinchBegin(int64_t time_ms, float x, float y); 44 void PinchBegin(int64_t time_ms, float x, float y);
(...skipping 17 matching lines...) Expand all
61 // Device scale factor. 62 // Device scale factor.
62 float dpi_scale_; 63 float dpi_scale_;
63 64
64 content::WebContents* web_contents_; 65 content::WebContents* web_contents_;
65 DISALLOW_COPY_AND_ASSIGN(VrInputManager); 66 DISALLOW_COPY_AND_ASSIGN(VrInputManager);
66 }; 67 };
67 68
68 } // namespace vr_shell 69 } // namespace vr_shell
69 70
70 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_ 71 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698