| 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_SHELL_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 // Perform a UI action triggered by the javascript API. | 141 // Perform a UI action triggered by the javascript API. |
| 142 void DoUiAction(const UiAction action, | 142 void DoUiAction(const UiAction action, |
| 143 const base::DictionaryValue* arguments); | 143 const base::DictionaryValue* arguments); |
| 144 | 144 |
| 145 void SetContentCssSize(float width, float height, float dpr); | 145 void SetContentCssSize(float width, float height, float dpr); |
| 146 | 146 |
| 147 void ContentFrameWasResized(bool width_changed); | 147 void ContentFrameWasResized(bool width_changed); |
| 148 | 148 |
| 149 void ForceExitVr(); | 149 void ForceExitVr(); |
| 150 void ExitFullscreen(); |
| 150 | 151 |
| 151 void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent> event); | 152 void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent> event); |
| 152 void SubmitControllerModel(std::unique_ptr<VrControllerModel> model); | 153 void SubmitControllerModel(std::unique_ptr<VrControllerModel> model); |
| 153 | 154 |
| 154 // device::GvrGamepadDataProvider implementation. | 155 // device::GvrGamepadDataProvider implementation. |
| 155 void UpdateGamepadData(device::GvrGamepadData) override; | 156 void UpdateGamepadData(device::GvrGamepadData) override; |
| 156 void RegisterGamepadDataFetcher(device::GvrGamepadDataFetcher*) override; | 157 void RegisterGamepadDataFetcher(device::GvrGamepadDataFetcher*) override; |
| 157 | 158 |
| 158 private: | 159 private: |
| 159 ~VrShell() override; | 160 ~VrShell() override; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 222 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 222 | 223 |
| 223 DISALLOW_COPY_AND_ASSIGN(VrShell); | 224 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 bool RegisterVrShell(JNIEnv* env); | 227 bool RegisterVrShell(JNIEnv* env); |
| 227 | 228 |
| 228 } // namespace vr_shell | 229 } // namespace vr_shell |
| 229 | 230 |
| 230 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 231 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |