Chromium Code Reviews| Index: chrome/browser/android/vr_shell/vr_input_manager.h |
| diff --git a/chrome/browser/android/vr_shell/vr_input_manager.h b/chrome/browser/android/vr_shell/vr_input_manager.h |
| index d8fa1370c4dacf7d4090656ee0c06005dbccca04..a58780fc9429a92d8a729f9b395ca6293316a295 100644 |
| --- a/chrome/browser/android/vr_shell/vr_input_manager.h |
| +++ b/chrome/browser/android/vr_shell/vr_input_manager.h |
| @@ -5,6 +5,8 @@ |
| #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_ |
| #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_ |
| +#include "base/memory/ref_counted.h" |
| +#include "chrome/browser/android/vr_shell/vr_gesture.h" |
| #include "content/public/browser/render_widget_host.h" |
| #include "content/public/browser/render_widget_host_view.h" |
| #include "content/public/browser/web_contents.h" |
| @@ -14,11 +16,13 @@ namespace vr_shell { |
| class RenderFrameHost; |
| -class VrInputManager { |
| +class VrInputManager |
| + : public base::RefCountedThreadSafe<VrInputManager> { |
| public: |
| explicit VrInputManager(content::WebContents* web_contents); |
| - ~VrInputManager(); |
| + void ProcessUpdatedGesture(VrGesture gesture); |
| + void SendGesture(VrGesture gesture); |
|
asimjour
2016/10/03 14:40:16
SendGesture doesn't need to be public.
mthiesse
2016/10/03 15:39:15
Done.
|
| void SendScrollEvent(int64_t time_ms, |
| float x, |
| @@ -42,6 +46,10 @@ class VrInputManager { |
| void PinchBy(int64_t time_ms, float x, float y, float delta); |
| void SendPinchEvent(int64_t time_ms, float x, float y, float dz, int type); |
| + protected: |
| + friend class base::RefCountedThreadSafe<VrInputManager>; |
| + virtual ~VrInputManager(); |
| + |
| private: |
| void SendGestureEvent(const blink::WebGestureEvent& event); |
| void SendMouseEvent(const blink::WebMouseEvent& event); |