OLD | NEW |
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/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" | 10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
11 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 11 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 12 #include "third_party/WebKit/public/platform/WebMouseEvent.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 class WebContents; | 15 class WebContents; |
15 } | 16 } |
16 | 17 |
17 namespace vr_shell { | 18 namespace vr_shell { |
18 | 19 |
19 // Note: This class is not thread safe and must only be used from main thread. | 20 // Note: This class is not thread safe and must only be used from main thread. |
20 class VrInputManager { | 21 class VrInputManager { |
21 public: | 22 public: |
(...skipping 11 matching lines...) Expand all Loading... |
33 content::WebContents* web_contents_; | 34 content::WebContents* web_contents_; |
34 | 35 |
35 base::WeakPtrFactory<VrInputManager> weak_ptr_factory_; | 36 base::WeakPtrFactory<VrInputManager> weak_ptr_factory_; |
36 | 37 |
37 DISALLOW_COPY_AND_ASSIGN(VrInputManager); | 38 DISALLOW_COPY_AND_ASSIGN(VrInputManager); |
38 }; | 39 }; |
39 | 40 |
40 } // namespace vr_shell | 41 } // namespace vr_shell |
41 | 42 |
42 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_ | 43 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_INPUT_MANAGER_H_ |
OLD | NEW |